Unreviewed, speculative attempt to fix run-gtk-tests after r225047
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Nov 2017 23:51:54 +0000 (23:51 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Nov 2017 23:51:54 +0000 (23:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173772

* jhbuild/jhbuildutils.py:
(enter_jhbuild_environment_if_available):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225055 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/jhbuild/jhbuildutils.py

index 5b422c2..0d21437 100644 (file)
@@ -1,3 +1,11 @@
+2017-11-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, speculative attempt to fix run-gtk-tests after r225047
+        https://bugs.webkit.org/show_bug.cgi?id=173772
+
+        * jhbuild/jhbuildutils.py:
+        (enter_jhbuild_environment_if_available):
+
 2017-11-20  Mario Sanchez Prada  <mario@endlessm.com>
 
         [GTK] New API to add, retrieve and delete cookies via WebKitCookieManager
index c00160e..16a4797 100644 (file)
@@ -1,3 +1,4 @@
+import gettext
 import glob
 import os.path
 import sys
@@ -48,6 +49,7 @@ def enter_jhbuild_environment_if_available(platform):
     try:
         import jhbuild.config
         from jhbuild.errors import FatalError
+        gettext.install('jhbuild', localedir=os.path.join(source_path, 'mo'), unicode=True)
         config = jhbuild.config.Config(get_config_file_for_platform(platform), [])
     except FatalError, exception:
         sys.stderr.write('Could not load jhbuild config file: %s\n' % exception.args[0])