Home / Siemens NX / Install your own language translation file siemens NX

Install your own language translation file siemens NX

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:

  1. 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.

  2. 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"
    
    1. Replace my_language with the name of your language translation file. Use your language file name as the locale name throughout the translation file.

    2. Replace my_label with the label for your new language selection.

      This label appears in the language list when you choose OptionsLanguage.

  3. To prevent Post Builder from using an incomplete translation file, replace return 1 with return 0.

  4. Replace every instance of mcset pb_msg_english with the name of your language translation file.

  5. Replace every English label with your translation.

  6. Replace return 0 with return 1 when the file is ready to use.

  7. Save the file with unicode utf-8 encoding.

Example of custom translation file modifications
##################  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"

Leave a Reply

Your email address will not be published. Required fields are marked *