Home
How to configure language?

How to configure language?

The interface language of 123 Flash Chat is controlled by external XML files called language_**.xml.

("**" is the language property as a lowercase two-letter language code from ISO 639-1 and an optional uppercase two-letter country code subtag from ISO 3166.)

After successfully installed 123 Flash Chat, you can find all the language options under directory: <123FlashChatServer installed directory>/server/etc/groups/default/lang/

How to assign a default language to chat room users then?
Admin has two options to control the interface language of 123 Flash Chat:

  1. configuring client.xml, or
  2. editing HTML code

which sets a predefined default interface language for all the users of the chat room.


1. Configure client.xml:

With a text-editing tool like notepad, you can configure client.xml in this directory: <123FlashChatServer installed directory>/server/etc/groups/default/client.xml.
Find:

To control interface language by configuring client.xml, there're also two options:

  1. Leave the value in "" to be just an asterisk wildcard"*", this's a new feature: auto-detect language.
    Which means whatever country your users are coming from, the chat system can automatically detect the operating system language of the user's and assign a specific language to his or her chat interface.
    We highly recommend this setting.
  2. Replace the "*" with a specific language name, a set value give the same interface language to all of your users, whatever OS they are using, whatever country they are located.

After editing client.xml, don't forget to save and upload it to the directory: <123FlashChatServer installed directory>/server/etc/groups/default/client.xml.

2. Edit HTML code:

As we stated in the quickstart.html, 123 Flash Chat is inserted into your webpage with some html code like:

You can insert the html code into a static or dynamic webpage, in the latter case, you can dynamically control interface language by adding parameter in the html code, like this:

You can see English language is enabled by default.
Language setting in html code has higher priority than the language setting in client.xml. ie: once language is defined in html code, the language setting in client.xml becomes useless.


Exception in auto-detect.

There're some exceptions in which case auto-detect will fail to detect OS language and assign English to users, which demands a manual language setting.
The reason is that Macromedia only has ** language options, while 123 flash chat has some more. In this case, please define a specific language value instead of a "*".
The table below may help your understanding.

123 flash chat

Macromedia

Tag

Czech

Czech

cs

Danish

Danish

da

Dutch

Dutch

nl

English

English

en

Finnish

Finnish

fi

French

French

fr

German

German

de

Hungarian

Hungarian

hu

Italian

Italian

it

Japanese

Japanese

ja

Korean

Korean

ko

Norwegian

Norwegian

no

Polish

Polish

pl

Portuguese

Portuguese

pt

Russian

Russian

ru

Simplified Chinese

Simplified Chinese

zh-CN

Spanish

Spanish

es

Swedish

Swedish

sv

Traditional Chinese

Traditional Chinese

zh-TW

Turkish

Turkish

tr

 

Other/unknown

xu

Croatian   hr
Arabic   ar
Serbian   serbian
Farsi   farsi
Greek   el
portuguese from Brasil   pt-br
Iceland   iceland
Other is set to "en" by default.   en

You can see for "Croatian", "Arabic", "Serbian","Farsi", "Greek" and "Iceland", flash itself can't detect the language and will give your users English by default, you gotta manually assign a specific language to your users if you're running a website in mentioned contries.

Make new language file.

You are welcome to translate your own language file if you're from other countries and speaking languages other than available options.

It's quite simple: please open language_en.xml with NOTEPAD, then translate all the phrases or sentences in "" to your language.
when done, "save as", choose "save as type" -> all files, "encoding" -> UTF-8 , save as language_**.xml,
then put this file into directory: <123FlashChatServer installed directory>/server/etc/groups/default/lang/

As we stated before, then edit client.xml,
find:
change to: <language value="**" />

Now you get a localization interface of 123flashchat.

By the way, if you found any error in our language packs, please report to support@123flashchat.com, we'll appreciate your help.


TOPCMM News
24 Hours Support
+86-21-51785636 (China)
+1-858-866-9362 (USA)
Mailing List

For news, update and promotion of TOPCMM.


Home | About | Products | Download | FAQ | Order | Support | Features | Reviews | Demo | Links | Sitemap | Forum | Blog

Flash Chat | Java Chat Server| Chat Server Software| Instant Messaging Software| Live Help Chat
Webcam Chat | Web Chat Room| Enterprise Messaging| Enterprise Chat Software| Flash Chat in China
Legal Disclaimer| Privacy Statement | Terms of Use    Copyright © 2001-2008 TopCMM Software Corp. All Rights Reserved.