Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

new translate

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

new translate

Post by dimitris vichos »

I have made a translation for the folder langthages.js. follow through the procedures described in wiki but when i load the page does not appear at all the drivers.

this is the translate

//======================================================================================================================
// greece by metfm
//======================================================================================================================
LANG.GR = {
canvasnosupport : "Η έκδοση του browser που χρησιμοποιήτε δεν υποστηρίζει την γλώσσα HTML-5<br>" +
"Αναβαθμίστε τον browser που χρησιμοποιήτε σε εκδοση που υποστηρίζει HTML-5 <br><br>" +
"Ανακατεύθνση σελίδας στην παλιά.. gauges page...",
//
led_title : "Απώλεια επαφής με τον αισθητήρα",
led_title_ok : "Αισθητήρα εντάξει",
led_title_lost : "Απώλεια επαφής!",
led_title_unknown : "Αγωστη κατάσταση αισθητήρα!",
led_title_offline: "Ο μετεωρολογικός σταθμός είναι εκτός δικτύου.",
//
weather : "Καιρός",
latitude : "Βόρειο πλάτος",
longitude : "Ανατολικό μήκος",
elevation : "Υψόμετρο",
//
statusStr : "Φορτώνει...",
StatusMsg : "Φότρωση δεδομένων....",
StatusHttp : "Απώλεια διεύθυνσης http...",
StatusRetry : "Επανάληψη...",
StatusRetryIn : "Επανάληψη σε...",
StatusTimeout : "Λήξη χρόνου",
StatusPageLimit : "Παρακαλώ ανανεώστε τον browser....",
//
StatusLastUpdate : "Τελευταία λήψη δεδομένων",
StatusMinsAgo : "λεπτά πρίν",
StatusHoursAgo : "ώρες πρίν",
StatusDaysAgo : "μέρες πριν",
//
realtimeCorrupt : "Προσπάθεια ανάκτησης δεδομένων, επανάληψη",
//
timer : "Δευτερόλεπτα",
at : "στις",
//
// MAXIMUM number of characters that can be used for the 'title' variables (such as 'LANG_EN.temp_title_out')
// 11 characters ===="12345678901"==== 11 characters
//
temp_title_out : "Θερμοκρασία",
temp_title_in : "Εσωτερική θερμοκρασία",
temp_out_info : "Εξωτερική θερμοκρασία",
temp_out_web : "Εξωτερική",
temp_in_info : "Εσωτερική θερμοκρασία",
temp_in_web : "Εσωτερική",
temp_trend_info : "Τάση θερμοκρασίας",
//
dew_title : "Σημείο δρόσου",
dew_info : "Σημείο δρόσου",
dew_web : "Σημείο δρόσου",
apptemp_title : "Αισθητή θερμοκρασία",
apptemp_info : "Αισθητή θερμοκρασία",
apptemp_web : "Αισθητή θερμοκρασία",
chill_title : "Αίσθηση ψύχους",
chill_info : "Αίσθηση ψύχους",
chill_web : "Αίσθηση ψύχους",
heat_title : "Δείκτης δυσφορίας",
heat_info : "Δείκτης δυσφορίας",
heat_web : "Δείκτης δυσφορίας",
humdx_title : "Δείκτης υγρασίας",
humdx_info : "Δείκτης υγρασίας",
humdx_web : "Δείκτης υγρασίας",
//
rain_title : "Βροχόπτωση",
rrate_title : "Ενταση βροχόπτωσης",
rrate_info : "Ενταση βροχόπτωσης",
LastRain_info : "Τελευταία βροχόπτωση",
LastRainedT_info : "Σήμερα στις",
LastRainedY_info : "χθες στις",
//
hum_title_out : "Υγρασία",
hum_title_in : "Εσωτερική υγρασία",
hum_out_info : "Εξωτερική υγρασία",
hum_in_info : "Εσωτερική υγρασία",
hum_out_web : "Εξωτερική",
hum_in_web : "Εσωτερική",
//
baro_title : "Ατμοσφαιρική πίεση",
baro_info : "Ατμοσφαιρική πίεση",
baro_trend_info : "Τάση πίεσης",
//
wind_title : "Ταχύτητα ανέμου",
tenminavg_title : "Μέση ταχύτητα ανέμου",
tenminavgwind_info : "Μέση 10λεπτη ταχύτητα ανέμου",
maxavgwind_info : "Μέγιστη μέση ταχύτητα ανέμου",
tenmingust_info : "Ριπή ανέμου",
maxgust_info : "Μέγιστη ριπή ανέμου",
latest_title : "Τελευταία ένδειξη ανέμου",
latestwind_info : "Τελευταία ταχύτητα ανέμου",
bearing_info : "Διέυθυνση",
latest_web : "Τελευταία",
tenminavg_web : "Μέση",
dominant_bearing : "Επικρατέστερη διέυθυνση",
calm: "Νηνεμία",
windrose: "Ανεμούριο",
//
uv_title : "UV Index",
uv_levels : ["None",
"No danger",
"Little risk",
"High risk",
"Very high risk",
"Extreme risk"],
uv_headlines : ["No measurable UV Index",
"No danger to the average person",
"Little risk of harm from unprotected sun exposure",
"High risk of harm from unprotected sun exposure",
"Very high risk of harm from unprotected sun exposure",
"Extreme risk of harm from unprotected sun exposure"],
uv_details : ["It is still night time or it is a very cloudy day.",

"Wear sunglasses on bright days; use sunscreen if there is snow on the ground,<br>" +
"which reflects UV radiation, or if you have particularly fair skin.",

"Wear sunglasses and use SPF 30+ sunscreen, cover the body with clothing and<br>" +
"a hat, and seek shade around midday when the sun is most intense.",

"Wear sunglasses and use SPF 30+ sunscreen, cover the body with sun protective<br>" +
"clothing and a wide-brim hat, and reduce time in the sun from two hours before<br>" +
"to three hours after solar noon (roughly 11:00 AM to 4:00 PM during summer in<br>" +
"zones that observe daylight saving time).",

"Wear SPF 30+ sunscreen, a shirt, sunglasses, and a hat.<br>" +
"Do not stay out in the sun for too long.",

"Take all precautions, including: wear sunglasses and use SPF 30+ sunscreen,<br>" +
"cover the body with a long-sleeve shirt and trousers, wear a very broad hat, and<br>" +
"avoid the sun from two hours before to three hours after solar noon (roughly 11:00 AM<br>" +
"to 4:00 PM during summer in zones that observe daylight saving time)."],
//
solar_title : "Solar Radiation",
solar_currentMax : "Current theoretical maximum reading",
solar_ofMax : "of maximum",
solar_maxToday : "Today's maximum reading",
//
lowest_info : "Lowest",
highest_info : "Highest",
lowestF_info : "Lowest", // for proper translation of feminine words
highestF_info : "Highest", // for proper translation of feminine words
//
RisingVeryRapidly : "Rising very rapidly",
RisingQuickly : "Rising quickly",
Rising : "Rising",
RisingSlowly : "Rising slowly",
Steady : "Steady",
FallingSlowly : "Falling slowly",
Falling : "Falling",
FallingQuickly : "Falling quickly",
FallingVeryRapidly : "Falling very rapidly",
//
maximum_info : "Maximum",
max_hour_info : "Max per hour",
minimum_info : "Minimum",
//
coords : ["Β", "ΒΒΑ", "ΒΑ", "ΑΒΑ", "Α", "ΑΝΑ", "ΝΑ", "ΝΝΑ", "Ν", "ΝΝΔ", "ΝΔ", "ΝΔΝ", "Δ", "ΔΒΔ", "ΒΔ", "ΒΒΔ"],
compass : ["Β", "ΒΑ", "Α", "ΝΑ", "Ν", "ΝΔ", "Δ", "ΒΔ"],
months : ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"]
};
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: new translate

Post by mcrossley »

Thanks, do you have a link to your page?
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: new translate

Post by dimitris vichos »

Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: new translate

Post by William Grimsley »

Hi there,

Well, even with Google Translate on Chrome your translations aren't working as the gauges still display English and not Greek wording...

Will
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: new translate

Post by dimitris vichos »

this is the problem. i put the translate in the file language.js i change the LANG.EN to LANG.GR in the file gauge.js in the line 12. then i refresh the page and the gauges, not displaying.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: new translate

Post by William Grimsley »

Well, your gauges do display but they are in English and not Greek as you want them to be. I don't use these gauges in my site so I can't help you, I'm afraid. I will let Mark help you. :D
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: new translate

Post by mcrossley »

Hi, your gauges.js file still has...

Code: Select all

    var strings = LANG.EN,
:(

Edit: Also it looks like you have not saved the files you have edited in UTF-8 format.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: new translate

Post by dimitris vichos »

mcrossley wrote:Hi, your gauges.js file still has...

Code: Select all

    var strings = LANG.EN,
:(

Edit: Also it looks like you have not saved the files you have edited in UTF-8 format.
see my page. i put in languages.js the greek translate, and in gauges.js var strings= LANG.GR.

the gauges is gone away

http://www.snowguide.gr/nea-moudania/index.htm
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: new translate

Post by mcrossley »

Your realtimegauges.txt has nothing in it?

http://www.snowguide.gr/nea-moudania/realtimegauges.txt

and your gauges.js still has...
var strings = LANG.EN,

:(
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: new translate

Post by mcrossley »

Also, when you have edited language.js to add the Greek translation, you either need to re-minify it to language.min.js, or edit the html to point to the src/language.js file.

If you only want Greek, then I suggest you remove the other language definitions to reduce the file size.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: new translate

Post by dimitris vichos »

finally succeeded. just keep only greek translation in the file language.js and put it in my page

<script src="scripts/language.js"></script>
<script src="scripts/gauges.js"></script>

now works perfect. thank you mcrossley for the help and the beautifull gauges!!!
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: new translate

Post by mcrossley »

:clap:

You may want to change the wind rose compass point from 16 to 8 in Cumulus. And the UTF-8 encoding is going wrong somewhere.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: new translate

Post by dimitris vichos »

this is the complete greek translate for the language.js





//======================================================================================================================
// Greek by Dimitris Vichos
// ***COMPLETE***
//======================================================================================================================
LANG.GR = {
canvasnosupport : "Η έκδοση του browser που χρησιμοποιήτε δεν υποστηρίζει την γλώσσα HTML-5<br>" +
"Αναβαθμίστε τον browser που χρησιμοποιήτε σε εκδοση που υποστηρίζει HTML-5 <br><br>" +
"Ανακατεύθνση σελίδας στην παλιά.. gauges page...",
//
led_title : "Απώλεια επαφής με τον αισθητήρα",
led_title_ok : "Αισθητήρα εντάξει",
led_title_lost : "Απώλεια επαφής!",
led_title_unknown : "Αγωστη κατάσταση αισθητήρα!",
led_title_offline: "Ο μετεωρολογικός σταθμός είναι εκτός δικτύου.",
//
weather : "Καιρός",
latitude : "Βόρειο πλάτος",
longitude : "Ανατολικό μήκος",
elevation : "Υψόμετρο",
//
statusStr : "Φορτώνει...",
StatusMsg : "Φότρωση δεδομένων....",
StatusHttp : "Απώλεια διεύθυνσης http...",
StatusRetry : "Επανάληψη...",
StatusRetryIn : "Επανάληψη σε...",
StatusTimeout : "Λήξη χρόνου",
StatusPageLimit : "Παρακαλώ ανανεώστε τον browser....",
//
StatusLastUpdate : "Τελευταία λήψη δεδομένων",
StatusMinsAgo : "λεπτά πρίν",
StatusHoursAgo : "ώρες πρίν",
StatusDaysAgo : "μέρες πριν",
//
realtimeCorrupt : "Προσπάθεια ανάκτησης δεδομένων, επανάληψη",
//
timer : "Δευτερόλεπτα",
at : "στις",
//
// MAXIMUM number of characters that can be used for the 'title' variables (such as 'LANG_EN.temp_title_out')
// 11 characters ===="12345678901"==== 11 characters
//
temp_title_out : "Θερμόμετρο",
temp_title_in : "Εσωτερική θερμοκρασία",
temp_out_info : "Εξωτερική θερμοκρασία",
temp_out_web : "Εξωτερική",
temp_in_info : "Εσωτερική θερμοκρασία",
temp_in_web : "Εσωτερική",
temp_trend_info : "Τάση θερμοκρασίας",
//
dew_title : "Σημείο δρόσου",
dew_info : "Σημείο δρόσου",
dew_web : "Σημείο δρόσου",
apptemp_title : "Αισθητή θερμοκρασία",
apptemp_info : "Αισθητή θερμοκρασία",
apptemp_web : "Αισθητή θερμοκρασία",
chill_title : "Αίσθηση ψύχους",
chill_info : "Αίσθηση ψύχους",
chill_web : "Αίσθηση ψύχους",
heat_title : "Δείκτης δυσφορίας",
heat_info : "Δείκτης δυσφορίας",
heat_web : "Δείκτης δυσφορίας",
humdx_title : "Δείκτης υγρασίας",
humdx_info : "Δείκτης υγρασίας",
humdx_web : "Δείκτης υγρασίας",
//
rain_title : "Βροχόπτωση",
rrate_title : "Ενταση βροχόπτωσης",
rrate_info : "Ενταση βροχόπτωσης",
LastRain_info : "Τελευταία βροχόπτωση",
LastRainedT_info : "Σήμερα στις",
LastRainedY_info : "χθες στις",
//
hum_title_out : "Υγρασία",
hum_title_in : "Εσωτερική υγρασία",
hum_out_info : "Εξωτερική υγρασία",
hum_in_info : "Εσωτερική υγρασία",
hum_out_web : "Εξωτερική",
hum_in_web : "Εσωτερική",
//
baro_title : "Βαρόμετρο",
baro_info : "Ατμοσφαιρική πίεση",
baro_trend_info : "Τάση πίεσης",
//
wind_title : "Aνεμόμετρο",
tenminavg_title : "Μέση ταχύτητα ανέμου",
tenminavgwind_info : "Μέση 10λεπτη ταχύτητα ανέμου",
maxavgwind_info : "Μέγιστη μέση ταχύτητα ανέμου",
tenmingust_info : "Ριπή ανέμου",
maxgust_info : "Μέγιστη ριπή ανέμου",
latest_title : "Τελευταία ένδειξη ανέμου",
latestwind_info : "Τελευταία ταχύτητα ανέμου",
bearing_info : "Διέυθυνση",
latest_web : "Τελευταία",
tenminavg_web : "Μέση",
dominant_bearing : "Επικρατέστερη διέυθυνση",
calm: "Νηνεμία",
windrose: "Ανεμούριο",
windruntoday: "Τρέξιμο Αέρα",
//
uv_title : "UV Ενδειξη",
uv_levels : ["Μηδενικό",
"Ακίνδυνο",
"Μικρή Επικυνδυνότητα",
"Υψηλή Επικυνδυνότητα",
"Πολύ υψηλή επικυνδυνότητα",
"Ακραία επικυνδυνότητα"],
uv_headlines : ["Μη μετρήσιμη UV ένδεικη",
"Ακίνδυνη στο μέσο επίπεδο",
"Μικρός κίνδυνος στην ηλιακή ακτινοβολία",
"Υψηλός κίνδυνος στην ηλιακή ακτινοβολία",
"Πολύ υψηλός κίνδυνος στην ηλιακή ακτινοβολία",
"Eξαιρετικά υψηλός κίνδυνος στην ηλιακή ακτινοβολία"],
uv_details : ["Ακόμα είναι νύχτα ή η μέρα είναι πολύ συννεφιασμένη.",

"Φοράμε γυαλιά ηλίου; φοράμε γυαλιά ηλίου όταν το έδαφος είναι χιονοσκεπές,<br>" +
"φοράμε ρούχα που αντανακλούν την ηλιακή UV ακτινοβολία.",

"Φοράμε γυαλιά και αντηλιακό με δείκτη SPF 30+ , Ντυνόμαστε με ανοιχτόχρωμα ρούχα<br>" +
"καπέλο, και αποφεύγουμε τον ήλιο τις θερμές ώρες της ημέρας.",

"Φοράμε γυαλιά και αντηλιακό με δείκτη SPF 30+ , καλύπτουμε το σώμα με αντηλιακό<br>" +
"Προγραμματίζουμε τις εξωτερικές δουλειές <br>" +
"3 ώρες μετά την μέγιστη ακτινοβολία (από τις 11 το πρωί ως τις 4 το αποευμα<br>" +
"Οι ζώνες της θερινής ώρας).",

"Φοράμε αντηλιακό με δείκτη SPF 30+ , Μπλουζάκι ανοιχτόχρωμο γυαλιά ηλίου και καπέλο.<br>" +
"Απόφέυγουμε την μακροχρόνια παραμονή στον ήλιο.",

"Παίρνουμς όλες τις προφυλάξεις, συμπεριλαμβανομένων: γυαλιά ηλίου και αντηλιακό με δείκτη SPF 30+,<br>" +
"Ντυνόμαστε με ανοιχτόχρωμα ρούχα ,καπέλο, και<br>" +
"Αποφεύγουμε τελείως τον ήλιο 2 ώρες πρίν και τρείς ώρες μετά το μέγιστο της ηλιακής ακτινοβολίας (από τις 11 το πρωί<br>" +
"ως τις 4 το απόγευμα )."],
//
solar_title : "Ηλιακή ακτινοβολία",
solar_currentMax : "Τρέχουσα μέγιστη θεωρητικά ένδειξη",
solar_ofMax : "της μέγιστης",
solar_maxToday : "Σημερινή μέγιστη ένδειξη",
//
lowest_info : "Eλάχιστη",
highest_info : "Μέγιστη",
lowestF_info : "Ελάχιστη", // for proper translation of feminine words
highestF_info : "Μέγιστη", // for proper translation of feminine words
//
RisingVeryRapidly : "Ραγδαία πτώση",
RisingQuickly : "ταχεία πτώση",
Rising : "πτώση",
RisingSlowly : "Αργή πτώση",
Steady : "Σταθερή",
FallingSlowly : "Αργή άνοδος",
Falling : "Ανοδος",
FallingQuickly : "Ταχεία πτώση",
FallingVeryRapidly : "Ραγδαία πτώση",
//
maximum_info : "Mέγιστη",
max_hour_info : "Mέγιστη ωριαία",
minimum_info : "Ελάχιστη",
//
coords : ["Β", "ΒΒΑ", "ΒΑ", "ΑΒΑ", "Α", "ΑΝΑ", "ΝΑ", "ΝΝΑ", "Ν", "ΝΝΔ", "ΝΔ", "ΝΔΝ", "Δ", "ΔΒΔ", "ΒΔ", "ΒΒΔ"],
compass : ["Β", "ΒΑ", "Α", "ΝΑ", "Ν", "ΝΔ", "Δ", "ΒΔ"],
months : ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαι", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"]
};
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
Post Reply