Set the interface language

The Nimbb Player supports multiple languages for its user interface. You simply need to set the lang parameter to one of the accepted language values. Try the example below to switch language of the player dynamically.


English French Danish German Italian Portuguese Spanish Simplified Chinese Japanese Russian Romanian Arabic

HTML code

<script language="JavaScript" type="text/javascript">

// Set language of Nimbb Player.
function setLanguage(lang)
  // Get a reference to the player.
  var nimbb = document["nimbb"];

  // Set language.

// -->
<a href="javascript:setLanguage('en');">English</a>
<a href="javascript:setLanguage('fr');">French</a>
<a href="javascript:setLanguage('da');">Danish</a>
<a href="javascript:setLanguage('de');">German</a>
<a href="javascript:setLanguage('it');">Italian</a>
<a href="javascript:setLanguage('pt');">Portuguese</a>
<a href="javascript:setLanguage('es');">Spanish</a>
<a href="javascript:setLanguage('zh-cn');">Simplified Chinese</a>
<a href="javascript:setLanguage('ja');">Japanese</a> <a href="javascript:setLanguage('ru');">Russian</a> <a href="javascript:setLanguage('ro');">Romanian</a> <a href="javascript:setLanguage('ar');">Arabic</a>
<object id="nimbb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" codebase= "">
<param name="movie" value="" />
<param name="allowScriptAccess" value="always" />
<embed name="nimbb" src="" width="320" height="240" allowScriptAccess="always" pluginspage="" type="application/x-shockwave-flash">

In the code, we set the lang parameter to assign the language to use on load of the player. Notice that we also use the setLanguage() method to assign a new language to the player dynamically.

For a list of accepted languages, see the Parameters page.

View more tutorials.

SIGN UP NOW 7-day free trial

Check out our Developer guide to get started with Nimbb.