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

Christchurch Weather Live source - strings

From SqueezeboxWiki

Jump to: navigation, search
WEATHERLIVE
	EN	Christchurch Weather Live

WEATHERLIVE_SUMMARY
	EN	Live Summary
	
WEATHERLIVE_WINDSUMMARY
	EN	Wind Summary

WEATHERLIVE_NORTHISLAND
	EN	North Island
  
WEATHERLIVE_SOUTHISLAND
	EN	South Island
	
WEATHERLIVE_FORECAST7DAYS
	EN	7 Day Forecast
	
WEATHERLIVE_SUNRISE
 	EN	Sunrise and Sunset

This list of items is used for translation of the applet into other languages

The name of the file I believe must be strings.txt and the format of the file is one or more of these items seperated by a blank line:

[TOKEN]
{TAB}Language{TAB}Value

Where it has {TAB} you need to seperate the content with a TAB charcter - you can not use a space. There should be no space or tab in front of the [TOKEN]

The language identifier (EN, ES, etc) is the ISO 639-1 Two Digit Country Extensions

You can see more in this WIKI article http://en.wikipedia.org/wiki/List_of_ISO_639_codes

In the applet you can make reference to the TOKEN as follows

local MyVariable = self:string('TOKEN')

In the Weather Live applet we have code like below which is part of building the text of the menu item:

text = self:string("WEATHERLIVE_SUMMARY")

Which would return the value "Live Summary" in English (EN)

If the TOKEN is not found then the function returns the TOKEN

See also