>From pygettext man:

pygettext  is deprecated. The current version of xgettext supports many
       languages, including Python.
---
 i18n.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/i18n.py b/i18n.py
index af45924..a241dc7 100755
--- a/i18n.py
+++ b/i18n.py
@@ -30,7 +30,8 @@ import subprocess
 
 def make_pot():
     print "Make locale/ocitysmap.pot"
-    subprocess.check_call(['pygettext', '-o', 'ocitysmap.pot', '-p', 'locale',
+    subprocess.check_call(['xgettext', '-o', 'ocitysmap.pot', '-p', 'locale',
+                           '-L', 'Python',
                            'ocitysmap2/indexlib/indexer.py',
                            'ocitysmap2/layoutlib/multi_page_renderer.py',
                            'ocitysmap2/layoutlib/single_page_renderers.py'])
-- 
1.7.6.msysgit.0


Reply via email to