Carterlake/AJAX/PHP Multilingual template available

hi Ken
all ok thank you
go for rest settings.
regards Panos

Hi Ken… a couple of questions about translations (Spanish):

1.- Site: http://meteo.aerolugo.com/lugo All pages are shown on spanish except wxtrends.php and I can’t figure out why. http://meteo.aerolugo.com/lugo/wxtrends.php

2.- On WU forecast section I want to make two minor changes, and again I can’t find where to do it: I want to change the “&” character between days to the “y” character. And the chain “windchill” is somewhere translated as “vientos helados”. It should be changed to a much more convenient "sensaci

Hi Luis!

Unpack trends-inc.php from the WD-World-ML distribution and upload it to your website. If you have enabled an old trends-inc.txt to be converted to trends-inc.php in WD, turn that off … the trends-inc.php file doesn’t need processing by WD.
That should fix the translation issue with wxtrends.php

The ‘windchill’ translation is likely in the language-es.txt file with the translation into Spanish.

Sorry, I’d misread … the WU-forecast just echos what spanish.wunderground.com has for the forecast text. It’s not translated further by the templates. To change it, contact WeatherUnderground and suggest they change the translation for wind-chill.
Hope this helps,

Best regards,
Ken

Thanks Ken :slight_smile:

Hello Ken.
I have done some more translations in the language-se.txt file.

Regards
Bo


language-se.txt (12.3 KB)

Hello !
I made some more adjustments to the file after Musses corrections.

/Bo


language-se.txt (12.3 KB)

I am getting PHP Notices in my apache error file…

PHP Notice: Undefined offset: 2 in c:\htdocs\ajax-gizmo.php on line 242 and sometimes ajax-dashboard.php on line 1028

which is in a function at the end of each file… function gizmo_fixupCondition

Anyone got a fix for this? I like having error free error files :wink:

The specific line is:

if($vals[0] == $vals[2]) {$junk = array_pop($vals);}

You must have Notice: warnings enabled in your php (the default is to suppress Notice: type errata on most PHP installations).

You can change that line to

if(isset($vals[2]) and $vals[0] == $vals[2]) {$junk = array_pop($vals);}

then the message should not appear.

Best regards,
Ken

Hi All,

Is there a good tutorial on installing ML when currently using only the English version? Hope to make this happen sometime this winter if time is available and the surf is not beckoning.

Thank you for any suggestions as to a methodology in installing over the existing scripts that I am currently running.

–Stan Y.
Maui, Hawaii

Stan,
There are many changes from the English-only template sets to the Multilingual sets. The recommended way it change from English-only to Multilingual is to replace the current website with a full upload from the distribution .zip, and recustomize your site. Sorry…

Best regards,
Ken

Hi Ken,

Thank you for your reply and input.

If I want to do the ML, it will be a complete make over (HGTV type project) with what I have running presently. Looks like a lot of reworking of the scripts that I have going. More deep thinking about this.

Thanks again for all your support.

–Stan Y.
Maui, Hawaii

Hi,

My WU-forecast.php doesn’t fit in the page because of translation for e.g
Wednesday Night to Woensdagnacht (doesn’t break)

Is there a script where I can break words ‘day’ and ‘night’ from each other (I’m not familiar with scripts for this) so I can use the dutch wunderground page,
or is it possible to translate the english wunderground page to dutch with Ken’s ML lang files ? (difficult I think)

thnx for advise at forehand :slight_smile:

see diff at the right sides of the pages:
http://english.wunderground.com/global/stations/06240.html
and
http://dutch.wunderground.com/global/stations/06240.html

Hi Ed,
The WU-forecast.php (ML) script currently does not do translations itself … it relies on Wunderground language translation for the day names and forecast text. You can do a setting inside the script for $maxIcons to control the number of icons displayed. Maybe setting it to $maxIcons = 8 will allow the long names for the days in Dutch to fit within the template? Or, make a suggestion to WU to have the Dutch names changed so “Woensdagnacht” is made as “Woensdag-
nacht”

Best regards,
Ken

Ed,

Like Ken says, if you change the max icons to 8 you will have no more difficulties, i did that because i was also looking for a way to get it fitting when i installed it.

Marc,

[quote="ktrue post:178, topic:33672"] You can do a setting inside the script for $maxIcons to control the number of icons displayed. Maybe setting it to $maxIcons = 8 will allow the long names for the days in Dutch to fit within the template? [/quote] and Marc:

sure I can, but I prefere the 5 days fc as it is more ‘extended’ then 4 to my feeling :wink:

Or, make a suggestion to WU to have the Dutch names changed so "Woensdagnacht" is made as "Woensdag- nacht"

send them an message but I’m afraid it’s not urgent enough for them if 1 person has a bottleneck with that :slight_smile:

Ken,

In the meanwhile I changed the font to 7px, not really charming for people who have an reading-problem, but it works
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxforecast.php

for the WXSim forecast I had this problem sometimes as well and made the change with the break in the plaintext-parser-lang-nl.txt
never thought about that possibility :lol:

Hi Ken!

I use XAMPP suite to test my site off line, and after version 1.7.1 (1.7.2 and 1.7.3) I get some errors or warnings
in ajax-dashboard.php. Version 1.7.1 is ok.

The errors are like: “Deprecated: Function split()”.

I think that there is an issue with the PHP version. Is there a way to suppress or even eliminate those errors?

You can find XAMPP here: http://www.apachefriends.org/en/xampp.html

Best regards,

Thanos

Thanos,

Hi, i had the same issue with my recordspage. I changed the code “split ()” to explode() and that did the trick with me, you have to search a little bit in your pages but this resolved the error on my site. Fault is produced by a new update of PHP wich no longer supports the split() function.

Hope it helps!

Marc,

Thank you Marc,

I’ll try it!

Thanos

Edited: Issue resolved Marc! Thank you! :slight_smile:

Thanos,

Glad i could be of any help!

Marc,

[quote author=saratogaWX link=topic=32785.msg265405#msg265405 date=1214872103]
This is the initial release of the WD-World-ML template set that many have helped build. I’d like to specially thank the translators for their excellent efforts to provide the lookup tables for the translations!

Danish: Henrik (jwwd) http://www.buskelundtoften.dk/vejret/english
Danish: S