<?sphp $this->text('pagetitle') ?>
 
Home of the Squeezebox™ & Transporter® network music players.

PluginStrings

From SqueezeboxWiki

Jump to: navigation, search

This page needs editing. Needs to be updated to SqueezeCenter 7.0 way of handling string localization in strings.txt

The Plugin API also allows you to add in your own localization. The format of the strings list follows the same format as the strings.txt file used by the SlimServer for localization. The function strings() can be used within the plugin to extract a strings for the user's specified language. Defining the strings is done as follows:

Example 5:

sub strings { return '<new line> PLUGIN_STRING_ONE<new line> <tab>EN<tab>English version of line one<new line> <tab>FR<tab>Version française de la ligne une<new line> '}

Note:

The format of the strings list is very strict. The whitespace must be a tab, not spaces, which is why the <tab>s and <new line> are shown above.

Next Page