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.
Example
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.
nimbb.setLanguage(lang);
}
// -->
</script>
<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= "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="https://player.nimbb.com/nimbb.swf?mode=record&
lang=en" />
<param name="allowScriptAccess" value="always" />
<embed name="nimbb" src="https://player.nimbb.com/nimbb.swf?mode=record&
lang=en" width="320" height="240" allowScriptAccess="always" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash">
</embed>
</object>
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.