From 0db258bccf3e09c1c371b369c236edd8fa8e3412 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 6 Sep 2005 09:49:22 +0000 Subject: [PATCH] fix trnslation.py to support pt_BR --- scripts/translations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/translations.py b/scripts/translations.py index 14ec4003e..b889dbfea 100755 --- a/scripts/translations.py +++ b/scripts/translations.py @@ -18,7 +18,8 @@ def visit(arg, dirname, names): if 'gajim.po' in names: path_to_po = os.path.join(dirname, 'gajim.po') pos = path_to_po.find('po/') + 3 #3 = len('po/') - name = path_to_po[pos:pos+2] + endpos = path_to_po.find('/', pos) + name = path_to_po[pos:endpos] if update: # update an existing po file) os.system('msgmerge -q -U ../po/'+name+'/LC_MESSAGES/gajim.po ../po/gajim.pot') if stats: