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

Language translation

Discussion specific to Fine Offset and similar rebadged weather stations
Post Reply
miki41254
Posts: 20
Joined: Tue 20 Jan 2009 7:31 pm
Weather Station: W-8681
Operating System: Windows XP SP3
Location: Telese Terme Italy
Contact:

Language translation

Post by miki41254 »

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.
Frank02
Posts: 75
Joined: Thu 30 Oct 2008 4:31 pm

Re: Language translation

Post by Frank02 »

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.
simsons
Posts: 31
Joined: Fri 23 Jan 2009 2:34 pm

Re: Language translation

Post by simsons »

Hmmm,
can i translate tags like Latitude, Elevation to my lang?
What files must i edit ?
miki41254
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

Post by miki41254 »

simsons wrote:Hmmm,
can i translate tags like Latitude, Elevation to my lang?
What files must i edit ?
Simply open with an html editor the templates files (i.e.: indexT.htm) and save it.
Mick
Smirabb
Posts: 5
Joined: Sat 14 Feb 2009 9:53 pm
Weather Station: WH1081
Location: Norway
Contact:

Re: Language translation

Post by Smirabb »

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:

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>
Substitute '<#presstrend>' in indexT by the code above and voila!

Keep up the good work, Steve!

regards, Jim B - Norway
Smirabb
Posts: 5
Joined: Sat 14 Feb 2009 9:53 pm
Weather Station: WH1081
Location: Norway
Contact:

Re: Language translation

Post by Smirabb »

Sorry about the error in the script in the last post.

'iif' should of course be 'if'

JB
miki41254
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

Post by miki41254 »

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:

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>
Substitute '<#presstrend>' in indexT by the code above and voila!

Keep up the good work, Steve!

regards, Jim B - Norway

It's a very good idea :idea: :roll:
Mick
eriktu
Posts: 7
Joined: Mon 12 Jan 2009 9:27 pm
Weather Station: La Crosse WS2350
Location: Aix en Provence - France

Re: Language translation

Post by eriktu »

Bonjour,

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
User avatar
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

Post by beteljuice »

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) :roll:
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply