For folks who would like to offer a multilingual version of the Carterlake/AJAX/PHP templates, there’s good news from Mike Challis and me … the template set is ALMOST ready, and we need some help in generating the translation lookup tables (like the plaintext-parser.php sets) , a dummy ‘About’ page, and a JavaScript constants (the language area from ajaxWDwx.js) for the currently supported languages by the WXSIM plaintext parser:
‘ct’, // ‘catalan’,
‘dk’, // ‘danish’, Done by Henrik
‘nl’, // ‘dutch’, Done by Gerard and Jozef
‘fi’, // ‘finnish’, In progress by Henkka
‘fr’, // ‘french’,
‘de’, // ‘german’,
‘el’, // ‘greek’, Done by Thanos
‘it’, // ‘italian’, Done by Mario
‘no’, // ‘norwegian’, Done by Arnt
‘pt’, // ‘portuguese’,
‘es’, // ‘spanish’, Done by Luis
‘se’, // ‘swedish’, In progress by Bo
I’ve created a sample (Danish) translation file (attached as language-dk.txt) with the help of Henrik’s website and our Danish guests (feel free to modify it/update it Henrik). I’ve also attached the companion language-dk.js file (stolen from Henrik’s ajaxWDwx.js).
If you’d like to help translate, then download the language-dk.txt file to language-LL.txt (LL=2 char abbreviations listed above), use the English in the first field and create the equivalent word(s) in the second field (replacing the Danish).
Download the language-en.js to language-LL.js and replace the English with words in the target language. See the attached language-dk.js sample as a guide. If you’ve already customized your ajaxWDwx.js language section, then you can just copy those entries into the file.
Download the wxabout-en.html as wxabout-LL.html and replace the English text with the translation into the target language.
Then… post the three updated files as attachments to a post on this thread.
The new sample site is at http://saratoga-weather.org/template/WD-World-ML/wxindex.php
I’ve only enabled the English and Danish versions right now… as I receive translation files, I’ll enable those languages.
Currently the following pages are supported by the translation feature:
wxindex.php (including ajax-dashboard.php/ajaxWDwx.js + windrose, WU-forecast.php, plaintext-parser.php)
ajax-gizmo.php for secondary pages:
wxabout.php (including ability to load wxabout-LL.html for individual language support).
wxgraphs.php
wxastronomy.php
wxforecast.php
wxsimforecast.php
wxsitemap.php
We’ll add the other pages to the mix as we complete the translation work.
Thanks in advance for your help!
Best regards,
Ken
EDIT: updated the sample English files with rain days/days w/o rain and conditions translation settings.
EDIT: update the language-en.txt to include missing menubar.php names.
Edit: update the language-en.txt for more translation items.
language-en.js.txt (2.19 KB)
wxabout-en.html.txt (3.07 KB)
language-dk.js.txt (2.24 KB)
language-en.txt (5.95 KB)