projects
/
blender.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
select uiStyle according to UserDef and update lang-packs
[blender.git]
/
po
/
update_po.py
1
#!/usr/bin/python
2
3
#update all po files in the LANGS
4
5
import os
6
7
DOMAIN = "blender"
8
LANGS = (
9
"ar",
10
"bg",
11
"ca",
12
"cs",
13
"de",
14
"el",
15
"es",
16
"fi",
17
"fr",
18
"hr",
19
"it",
20
"ja",
21
"ko",
22
"nl",
23
"pl",
24
"pt_BR",
25
"ro",
26
"ru",
27
"sr@Latn",
28
"sr",
29
"sv",
30
"uk",
31
"zh_CN"
32
)
33
#-o %s.new.po
34
for lang in LANGS:
35
# update po file
36
cmd = "msgmerge --update --lang=%s %s.po %s.pot" % (lang, lang, DOMAIN)
37
print(cmd)
38
os.system( cmd )
39