Steve, congratulations for the quality and flexibility of software.
The question is this: how can I change the language, for example, in the forecast?
Thanks, Mick.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Language translation
Re: Language translation
Hi Mick,
It's not possible with version 1.x.x of Cumulus but Steve said that it would with version 2 of the software which should be coming up in the future.
I don't know Web programming at all but isn't it possible to create some sort of Javascript functions that translate the strings generated by the tags?
Such as:
Translate(#forecast)
or
Translate('Fine Weather') which would return 'Dégagé' in French for instance?
You would need all of the possible strings though.
It's not possible with version 1.x.x of Cumulus but Steve said that it would with version 2 of the software which should be coming up in the future.
I don't know Web programming at all but isn't it possible to create some sort of Javascript functions that translate the strings generated by the tags?
Such as:
Translate(#forecast)
or
Translate('Fine Weather') which would return 'Dégagé' in French for instance?
You would need all of the possible strings though.
Re: Language translation
Hmmm,
can i translate tags like Latitude, Elevation to my lang?
What files must i edit ?
can i translate tags like Latitude, Elevation to my lang?
What files must i edit ?
-
- Posts: 20
- Joined: Tue 20 Jan 2009 7:31 pm
- Weather Station: W-8681
- Operating System: Windows XP SP3
- Location: Telese Terme Italy
- Contact:
Re: Language translation
Simply open with an html editor the templates files (i.e.: indexT.htm) and save it.simsons wrote:Hmmm,
can i translate tags like Latitude, Elevation to my lang?
What files must i edit ?
Mick
Re: Language translation
Hi!
Feel free to copy my ideas about translation @ http://www.smirabben.frac.dk
The pages aren't ready yet, but I have used javascript to change the values Cumulus generates in index.html
Ex.: The expression <#presstrend> in indexT.html are substituted by a text string in index.html. By loading cumulus.exe in notepad, I have extracted these strings generated by Cumulus. By using IF-statements in javascript I then can get an translation of these values on my webpage.
Sample code for the translation of the pressure trend:
Substitute '<#presstrend>' in indexT by the code above and voila!
Keep up the good work, Steve!
regards, Jim B - Norway
Feel free to copy my ideas about translation @ http://www.smirabben.frac.dk
The pages aren't ready yet, but I have used javascript to change the values Cumulus generates in index.html
Ex.: The expression <#presstrend> in indexT.html are substituted by a text string in index.html. By loading cumulus.exe in notepad, I have extracted these strings generated by Cumulus. By using IF-statements in javascript I then can get an translation of these values on my webpage.
Sample code for the translation of the pressure trend:
Code: Select all
<script type="text/javascript">
var press = "<#presstrend>";
if (press=="Falling slowly"){document.write("Faller sakte");} else
iif (press=="Falling"){document.write("Faller");} else
if (press=="Falling quickly"){document.write("Faller hurtigt");} else
if (press=="Falling very rapidly"){document.write("Faller veldig hurtigt");} else
if (press=="Falling"){document.write("Faller");} else
if (press=="Rising very rapidly"){document.write("Øker veldig hurtigt");} else
if (press=="Rising quickly"){document.write("Øker hurtigt");} else
if (press=="Rising"){document.write("Øker");} else
if (press=="Rising slowly"){document.write("Øker sakte");} else
if (press=="Steady"){document.write("Stabilt");} else
{document.write("<#presstrend>");}
</script>
Keep up the good work, Steve!
regards, Jim B - Norway
Re: Language translation
Sorry about the error in the script in the last post.
'iif' should of course be 'if'
JB
'iif' should of course be 'if'
JB
-
- Posts: 20
- Joined: Tue 20 Jan 2009 7:31 pm
- Weather Station: W-8681
- Operating System: Windows XP SP3
- Location: Telese Terme Italy
- Contact:
Re: Language translation
Smirabb wrote:Hi!
Feel free to copy my ideas about translation @ http://www.smirabben.frac.dk
The pages aren't ready yet, but I have used javascript to change the values Cumulus generates in index.html
Ex.: The expression <#presstrend> in indexT.html are substituted by a text string in index.html. By loading cumulus.exe in notepad, I have extracted these strings generated by Cumulus. By using IF-statements in javascript I then can get an translation of these values on my webpage.
Sample code for the translation of the pressure trend:
Substitute '<#presstrend>' in indexT by the code above and voila!Code: Select all
<script type="text/javascript"> var press = "<#presstrend>"; if (press=="Falling slowly"){document.write("Faller sakte");} else iif (press=="Falling"){document.write("Faller");} else if (press=="Falling quickly"){document.write("Faller hurtigt");} else if (press=="Falling very rapidly"){document.write("Faller veldig hurtigt");} else if (press=="Falling"){document.write("Faller");} else if (press=="Rising very rapidly"){document.write("Øker veldig hurtigt");} else if (press=="Rising quickly"){document.write("Øker hurtigt");} else if (press=="Rising"){document.write("Øker");} else if (press=="Rising slowly"){document.write("Øker sakte");} else if (press=="Steady"){document.write("Stabilt");} else {document.write("<#presstrend>");} </script>
Keep up the good work, Steve!
regards, Jim B - Norway
It's a very good idea
Mick
-
- Posts: 7
- Joined: Mon 12 Jan 2009 9:27 pm
- Weather Station: La Crosse WS2350
- Location: Aix en Provence - France
Re: Language translation
Bonjour,
Your little java script is THE solution for my french cumulus site.
Thank you.
http://www.m-et-eo.com/
Your little java script is THE solution for my french cumulus site.
Thank you.
http://www.m-et-eo.com/
Meteo from Peynier in the South of France
www.m-et-eo.com
www.m-et-eo.com
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Language translation
The beteljuice is working on something along the same lines as the code that produce the 'AJAX' pages.
Hopefully it will allow 'translation' of forecast, month / day (short and long), lat / long to decimal, compass ordinals, display of Time Zone (Including DST), ability to produce forecast icons / graphics, day / night decisions, beaufort translation, etc.
... to be continued (Work In Progress)
Hopefully it will allow 'translation' of forecast, month / day (short and long), lat / long to decimal, compass ordinals, display of Time Zone (Including DST), ability to produce forecast icons / graphics, day / night decisions, beaufort translation, etc.
... to be continued (Work In Progress)
......................Imagine, what you will KNOW tomorrow !