[kupfer: 2/4] wscript: Remove waf intlupdate, point users to the Manual
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 2/4] wscript: Remove waf intlupdate, point users to the Manual
- Date: Mon, 2 Nov 2009 21:27:40 +0000 (UTC)
commit 21e4f83f872876b76e72087c1825406b52265ba8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Nov 2 01:15:57 2009 +0100
wscript: Remove waf intlupdate, point users to the Manual
wscript | 24 ++++--------------------
1 files changed, 4 insertions(+), 20 deletions(-)
---
diff --git a/wscript b/wscript
index 8736277..7a480dc 100644
--- a/wscript
+++ b/wscript
@@ -204,30 +204,14 @@ def build(bld):
bld.add_subdirs("po data extras")
def intlupdate(util):
- """Extract new strings for localization"""
- os.chdir("po")
- for line in open("LINGUAS"):
- """ Run xgettext for all listed languages
- to extract translatable strings and merge with
- the old file """
- if line.startswith("#"):
- continue
- lang = line.strip()
-
- lang_file = "%s.po" % lang
- if not os.path.exists(lang_file):
- print "Creating %s" % lang_file
- os.popen("xgettext -D .. -f POTFILES.in --output=%s -F" % lang_file)
- os.popen("intltool-update %s" % lang)
- else:
- print "Processing", lang
- os.popen("intltool-update %s" % lang)
- os.popen("msgfmt --check %s" % lang_file)
+ print "You should use intltool-update directly."
+ print "You can read about this in Documentation/Manual.rst"
+ print "in the localization chapter!"
def test(bld):
# find all files with doctests
python = os.getenv("PYTHON", "python")
- paths = os.popen("git grep -l 'doctest.testmod()' kupfer/").read().split()
+ paths = os.popen("grep -lR 'doctest.testmod()' kupfer/").read().split()
all_success = True
verbose = ("-v" in sys.argv)
for p in paths:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]