Fix marker to use for gettext comments; they just need TRANSLATORS: in front of them...
authorCarl Hetherington <cth@carlh.net>
Tue, 28 Mar 2023 23:43:29 +0000 (01:43 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 28 Mar 2023 23:43:29 +0000 (01:43 +0200)
i18n.py

diff --git a/i18n.py b/i18n.py
index a3589ff82747b9e84c54ba6a3536181d1b480b41..f2b03215784abd451e8d3f4b034bc17918aaa140 100644 (file)
--- a/i18n.py
+++ b/i18n.py
@@ -20,7 +20,7 @@ def pot(dir, sources, name):
     except:
         pass
 
-    command('xgettext --from-code=UTF-8 -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
+    command('xgettext --from-code=UTF-8 -d %s -s --keyword=_ --keyword=S_ --add-comments=TRANSLATORS: -p %s -o %s.pot %s' % (name, d, name, s))
 
 def pot_merge(dir, name):
     for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):