~nico-inattendu/luciole/0.8.6.1

« back to all changes in this revision

Viewing changes to po/createpot.py

  • Committer: nico at inattendu
  • Date: 2010-02-05 07:38:16 UTC
  • Revision ID: nico@inattendu.org-20100205073816-0dda978ly764qaoq
creatapot.py : now no more generates luciole.pot file when translation are compiled

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
 
40
40
os.chdir('po')
41
 
os.system('intltool-update --pot --gettext-package=luciole --verbose ')
42
41
 
43
42
if command == 'compile':
44
43
    files = glob.glob('*.po')
50
49
        print "Generating translation for %s locale" % l[0]
51
50
        os.system('msgmerge -o - %s luciole.pot | msgfmt -c -o %s/LC_MESSAGES/luciole.mo -' % (f, l[0][8:]))
52
51
elif command == 'update_po' :
 
52
    os.system('intltool-update --pot --gettext-package=luciole --verbose ')
53
53
    files = glob.glob('*.po')
54
54
    for f in files:
55
55
        l = os.path.splitext(f)