Warning, file /rolisteam/rolisteam/translations/generatetranslations.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 # Simple python script to generate all rolisteam translations at once
0002 import os, sys
0003 
0004 def printUsage() :
0005     print ("usage: python generatetranslations.py [--help] [-h] lreleasePath")
0006     print ("    --help : display help")
0007     print ("    -h : display help")
0008     print ("    lreleasePath : Path to the lrelease.exe of your Qt distribution")
0009 
0010 def main() :
0011     if ((len(sys.argv) != 2) or (sys.argv[1] == "--help") or (sys.argv[1] == "-h")) :
0012         printUsage()
0013         return
0014     
0015     print("   Generating translations...")
0016     target = "translations/rolisteam"
0017     os.system(sys.argv[1] + " " + target +".ts")
0018     os.system(sys.argv[1] + " " + target +"_de.ts")
0019     os.system(sys.argv[1] + " " + target +"_es.ts")
0020     os.system(sys.argv[1] + " " + target +"_fr.ts")
0021     os.system(sys.argv[1] + " " + target +"_hu_HU.ts")
0022     os.system(sys.argv[1] + " " + target +"_nl_NL.ts")
0023     os.system(sys.argv[1] + " " + target +"_pt_BR.ts")
0024     os.system(sys.argv[1] + " " + target +"_ro_RO.ts")
0025     os.system(sys.argv[1] + " " + target +"_tr.ts")
0026     print("   Translations generated")
0027     
0028 if __name__ == "__main__":
0029     main()