Updated ts & crowdin scripts with latest modules and languages
This commit is contained in:
parent
718982cdcf
commit
898d27e8d8
|
@ -75,7 +75,9 @@ files = [ ["Arch.ts", "/Mod/Arch/Resources/translations/Arch.ts"],
|
||||||
["StartPage.ts", "/Mod/Start/Gui/Resources/translations/StartPage.ts"],
|
["StartPage.ts", "/Mod/Start/Gui/Resources/translations/StartPage.ts"],
|
||||||
["Test.ts", "/Mod/Test/Gui/Resources/translations/Test_de.ts"],
|
["Test.ts", "/Mod/Test/Gui/Resources/translations/Test_de.ts"],
|
||||||
["Web.ts", "/Mod/Web/Gui/Resources/translations/Web.ts"],
|
["Web.ts", "/Mod/Web/Gui/Resources/translations/Web.ts"],
|
||||||
["Spreadsheet.ts", "/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet.ts"] ]
|
["Spreadsheet.ts", "/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet.ts"],
|
||||||
|
["Path.ts", "/Mod/Path/Gui/Resources/translations/Path.ts"],
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
# handler for the command responses
|
# handler for the command responses
|
||||||
|
|
|
@ -26,11 +26,11 @@
|
||||||
'''
|
'''
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
updateTranslations.py [options] [LANGCODE] [LANGCODE LANGCODE...]
|
updatefromcrowdin.py [options] [LANGCODE] [LANGCODE LANGCODE...]
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
./updateTranslations.py [-d <directory>] fr nl pt_BR
|
./updatefromcrowdin.py [-d <directory>] fr nl pt_BR
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
|
@ -88,9 +88,11 @@ locations = [["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources
|
||||||
["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.qrc"],
|
["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.qrc"],
|
||||||
["Plot","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"],
|
["Plot","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"],
|
||||||
["Web","../Mod/Web/Gui/Resources/translations","../Mod/Web/Gui/Resources/Web.qrc"],
|
["Web","../Mod/Web/Gui/Resources/translations","../Mod/Web/Gui/Resources/Web.qrc"],
|
||||||
["Spreadsheet","../Mod/Spreadsheet/Gui/Resources/translations","../Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc"]]
|
["Spreadsheet","../Mod/Spreadsheet/Gui/Resources/translations","../Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc"],
|
||||||
|
["Path","../Mod/Path/Gui/Resources/translations","../Mod/Path/Gui/Resources/Path.qrc"],
|
||||||
|
]
|
||||||
|
|
||||||
default_languages = "af zh-CN zh-TW hr cs nl fi fr de hu ja no pl pt-PT ro ru sr es-ES sv-SE uk it pt-BR"
|
default_languages = "af zh-CN zh-TW hr cs nl fi fr de hu ja no pl pt-PT ro ru sr es-ES sv-SE uk it pt-BR el sk tr"
|
||||||
|
|
||||||
def updateqrc(qrcpath,lncode):
|
def updateqrc(qrcpath,lncode):
|
||||||
"updates a qrc file with the given translation entry"
|
"updates a qrc file with the given translation entry"
|
|
@ -64,7 +64,10 @@ PyCommands = [["src/Mod/Draft",
|
||||||
["src/Mod/Ship",
|
["src/Mod/Ship",
|
||||||
'pylupdate `find ./ -name "*.py"` -ts resources/translations/Ship.ts'],
|
'pylupdate `find ./ -name "*.py"` -ts resources/translations/Ship.ts'],
|
||||||
["src/Mod/Plot",
|
["src/Mod/Plot",
|
||||||
'pylupdate `find ./ -name "*.py"` -ts resources/translations/Plot.ts']]
|
'pylupdate `find ./ -name "*.py"` -ts resources/translations/Plot.ts'],
|
||||||
|
["src/Mod/Path",
|
||||||
|
'pylupdate `find ./ -name "*.py"` -ts Gui/Resources/translations/Path.ts'],
|
||||||
|
]
|
||||||
|
|
||||||
# add python folders to exclude list
|
# add python folders to exclude list
|
||||||
for c in PyCommands:
|
for c in PyCommands:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user