From 2411f22310fe6cd9c73b0be632bde2eaf1ee3234 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 3 Oct 2012 12:23:31 +0000 Subject: [PATCH] update_po, correctly see pt_PT type of languages svn: r20501 --- po/update_po.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/po/update_po.py b/po/update_po.py index edd165923..ab45314de 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -427,14 +427,15 @@ def check(args): """ if not args: print ('Please, add at least one argument (sv.po, de.po).') - + print (args) for arg in args: if arg[-3:] == '.po': print ("Checked file: '%(lang.po)s'. See '%(txt)s.txt'." \ - % {'lang.po': arg, 'txt': arg[:2]}) + % {'lang.po': arg, 'txt': arg[:-3]}) os.system('''%(python)s ./check_po --skip-fuzzy ./%(lang.po)s > %(lang)s.txt''' \ - % {'python': pythonCmd, 'lang.po': arg, 'lang': arg[:2]}) - os.system('''%(msgfmt)s -c -v %(lang.po)s''' % {'msgfmt': msgfmtCmd, 'lang.po': arg}) + % {'python': pythonCmd, 'lang.po': arg, 'lang': arg[:-3]}) + os.system('''%(msgfmt)s -c -v %(lang.po)s''' + % {'msgfmt': msgfmtCmd, 'lang.po': arg}) else: print ("Please, try to set an argument with .po extension like " "'%(arg)s.po'." % {'arg': arg})