]> spindle.queued.net Git - midori/commitdiff
Disable localization file updates and make them optional
authorChristian Dywan <christian@twotoasts.de>
Wed, 3 Sep 2008 01:19:40 +0000 (03:19 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 3 Sep 2008 01:20:35 +0000 (03:20 +0200)
wscript

diff --git a/wscript b/wscript
index ef083ecfcb5da48ae7c3f17fffdd999f3e406b03..ed38e04c2812b5a2e6dadabcb9ad333a92d4494f 100644 (file)
--- a/wscript
+++ b/wscript
@@ -26,7 +26,6 @@ def configure (conf):
     if not Params.g_options.disable_nls:
         conf.check_tool ('intltool')
         if conf.env['INTLTOOL'] and conf.env['POCOM']:
-            conf.find_program ('intltool-update', var='INTLTOOL_UPDATE')
             nls = 'yes'
             conf.define ('ENABLE_NLS', 1)
             conf.define ('MIDORI_LOCALEDIR', 'LOCALEDIR', 0)
@@ -36,6 +35,16 @@ def configure (conf):
         nls = 'no'
     conf.check_message_custom ('localization', 'support', nls)
 
+    if Params.g_options.enable_update_po:
+        conf.find_program ('intltool-update', var='INTLTOOL_UPDATE')
+        if conf.env['INTLTOOL_UPDATE']:
+            update_po = 'yes'
+        else:
+            update_po = 'not available'
+    else:
+        update_po = 'no'
+    conf.check_message_custom ('localization file', 'updates', update_po)
+
     if not Params.g_options.disable_unique:
         conf.check_pkg ('unique-1.0', destvar='UNIQUE', vnum='0.9', mandatory=False)
         single_instance = ['not available','yes'][conf.env['HAVE_UNIQUE'] == 1]
@@ -90,6 +99,9 @@ def set_options (opt):
     opt.add_option ('--disable-gio', action='store_true', default=False,
         help='Disables GIO support', dest='disable_gio')
 
+    opt.add_option ('--enable-update-po', action='store_true', default=False,
+        help='Enables localization file updates', dest='enable_update_po')
+
 def build (bld):
     bld.add_subdirs ('katze midori icons')