fix trnslation.py to support pt_BR
This commit is contained in:
parent
5f5e54ffac
commit
0db258bccf
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue