From 20f86ff0aa77ecfc2d46d126c3738d0869d0d11d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 9 Nov 2005 14:33:51 +0000 Subject: [PATCH] update translation.py for new folder --- scripts/dev/translations.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/dev/translations.py b/scripts/dev/translations.py index e0bd08fd1..211f7e830 100755 --- a/scripts/dev/translations.py +++ b/scripts/dev/translations.py @@ -21,7 +21,7 @@ def visit(arg, dirname, names): 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') + os.system('msgmerge -q -U ../../po/'+name+'/LC_MESSAGES/gajim.po ../../po/gajim.pot') if stats: print name, 'has now:' os.system('msgfmt --statistics ' + path_to_po) @@ -36,17 +36,17 @@ def show_help(): def update_pot(): # create header for glade strings - os.system('intltool-extract --type=gettext/glade ../src/gtkgui.glade') + os.system('intltool-extract --type=gettext/glade ../../src/gtkgui.glade') # update the pot - os.system('make -C ../po/ all gajim.pot') + os.system('make -C ../../po/ all gajim.pot') print 'gajim.pot was updated successfully' if __name__ == '__main__': - if os.path.basename(os.getcwd()) != 'scripts': + if os.path.basename(os.getcwd()) != 'dev': print 'run me with cwd: scripts' sys.exit() - path_to_dir = '../po' + path_to_dir = '../../po' if len(sys.argv) == 2: if sys.argv[1].startswith('h'):