From 757a6a721b221c6fb2f30f05b2195363724f0f72 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 5 May 2013 19:40:56 +0000 Subject: [PATCH] add new keywords to po/genpot.sh, comment both scripts, and add "Id" lines svn: r22182 --- po/genpot.sh | 9 +++++++-- po/update_po.py | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/po/genpot.sh b/po/genpot.sh index 6f12a24c6..51088c713 100755 --- a/po/genpot.sh +++ b/po/genpot.sh @@ -1,3 +1,8 @@ #!/bin/sh -# Make translation files (keywords issues, see bug #6595) -# intltool-update -g gramps -o gramps.pot -p +# $Id$ + +# Make translation files + +# additional keywords must always be kept in sync with those in update_po.py +XGETTEXT_ARGS='--keyword=_T_ --keyword=trans_text_ --keyword=_ngettext' \ + intltool-update -g gramps -o gramps.pot -p diff --git a/po/update_po.py b/po/update_po.py index 3b84169fa..f5ea6057b 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -20,6 +20,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# $Id$ """ update_po.py for Gramps translations. @@ -576,6 +578,7 @@ def retrieve(): create_filesfile() listing('python.txt', ['.py', '.py.in']) + # additional keywords must always be kept in sync with those in genpot.sh os.system('''%(xgettext)s -j --directory=./ -d gramps ''' '''-L Python -o gramps.pot --files-from=python.txt ''' '''--keyword=_ --keyword=ngettext '''