Servigistics InService Customization > Customizing Languages and Locales > Customizing the Servigistics InService Product Language > Customization Of Languages in Servigistics InService > Adding Languages > Adding a New Language to the Language Menu in the Global Actions Area
  
Adding a New Language to the Language Menu in the Global Actions Area
To add a new language to the language dropdown in the global header area of the UI:
1. Create the following directory: <WT_HOME>/wtCustom/src/com/ptc/sc/ preference/language/
2. Copy <WT_HOME>/src/com/ptc/sc/preference/language/SCLanguageRB.rbInfo to the new directory.
3. Edit this file and add an entry for the new language that is displayed in the UI. The entry should be in the following format <key>.value=<translated text>:,where:
<key> is the locale for the language, using the Java locale format.
<translated text> is what is displayed to the user in the UI, and should be the language name displayed in the native language. For non-ASCII characters, the corresponding Java Unicode escape values must be used. For example “\uxxxx” where xxxx is the hexadecimal value representing the UTF-16 code unit of the character.
For example, to add the Greek language with the locale of “el_GR”, the following entry should be added: el_GR.value=\u0395\u03BB\u03BB\u03B7\u03C5\u03B9\u03BA\u03AC
This results in the following entry in the UI: Ελληυικά
* 
The <WT_HOME>/src/com/ptc/sc/preference/language/SCContentLanguageRB.rbInfo file contains example entries for a large number of languages which can be copied to the new file above.
4. From within a windchill shell, run the following command to build the resource bundle.
On a Windows system:
ResourceBuild com.ptc.sc.preference.language true -Dbundle.output=%WT_ HOME%\codebase.war
On a UNIX system:
ResourceBuild.sh com.ptc.sc.preference.language true -Dbundle.output=<WT_HOME>/codebase.war
* 
For more information on the windchill shell see About the windchill shell.
5. Verify that the SCLanguageRB.RB.ser files were generated again in <WT_ HOME>/codebase.war/com/ptc/sc/preference/language directory.
6. Restart the Servigistics InService server for the change to take effect.
7. Create the following directory: <WT_HOME>/codebase.war/delivery/custom/ app/translations
8. Copy <WT_HOME>/codebase.war/delivery/app/translations/en_US..js to the new directory, changing the name of the file to match the locale of the language being added. For example, to add the Greek language, the file would be: <WT_HOME>/codebase.war/delivery/custom/app/translations/el_GR.js
Note that this file still contains English translations for all the user interface text. After the user selects this new language, they will continue to see the user interface in English. Copy one of the other *..js files instead of the en_US.js file to display the text in one of the other languages.
9. Create the following directory: <WT_HOME>/codebase.war/delivery/custom/scadmin/translations
10. Copy <WT_HOME>/codebase.war/delivery/scadmin/translations/en_US.js to the new directory, changing the name of the file to match the locale of the language being added. For example, to add the Greek language, the file would be: <WT_HOME>/codebase.war/delivery/custom/scadmin/translations/el_ GR.js
11. Rebuild the browser artifacts by running the following command: <ANT_ HOME/bin/ant -f <WT_HOME>/codebase.war/delivery/minimize.xml minimize.translations
At this point, the user is able to select the new language from the language action in the global action menu. The corresponding locale of this new language is used when retrieving service information to be displayed.