Features/Mass Deployment/Setting Files/XML/Language

From Snom User Wiki

Jump to: navigation, search

Contents

Introduction

Language File Container

Language file container may consist of a list of language file URLs each one representing a different language. The following language file container are currently supported:

  1. Phone User Interface language file container (<gui-languages> tag)
  2. Web User Interface language file container (<web-languages> tag)

<gui-languages> tag

Syntax

<?xml version="1.0" encoding="utf-8" ?>
 <gui-languages>
  <language url="<Phone User Interface Language file URL(1)>" name="<language_name(1)>" />
  ...
  <language url="<Phone User Interface Language file URL(n)>" name="<language_name(n)>" />
 </gui-languages>
  • language url string contains phone user interface language file URLs (1)..(n)
  • name string determines the language's name in the phone user interface language list.

Example

<?xml version="1.0" encoding="utf-8" ?>
<gui-languages>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_CA.xml" name="Catalan"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_CZ.xml" name="Cestina"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_DK.xml" name="Dansk"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_DE.xml" name="Deutsch"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_EN.xml" name="English"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_UK.xml" name="English(UK)"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_SP.xml" name="Espanol"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_FR.xml" name="Francais"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_IT.xml" name="Italiano"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_NL.xml" name="Nederlands"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_NO.xml" name="Norsk"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_PL.xml" name="Polski"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_PT.xml" name="Portugues"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_RU.xml" name="Russian"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_SK.xml" name="Slovencina"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_FI.xml" name="Suomi"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_SW.xml" name="Svenska"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/gui_lang_TR.xml" name="Turkce"/>
</gui-languages>

<web-languages> tag

Syntax

<?xml version="1.0" encoding="utf-8" ?>
 <web-languages>
  <language url="<Web User Interface Language file URL(1)>" name="<language_name(1)>" />
  ...
  <language url="<Web User Interface Language file URL(n)>" name="<language_name(n)>" />
 </web-languages>

Example

<?xml version="1.0" encoding="utf-8" ?>
<web-languages>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_CZ.xml" name="Cestina"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_DK.xml" name="Dansk"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_DE.xml" name="Deutsch"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_EN.xml" name="English"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_SP.xml" name="Espanol"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_FR.xml" name="Francais"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_IT.xml" name="Italiano"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_NL.xml" name="Nederlands"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_NO.xml" name="Norsk"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_PT.xml" name="Portugues"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_RU.xml" name="Russian"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_FI.xml" name="Suomi"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_SW.xml" name="Svenska"/>
 <language url="http://provisioning.snom.com/config/snomlang-8.4.35/web_lang_TR.xml" name="Turkce"/>
</web-languages>

Language files

Language files contain the language phrases. When selecting a new language from the phone or web user interface language list the content of the associated file will be stored in the phoneĀ“s RAM. The following language files are currently supported:

  1. Phone User Interface language files (<phrases> tag)
  2. Web User Interface language files (<w_phrases> tag)

Language files depend on the firmware version, i.e. each file is unique per firmware version. However the language files of the latest release are always backwards compatible.

<phrases> tag

Syntax

<?xml version="1.0" encoding="utf-8"?>
 <phrases>
  <phrase i="<index>" n="<name>" t="<translation>"/>
  ...
  <phrase i="<index>" n="<name>" t="<translation>"/>
  <language i="<index>" t="<language name>"/>
 </phrases>
  • phrase tag defines one Phone User Interface phrase
    • i string represents the running <index> of the phrases
    • n string represents the internally used (english) variable <name> used for the translation
    • t string represents the <translation>
  • language tag defines the language name
    • i string represents the <index> of the language name, usually equal 0
    • t string represents the <language name>, should match the name string used in (<gui-languages> tag)

Example

<w_phrases> tag

Syntax

<?xml version="1.0" encoding="utf-8"?>
 <w_phrases>
  <w_phrase i="<index>" n="<name>" t="<translation>"/>
  ...
  <w_phrase i="<index>" n="<name>" t="<translation>"/>
  <language i="<index>" t="<language name>"/>
 </w_phrases>
  • w_phrase tag defines one Web User Interface phrase
    • i string represents the running <index> of the phrases
    • n string represents the internally used (english) variable <name> used for the translation
    • t string represents the translation
  • language tag defines the language name
    • i string represents the index of the language name, usually equal 0
    • t string represents the <language name>, should match the name string used in (<web-languages> tag)

Example

Personal tools
Interoperability