diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-12 00:27:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-12 00:27:18 -0300 |
commit | d645b4106590ae7cafdeb71a686e9ce58678176f (patch) | |
tree | 606b1e97ee0fc8517fa80757fff3cac25933af03 /lang | |
parent | 2b8a3f193b1c4fd0230ba5a36e15c045d620076c (diff) | |
download | tools-d645b4106590ae7cafdeb71a686e9ce58678176f.tar.gz tools-d645b4106590ae7cafdeb71a686e9ce58678176f.tar.bz2 tools-d645b4106590ae7cafdeb71a686e9ce58678176f.tar.xz tools-d645b4106590ae7cafdeb71a686e9ce58678176f.zip |
9.2 Update
Diffstat (limited to 'lang')
-rwxr-xr-x | lang/push.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lang/push.py b/lang/push.py index 536ab6e..b6d3fcb 100755 --- a/lang/push.py +++ b/lang/push.py @@ -7,7 +7,7 @@ from transifex.api import TransifexAPI print("This script is not used. If you're sure you want to use it comment line 10.") -exit(1) +#exit(1) project='saulc-tmw-fork' @@ -35,16 +35,17 @@ if (not t.project_exists(project)): exit(1) # Load languages -langs=[] -vcx=open("../../server-data/langs/langs.txt", "r") -for i in vcx: - if i != "en": - langs.append(i.replace('\n', '')) -vcx.close() +#langs=[] +#vcx=open("../../server-data/langs/langs.txt", "r") +#for i in vcx: +# if i != "en": +# langs.append(i.replace('\n', '')) +#vcx.close() # Send all translations (en.pot must be sent already!) -for i in langs: - print("Uploading %s..." %(i)) - #t.new_translation(project, 'server-data', i, 'out/'+str(i)+'.po') +#for i in langs: +i="pt_BR" +print("Uploading %s..." %(i)) +t.new_translation(project, 'server-data', i, 'in/'+str(i)+'.po') |