12.2 Adding a New Language

12.2.1 Current Language Availability

Novell Teaming is currently translated into 15 languages. Each language is identified by a language code in the Teaming software. Directory names and filenames include the language codes to identify the languages of directories and files.

  • Chinese-Simplified (zh_TW)

  • Chinese Traditional (zh_CN)

  • Danish (da)

  • Dutch (nl)

  • English (en)

  • French (fr)

  • German (de)

  • Hungarian (hu_HU)

  • Italian (it)

  • Japanese (ja)

  • Polish (pl)

  • Portuguese (pt_BR)

  • Russian (ru_RU)

  • Spanish (es)

  • Swedish (sv)

Kablink Teaming is an open source project where additional languages can be contributed by interested members of the open source community.

12.2.2 Text to Translate

Software Interface Text and Pop-Up Text

The files that contain the text strings in the Novell Teaming interface (messages_language_code.properties) and in mouse-over pop-ups (help-messages_language_code.properties) are located in the following directory:

Linux:

/opt/novell/teaming/apache-tomcat-version/
                                webapps/ssf/WEB-INF/messages

Windows:

c:\Program Files\Novell\Teaming\apache-tomcat-version\
                                webapps\ssf\WEB-INF\messages
  1. Identify the file in the language that you want to translate from.

  2. Identify the language code for the language that you want to translate into.

    Lists of standard language codes are available on the Internet.

  3. Create a copy of the file that you want to translate, and name it with the appropriate language code.

  4. Edit the file to translate in a text editor.

    Useful information for translators is provided at the top of each file (in English).

  5. Locate the following line:

    Teaming.Lang=
    
  6. Replace the existing language code with the language code for the language that you want to translate into.

    The lines in the file have the following format:

    tag=string
    
  7. In each line, replace the text after the equal sign (=) with your translation for the string.

  8. Save your translated file along with the other translated files.

  9. Configure Teaming to recognize the new language, as described in Section 12.2.3, New Language Implementation.

Help Topics

The language directories for the files that contain help topics are located in the following directory:

Linux:

/opt/novell/teaming/apache-tomcat-version/webapps/ssf/help_doc

Windows:

c:\Program Files\Novell\Teaming\apache-tomcat-version\
                                              webapps\ssf\help_doc
  1. Create a new directory for the language you want to translate into, named for its language code.

  2. Copy the contents of an existing language directory that you want to translate from, into the new directory.

    Each language directory contains a set of .html files and two subdirectories (css and images). You need to translate all the .html files. You do not need to translate anything in the two subdirectories.

  3. Open each .html file in a text editor.

  4. Specify your language code in the following lines:

    <html xml:lang="language_code" lang="language_code">
    <meta http-equiv="Content-Language" content="language_code" />
    
  5. Carefully translate the text between the HTML tags, being careful to leave the HTML tags undisturbed.

  6. Save each .html file, then display it in a Web browser to ensure that the HTML tags are still working correctly.

  7. If you have not already done so, configure Teaming to recognize the new language, as described in New Language Implementation.

12.2.3 New Language Implementation

  1. Change to the following directory:

    Linux:

    /opt/novell/teaming/apache-tomcat-version/
                               webapps/ssf/WEB-INF/classes/config
    

    Windows:

    c:\Program Files\Novell\Teaming\apache-tomcat-version\
                               webapps\ssf\WEB-INF\classes/config
    
  2. Open the ssf.properties file in a text editor.

  3. Locate the following line:

    i18n.locale.support=en,da,de,es,fr,hu_HU,it,ja,nl,pl,pt_BR,ru_RU,sv,
                                                                  zh_CN,zh_TW
    
  4. Block and copy that line to the clipboard of your text editor.

  5. Open the ssf-ext.properties file, located in the same directory with the ssf.properties file.

  6. Paste the line you copied at the end of the ssf-ex.properties file.

  7. Type a comma (,) at the end of the line, followed by your language code.

  8. Save and close the ssf-ext.properties file.

  9. Close the ssf.properties file without saving it.

  10. Stop and restart Teaming.