Wiki

NeoRouterWiki:Multilanguage

From NeoRouterWiki

Revision as of 09:58, 23 September 2009 by KevinZ (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Multi-Language support allows you to choose your favorite language when using Network Explorer, NeoRouter Portable and Configuration Explorer.

This is a new feature in NeoRouter version 0.9.8 and above.

Install a language resource file

NeoRouter applications supports 34 languages and English is the default option. You can switch a language from the the menu item "Language" on the main menu. Once you choose a language, it will refresh the user interface with the current language display.

A language option can be listed on on the menu ONLY when:

1) The language resource file is under one of the following folders

 a. .\Translation
 b. X:\Documents and Settings\All Users\Application Data\ZebraNetworkSystems\NeoRouter\Translation

2) The current OS supports the language.

Language resource file

1) The file name should be in the format:

[Application name].Resource[LangCd].[xml|dll]
  • [Appliation Name] can be: NRClient, NRViewer and NRConsole
  • [LangCd] is the short language code (see below)
  • It supports two kinds of resource files, xml and dll. If it's a xml file, the Windows MSXML 4.0 library (IE4.0+) is required.

For example:

English version:

Network Explorer:       NRClient.ResourceEn.xml
Configuration Explorer: NRConsole.ResourceEn.xml
NeoRouter Portable:     NRViewer.ResourceEn.xml

Simplified Chinese version:

Network Explorer:       NRClient.ResourceZhCn.xml
Configuration Explorer: NRConsole.ResourceZhCn.xml
NeoRouter Portable:     NRViewer.ResourceZhCn.xml

2) The resource files contain all strings defined in the NeoRouter applications. These text strings are stored in the xml format. But the file is encoded in ANSI.

The content should be in the format:

<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="English (United States)" LANGID="1033">
	<string id="100" value="OLE initialization failed.  Make sure that the OLE libraries are the correct version."/>
...
</resource>

Encoding (="windows-1252"), Language(="English (United States)") and LANGID(="1033") are used to control the translation. The resource file can be recognized properly ONLY when these parameters are set properly.

So, when we want to create a resource file for another language, we need to make sure these values are correct. Here is the list of file names and headers for all 34 languages:

  • 1. Arabic
[App name].ResourceArSa.xml
<?xml version="1.0" encoding="windows-1256"?>
<resource CompactMode="1" Language="Arabic (Saudi Arabia)" LANGID="1025">
  • 2. Bulgarian
[App name].ResourceBg.xml
<?xml version="1.0" encoding="windows-1251"?>
<resource CompactMode="1" Language="Bulgarian" LANGID="1026">
  • 3. Croatian
[App name].ResourceCs.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Czech" LANGID="1029">
  • 4. Danish
[App name].ResourceDa.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Danish" LANGID="1030">
  • 5. Dutch
[App name].ResourceDe.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="German (Germany)" LANGID="1031">
  • 6. Greek
[App name].ResourceEl.xml
<?xml version="1.0" encoding="windows-1253"?>
<resource CompactMode="1" Language="Greek" LANGID="1032">
  • 7. English
[App name].ResourceEn.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="English (United States)" LANGID="1033">
  • 8. Spanish
[App name].ResourceEs.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Spanish (Spain - Modern Sort)" LANGID="3082">
  • 9. Estonian
[App name].ResourceEt.xml
<?xml version="1.0" encoding="windows-1257"?>
<resource CompactMode="1" Language="Estonian" LANGID="1061">
  • 10.[App name].ResourceFi.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Finnish" LANGID="1035">
  • 11.French
[App name].ResourceFr.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="French (France)" LANGID="1036">
  • 12.Hebrew
[App name].ResourceHe.xml
<?xml version="1.0" encoding="windows-1255"?>
<resource CompactMode="1" Language="Hebrew" LANGID="1037">
  • 13.Croatian
[App name].ResourceHr.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Croatian" LANGID="1050">
  • 14.Hungarian
[App name].ResourceHu.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Hungarian" LANGID="1038">
  • 15.Italian
[App name].ResourceIt.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Italian (Italy)" LANGID="1040">
  • 16.Japanese
[App name].ResourceJa.xml
<?xml version="1.0" encoding="shift-jis"?>
<resource CompactMode="1" Language="Japanese" LANGID="1041">
  • 17.Korean
[App name].ResourceKo.xml
<?xml version="1.0" encoding="ks_c_5601"?>
<resource CompactMode="1" Language="Korean" LANGID="1042">
  • 18.Lithuanian
[App name].ResourceLt.xml
<?xml version="1.0" encoding="windows-1257"?>
<resource CompactMode="1" Language="Lithuanian" LANGID="1063">
  • 19.Latvian
[App name].ResourceLv.xml
<?xml version="1.0" encoding="windows-1257"?>
<resource CompactMode="1" Language="Latvian" LANGID="1062">
  • 20.Dutch
[App name].ResourceNl.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Dutch" LANGID="1043">
  • 21.Norwegian
[App name].ResourceNo.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Norwegian (Bokmal)" LANGID="1044">
  • 22.Polish
[App name].ResourcePl.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Polish" LANGID="1045">
  • 23.Portuguese
[App name].ResourcePt.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Portuguese (Portugal)" LANGID="2070">
  • 24.Portuguese
[App name].ResourcePtBr.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Portuguese (Brazil)" LANGID="1046">
  • 25.Romanian
[App name].ResourceRo.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Romanian" LANGID="1048">
  • 26.Russian
[App name].ResourceRu.xml
<?xml version="1.0" encoding="windows-1251"?>
<resource CompactMode="1" Language="Russian" LANGID="1049">
  • 27.Slovak
[App name].ResourceSk.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Slovak" LANGID="1051">
  • 28.Slovenian
[App name].ResourceSl.xml
<?xml version="1.0" encoding="windows-1250"?>
<resource CompactMode="1" Language="Slovenian" LANGID="1060">
  • 29.Swedish
[App name].ResourceSv.xml
<?xml version="1.0" encoding="windows-1252"?>
<resource CompactMode="1" Language="Swedish" LANGID="1053">
  • 30.Thai
[App name].ResourceTh.xml
<?xml version="1.0" encoding="windows-874"?>
<resource CompactMode="1" Language="Thai" LANGID="1054">
  • 31.Turkish
[App name].ResourceTr.xml
<?xml version="1.0" encoding="windows-1254"?>
<resource CompactMode="1" Language="Turkish" LANGID="1055">
  • 32.Ukrainian
[App name].ResourceUk.xml
<?xml version="1.0" encoding="windows-1251"?>
<resource CompactMode="1" Language="Ukrainian " LANGID="1058">
  • 33.Chinese (PRC)
[App name].ResourceZhCn.xml
<?xml version="1.0" encoding="gb2312"?>
<resource CompactMode="1" Language="Chinese (PRC)" LANGID="2052">
  • 34.Chinese (Taiwan)
[App name].ResourceZhTw.xml
<?xml version="1.0" encoding="big5"?>
<resource CompactMode="1" Language="Chinese (Taiwan)" LANGID="1028">