Disable translation draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Mon, 24 Sep 2018 16:13:17 -0700
changeset 1706251 dc84863c66d3892bf6dee6399897287a22c391d6
parent 1706249 69a89c5e6e090e621b30fa6f5dd92a0a84c219d3
child 1706252 ba16bad555a1be2497cf5857782d6fb9670481ae
push id301496
push userzbraniecki@mozilla.com
push dateMon, 24 Sep 2018 23:16:25 +0000
treeherdertry@ba16bad555a1 [default view] [failures only]
milestone64.0a1
Disable translation
intl/l10n/DOMLocalization.jsm
--- a/intl/l10n/DOMLocalization.jsm
+++ b/intl/l10n/DOMLocalization.jsm
@@ -575,23 +575,23 @@ class DOMLocalization extends Localizati
     const roots = Array.from(this.roots);
     return Promise.all(
       roots.map(async root => {
         // We want to first retranslate the UI, and
         // then (potentially) flip the directionality.
         //
         // This means that the DOM alternations and directionality
         // are set in the same microtask.
-        await this.translateFragment(root);
-        let primaryLocale = Services.locale.appLocaleAsBCP47;
-        let direction = Services.locale.isAppLocaleRTL ? "rtl" : "ltr";
-        root.setAttribute("lang", primaryLocale);
-        root.setAttribute(root.namespaceURI ===
-          "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-          ? "localedir" : "dir", direction);
+        // await this.translateFragment(root);
+        // let primaryLocale = Services.locale.appLocaleAsBCP47;
+        // let direction = Services.locale.isAppLocaleRTL ? "rtl" : "ltr";
+        // root.setAttribute("lang", primaryLocale);
+        // root.setAttribute(root.namespaceURI ===
+        //   "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+        //   ? "localedir" : "dir", direction);
       })
     );
   }
 
   /**
    * Pauses the `MutationObserver`.
    *
    * @private