SteelSeries Gauges: Difference between revisions

no edit summary
No edit summary
Obviously with the url changed to where ever you want the redirect pointing.
 
== Changing Languages ==
 
To switch statically, you need to edit the "gauges.js" file, and change the line 22<br> var _strings = LANG.EN,<br>to<br> var _strings = LANG.XX,<br> (where XX is the desired language code). 12:
var strings = LANG.EN,
to
var strings = LANG.XX,
(where XX is the desired language code).
 
To add a new translation, edit the "language.js" file and copy one of the existing sections<br> e.g. English, to the end of the file, changing all the LANG.EN values to LANG.XX (where XX is<br> the code for the new laguagelanguage), and editing all the strings. The zip file contains a<br> language.js file with English, French, German, Dutch, Swedish, Danish, Finnish, Norwegian, Italian,<br> Spanish, and Catalan translations to get you going.
 
If you are only going to use one language, then deleting the unused language options and the<br> changeLang() function from the language.js file will speed up the page load time slightly.
 
To switch languages dymanicallydynamically, you need to add script to your page which sets the LANG<br> object to equal the desired language and then calls the changeLang() function.<br>e.g.<br> // Dynamic script to change the default language to German<br> changeLang(LANG.DE);
e.g.
 
// Dynamic script to change the default language to German
This will re-label all the gauges, and update the text/radio buttons etc on the web page.
changeLang(LANG.DE);
 
However, changing the language for the gauges DOES NOT translate the displayed forecast<br>as the texts of the message are being supplied by your weather station/software.
 
This will re-label all the gauges, and update the text/radio buttons etc. on the web page.
 
However, changing the language for the gauges DOES NOT translate the displayed forecast<br> as the textstext of the message areis being supplied by your weather station/software.
 
== Forecast Messages ==