Bug 1298012 - Use a shared locale file for ellipsis character;r=bgrins draft
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 26 Aug 2016 15:16:44 +0200
changeset 406238 1b78185c4e524268a869e1dd669a4103629301c1
parent 406237 b56c4e40820c5c14a9a0761639e772964d818e30
child 406239 9425bba7bca89337947edbda7d693f31b52555a3
push id27658
push userjdescottes@mozilla.com
push dateFri, 26 Aug 2016 15:59:54 +0000
reviewersbgrins
bugs1298012
milestone51.0a1
Bug 1298012 - Use a shared locale file for ellipsis character;r=bgrins MozReview-Commit-ID: 2LuirHIMiUt
devtools/client/locales/en-US/shared.properties
devtools/shared/l10n.js
devtools/shared/locales/en-US/shared.properties
--- a/devtools/client/locales/en-US/shared.properties
+++ b/devtools/client/locales/en-US/shared.properties
@@ -1,14 +1,11 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # LOCALIZATION NOTE (dimensions): This is used to display the dimensions
 # of a node or image, like 100×200.
 dimensions=%S\u00D7%S
 
-# LOCALIZATION NOTE (ellipsis): The ellipsis (three dots) character
-ellipsis=…
-
 # LOCALIZATION NOTE (groupCheckbox.tooltip): This is used in the SideMenuWidget
 # as the default tooltip of a group checkbox
 sideMenu.groupCheckbox.tooltip=Toggle all checkboxes in this group
\ No newline at end of file
--- a/devtools/shared/l10n.js
+++ b/devtools/shared/l10n.js
@@ -98,17 +98,17 @@ LocalizationHelper.prototype = {
 
     return number.toLocaleString(undefined, {
       maximumFractionDigits: decimals,
       minimumFractionDigits: decimals
     });
   }
 };
 
-const sharedL10N = new LocalizationHelper("devtools/locale/shared.properties");
+const sharedL10N = new LocalizationHelper("devtools-shared/locale/shared.properties");
 const ELLIPSIS = sharedL10N.getStr("ellipsis");
 
 /**
  * A helper for having the same interface as LocalizationHelper, but for more
  * than one file. Useful for abstracting l10n string locations.
  */
 function MultiLocalizationHelper(...stringBundleNames) {
   let instances = stringBundleNames.map(bundle => {
new file mode 100644
--- /dev/null
+++ b/devtools/shared/locales/en-US/shared.properties
@@ -0,0 +1,6 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# LOCALIZATION NOTE (ellipsis): The ellipsis (three dots) character
+ellipsis=…
\ No newline at end of file