Languages management
To manage video chat language packs you should edit languages section of the main settings file which is located at /flashcoms/videochat/settings/main.xml
<languages>
<defaultLanguage id="en" />
<language id="en" name="English" url="{ROOT}videochat/languages/lang.en.xml" />
<language id="ru" name="Russian" url="{ROOT}videochat/languages/lang.ru.xml" />
<language id="fr" name="French" url="{ROOT}videochat/languages/lang.fr.xml" />
</languages |
To set the default language, you should assign a correspondent language id value to the defaultLanguage entry:
<defaultLanguage id="en" />
|
To add/remove language pack, please add/remove a correspondent language entry, where
id |
Language id |
name |
Language name which will be displayed in the language selection menu |
url |
Path to the current language settings file |
By default language files are located at /flashcoms/videochat/languages/. Editing language file you can change any chat label text.
<language id="en" name="English">
<message key="_ok" translation="OK" />
<message key="_cancel" translation="Cancel" />
...
</language> |

Some of the messages have system markers i.e. {ROOM} {USER_NAME } which should not be removed or modified. |
Adding a new language pack
To add a new language pack, you should add new <language> section to main.xml file. For example, you want to add German language:
<language id="de" name="Deutsch" url="{ROOT}videochat/languages/lang.de.xml" /> |
Then create videochat/languages/lang.de.xml file which contains the translation of all the messages to German, for example:
<language id="de" name="Deutsch">
<!-- main -->
<message key="_ok" translation="Jawohl" />
<message key="_cancel" translation="Nein" />
<message key="_alert" translation="Alarm" />
<message key="_confirm" translation="Bestätigen" />
…
<message key="WinAdmin_time_525600" translation="1 Jahr" />
</language> |
Help files
Help content files are located in /flashcoms/videochat/languages/ directory. They are named in accordance with the language key.
help_content.language_ID.xml
For the example given above this file will have the following form: help_content.de.xml
Help content file is an XML file, which contains the settings and markers for Help Menu.
helpContent baseUrl - contains the path to the directory with the help articles for given language.
defaultPage – help page, which is displayed by default, when user opens Help section.
<node> </node> section - indicates drop down Help Menu item
<label> </label> section – specifies the name of the given menu item
<id></id> section – specifies the file name of the article located in helpContent baseUrl directory, that will be displayed when menu item is clicked. Article file must correspond with XML specification.
<items></items> section – combines several menu items into sub-menu
<item></item> section – contains sub-menu item description
Help content file is supplied with the video chat package, so you will be able to open it in any text editor and view its structure example.
|