fix trnslation.py to support pt_BR

This commit is contained in:
Nikos Kouremenos 2005-09-06 09:49:22 +00:00
parent 5f5e54ffac
commit 0db258bccf

View file

@ -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: