Removing Languages
Removing a language from the language menu in the global actions area
To remove a language from the language list in the global header area of the user interface,
1. Edit the SCLanguageRB.java files in the following directories, removing entries corresponding to the locale being removed:
<WT_HOME>/src/com/ptc/sc/preference/language
2. For each locale to be removed, perform the following steps:
a. Copy the SCLanguageRB.java file to the following path: <WT_HOME>/src/com/ptc/sc/preference/language
b. Rename the copied SCLanguageRB.java file to SCLanguageRB_<Locale>.java
For example, SCLanguageRB_ja.java for the Japanese locale.
c. Open SCLanguageRB_<Locale>.java and update SCLanguageRB to SCLanguageRB_<Locale> in it.
3. From the Windchill shell, run the following command to build the class file:
javac -d WT_HOME>/codebase.war/WEB-INF/classes
WT_HOME>/src/com/ptc/sc/preference/language/SCLanguageRB***.java
4. Restart the services for the change to take effect.
5. At this point, the language is no longer available in the language menu in the global action area.
Removing a language from the document content language menu in the footer area
There is no need to do anything with the document content menu as it is driven by the actual available translations in the system.
Adding a language
To add a language,
1. Edit the following file: <WT_HOME>\SW\SW\Applications\Windchill.ear\src\com\ptc\sc\preference\language\SCLanguageRB***.java
2. For each locale to be added, perform the following steps:
a. Copy the SCLanguageRB.java file to the following path: <WT_HOME>/src/com/ptc/sc/preference/language
b. Rename the copied SCLanguageRB.java file to SCLanguageRB_<Locale>.java
For example, SCLanguageRB_ja.java for the Japanese locale.
c. Open SCLanguageRB_<Locale>.java and update SCLanguageRB to SCLanguageRB_<Locale> in it.
3. Run compilation for all SCLanguageRB***.java one by one.
javac -d <WT_HOME>/codebase.war/WEB-INF/classes
<WT_HOME>/src/com/ptc/sc/preference/language/SCLanguageRB***.java
4. Restart the server. The added language appears in the language list.