projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix errors when a custom size is given which is larger than the container (#2404).
[dcpomatic.git]
/
i18n.py
diff --git
a/i18n.py
b/i18n.py
index dc0a6ca7c9c554d36ae6f897e5ce244c52c7a832..a3589ff82747b9e84c54ba6a3536181d1b480b41 100644
(file)
--- a/
i18n.py
+++ b/
i18n.py
@@
-20,7
+20,7
@@
def pot(dir, sources, name):
except:
pass
except:
pass
- command('xgettext -d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
+ command('xgettext -
-from-code=UTF-8 -
d %s -s --keyword=_ --keyword=S_ --add-comments=/ -p %s -o %s.pot %s' % (name, d, name, s))
def pot_merge(dir, name):
for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):
def pot_merge(dir, name):
for f in glob.glob(os.path.join(os.getcwd(), dir, 'po', '*.po')):
@@
-32,5
+32,5
@@
def po_to_mo(dir, name, bld):
po = os.path.join('po', '%s.po' % lang)
mo = os.path.join('mo', lang, '%s.mo' % name)
po = os.path.join('po', '%s.po' % lang)
mo = os.path.join('mo', lang, '%s.mo' % name)
- bld(rule
= 'msgfmt -c -f ${SRC} -o ${TGT}', source = bld.path.make_node(po), target =
bld.path.get_bld().make_node(mo))
+ bld(rule
='msgfmt -c ${SRC} -o ${TGT}', source=bld.path.make_node(po), target=
bld.path.get_bld().make_node(mo))
bld.install_files(os.path.join('${PREFIX}', 'share', 'locale', lang, 'LC_MESSAGES'), mo)
bld.install_files(os.path.join('${PREFIX}', 'share', 'locale', lang, 'LC_MESSAGES'), mo)