You can translate Post Builder into a language that is not installed with the software if you have a language translation file. To install a new language:
-
In the POSTBUILD/msgs folder, copy one of the installed language files and rename it. This example uses pb_msg_english.tcl.
Note
Edit and save the file with unicode utf-8 encoding.
-
Define the label for your language. Add the following lines just below the language test:
#+++++++++++++++++++++++++++++++++++++++++++ # Define label in Unicode for this language #+++++++++++++++++++++++++++++++++++++++++++ set gPB(my_language,LABEL) "my_label"
-
Replace my_language with the name of your language translation file. Use your language file name as the locale name throughout the translation file.
-
Replace my_label with the label for your new language selection.
This label appears in the language list when you choose Options→Language.
-
-
To prevent Post Builder from using an incomplete translation file, replace return 1 with return 0.
-
Replace every instance of mcset pb_msg_english with the name of your language translation file.
-
Replace every English label with your translation.
-
Replace return 0 with return 1 when the file is ready to use.
-
Save the file with unicode utf-8 encoding.
################## DO NOT CHANGE ANYTHING ABOVE THIS LINE ################### if { [info exists gPB(LANG_TEST)] } { #+++++++++++++++++++++++++++++++++++++++++++ # Define label in Unicode for this language #+++++++++++++++++++++++++++++++++++++++++++ set gPB(my_language,LABEL) "My_label" #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Return "1" when this language file is ready to be deployed, # otherwise return "0". #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ return 1 } ##------ ## Title ## ::msgcat::mcset my_language "MC(main,title,Unigraphics)" "Unigraphics" ::msgcat::mcset my_language "MC(main,title,UG)" "UG" ::msgcat::mcset my_language "MC(main,title,Post_Builder)" "My_title"