cloudy

Author Topic: Android App (WeatherView) for Current Weather and WXSIM Forecast  (Read 11205 times)

0 Members and 1 Guest are viewing this topic.

Offline edje1205

  • edje
  • Posts: 1,873
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • http://www.weersverwachtingen.eu
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #105 on: April 02, 2012, 07:08:57 PM »


Thanks Rob ! That did the trick  :D  :D  :D
very happy with it !!


One question left to go:
where can I get the dutch translation file !  8)  :oops:
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #106 on: April 02, 2012, 08:01:08 PM »
The translation is hard coded into the app. If your phone is set to the locale "nl" then it will use the translation file automaitcally.
Is yours still in English?

Offline edje1205

  • edje
  • Posts: 1,873
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • http://www.weersverwachtingen.eu
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #107 on: April 03, 2012, 07:54:11 AM »

Phone in dutch;
WeatherViewer set up page in dutch

Current conditions in dutch (for exmpl:huidige omstandigheden; koel;voelt als ) but also: 'No Sigam Clouds; Steady;  Waxxing Gibbous Moon' and whole forecast in english !


If needing translation my offer still exists.....
 
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #108 on: April 03, 2012, 09:00:24 AM »
You can change the forecast text by changinh the default language in plaintext parser from en to nl.

Line 128:
$lang = 'en';

change to
$lang = 'nl';

Also make sure you have the translation file in the same folder as plaintext parser (plaintext-parser-lang-nl.txt).

Regarding the Moon phase and barometer, they are got from the Weather Display tag file:

http://www.weersverwachtingen.eu/WeatherViewTags.xml

As you can see some tags have been translated by Weather Display and some have not. Do these tags show on your web site translated or are they in English too?

Offline edje1205

  • edje
  • Posts: 1,873
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • http://www.weersverwachtingen.eu
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #109 on: April 03, 2012, 09:54:15 AM »
You can change the forecast text by changinh the default language in plaintext parser from en to nl.

Line 128:
$lang = 'en';

change to
$lang = 'nl';

OOps forgotten after last update for WU; completly right and changed again  :oops:

Quote
Regarding the Moon phase and barometer, they are got from the Weather Display tag file:

http://www.weersverwachtingen.eu/WeatherViewTags.xml

As you can see some tags have been translated by Weather Display and some have not. Do these tags show on your web site translated or are they in English too?

translated
see  my dashboard
http://www.weersverwachtingen.eu/clientraw/wd-ajax-ml/wxindex.php
or attachement

in fact 3 words are not translated :
at barometer: Steady, clear
at Maanfase:Wax Gibbous Moon
Conditions: Partly Cloudy

Cloudheight (Wolkenbasis) in ft (in stead of meters)

in language-nl.txt I have:
langlookup|New Moon|Nieuwe maan|
langlookup|Waxing Crescent|Wassende maan|
langlookup|Waxing Crescent Moon|Wassende maan|
langlookup|First Quarter|Eerste kwartier|
langlookup|First Quarter Moon|Eerste kwartier|
langlookup|Waxing Gibbous Moon|Wassende maan|
langlookup|Waxing Gibbous|Wassende maan|

langlookup|Full Moon|Volle maan|
langlookup|Waning Gibbous|Afnemende maan|
langlookup|Waning Gibbous Moon|Afnemende maan|
langlookup|Last Quarter|Laatste kwartier|
langlookup|Last Quarter Moon|Laatste kwartier|
langlookup|Waning Crescent|Afnemende maan|
langlookup|Waning Crescent Moon|Afnemende maan|
langlookup|Moon|Maan|
and

langlookup|Partly cloudy|Gedeeltelijk bewolkt|
langlookup|Partly Cloudy|Gedeeltelijk Bewolkt|

langlookup|Mostly cloudy|Meestal bewolkt|
langlookup|Cloudy with clear p|Meestal bewolkt|
langlookup|Cloudy with clear patches|Meestal bewolkt|
langlookup|Overcast|Zwaar bewolkt|
langlookup|Few clouds|Licht bewolkt|
langlookup|Fog, overcast|Mist < 1km, bewolkt|
langlookup|Mist, overcast|Mist 1 - 2km, bewolkt|
langlookup|Drizzle rain, few clouds|Motregen, wat bewolking|
conditions|begin||
#
# wxindexcsv.php translations
#
langlookup|Partly cloudy|Gedeeltelijk bewolkt

and

langlookup|Steady Clear|Bestendig Helder|
langlookup|Clear|Helder|
langlookup|Steady|Bestendig|


Is this to much ?
(How) are the words split off ?
« Last Edit: April 03, 2012, 09:58:01 AM by edje1205 »
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 18.0.1025.142
    • Wellington Weather
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #110 on: April 03, 2012, 05:49:31 PM »
The moon phases and pressure trends would not be too much of a problem, but the sky conditions, certainly in my weather Display set up, are got from metar descriptions. There seem to be an awful lot of variations to the description. Is there a definitive list?

Offline edje1205

  • edje
  • Posts: 1,873
  • Zaandam Holland, the Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • http://www.weersverwachtingen.eu
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #111 on: April 04, 2012, 10:52:10 AM »


Hm should be a question for Brian  :wink:

In the meanwhile a leave it as it is; thanks for paying attention, Rob.
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Upadte and a few more translations please
« Reply #112 on: April 19, 2012, 05:54:26 AM »
Hi Guys

I've been working of a few ammendments to WeatherView:
1. Moon Phase translations - into Dutch
2. Tablet layout fixes - A slight fix for tablet layout where first part of forecast is missing due to the layout being centered.
3. Auto forecast translation - if the site has a translation to the user's phone language, then the forecast is translated. i.e. if a Dutch user looks at the forecast for Wellington Weather, it will now be displayed in Dutch, not English. i eventually want to get a full translation for the site (except metar sky conditions :( ).

Can I ask for someone to check and translate a few into Dutch for me please:

               <string name="newMoon">Nieuwe maan</string>
   <string name="waxingCrescent">Wassende maan</string>
   <string name="firstQuarter">Eerste kwartier</string>
   <string name="waxingGibbous">Wassende maan</string>
   <string name="fullMoon">Volle maan</string>
   <string name="waningGibbous">Afnemende maan</string>
   <string name="lastQuarter">Laatste kwartier</string>
   <string name="waningCrescent">Afnemende maan</string>
   <string name="steady">Steady</string>
   <string name="rising">Rising</string>
   <string name="risingS">Rising Slowly</string>
   <string name="risingR">Rising Rapidly</string>
   <string name="falling">Falling</string>
   <string name="fallingS">Falling Slowly</string>
   <string name="fallingR">Falling Rapidly</string>

Sorry for the formatting, but you should be able to see what needs checking/changing.

Cheers
Rob

Offline Weerstation

  • Posts: 225
  • The Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #113 on: April 19, 2012, 06:16:09 PM »
Hi Rob,

To start with the moon translations.
A bit tricky for me as i have no good translations for Waxing and Waning Gibbous.
I also Googled and that came up with 2 translations.
waxingGibbous - Wassende (bijna volle) maan
waningGibbous - Afnemende (volle) maan

Code: [Select]
   <string name="newMoon">Nieuwe maan</string>
   <string name="waxingCrescent">Wassende maan</string>
   <string name="firstQuarter">Eerste kwartier</string>
   <string name="waxingGibbous">Wassende (bijna volle) maan</string>
   <string name="fullMoon">Volle maan</string>
   <string name="waningGibbous">Afnemende (volle) maan</string>
   <string name="lastQuarter">Laatste kwartier</string>
   <string name="waningCrescent">Afnemende maan</string>

Code: [Select]
   <string name="steady">Constant</string>
   <string name="rising">Stijgend</string>
   <string name="risingS">Langzaam stijgend</string>
   <string name="risingR">Snel stijgend</string>
   <string name="falling">Dalend</string>
   <string name="fallingS">Langzaam dalend</string>
   <string name="fallingR">Snel dalend</string>

Thank you for fixing the forecast and all of your work.
If other dutch users have a better translation for the moonphases, please reply.
Vantage Vue (Firmware 2.14 EU)
WeatherDisplay 10.37R build 61
USB Weatherlink IP Data Logger

Windows 7 Ultimate 32-bit
HP Intel Core Duo T6600 2.2 Ghz

Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Version 2.10 now available
« Reply #114 on: April 21, 2012, 11:58:53 AM »
I've just uploaded a new version for WeatherView Elite and WeatherView Free.

Can Elite users make sure the plaintext parser language files are installed correctly for forecast translations to work.

Update includes:

Translation updates for Dutch Users:
The App will now display forecasts from other sites in the Dutch(nl) Language.

Also includes minor fixes for Tablet layouts.

If you wish to have WeatherView translated into your language (both Elite or Free), please email welly@wellingtonweather.co.uk to get more details or use the attached new excel spreadsheet.

The language updated file requires about 122 translations. Once I have added them to the app, the forecast is also translated.
At the moment only English(en) and Dutch(nl) have been translated within the app.

Thanks
Rob

Offline Weerstation

  • Posts: 225
  • The Netherlands
  • OS/Browser:
  • Android 4.0.3
  • Safari 4.0
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #115 on: April 21, 2012, 04:41:34 PM »
Hi Rob,

Looks good except "Full moon this month", we are still in April, says May 6th.
Vantage Vue (Firmware 2.14 EU)
WeatherDisplay 10.37R build 61
USB Weatherlink IP Data Logger

Windows 7 Ultimate 32-bit
HP Intel Core Duo T6600 2.2 Ghz

Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Re: Android App (WeatherView) for Current Weather and WXSIM Forecast
« Reply #116 on: April 21, 2012, 05:23:00 PM »
Yes, the tag gives "the full moon for this lunar cycle" which is not great, but it's the only one I can see giving just the date of the full moon and not the time. I did used to have it say "next full moon" but the tag would still say May 6th even on May 7th. The only real way I could see would be to have a tag "the date of the next full moon" but this would have to be something that Brian would write into Weather Display.

Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Wellington Weather
Full moon fix
« Reply #117 on: April 24, 2012, 08:38:27 PM »
Brian is kindly adding a new tag to the latest version of Weather Display to give the date of the next full moon. To this end I'm releasing a new version with a couple of translation changes to reflect this.

The next full moon translated into Dutch: "De volgende Volle Maan"
and translated into Spanish: "La próxima Luna Llena"

I've used google translate to get the above so I may be not quite right. Can anyone give feedback?

I've also noticed there is a small issue with the plaintext language files giving odd unsupported characters. This is because some of the files are encoded in ANSI and not UTF-8. Please make sure that you convert all the language files to UTF-8 (with signiture) for the forecast translations to display correctly.

If anyone wants me to email them, I'll gladly do so, or you can use notepad2 or notepad++ to resave them yourself.

Finally I've included an updated WeatherViewTags.txt file, within the update, to include the new tag, but it would be far easier for you to edit line 18 to: <fullmoon>%nextfullmoondate%</fullmoon> once you have installed Weather Display build 23.

I'll hold off publishing WeatherView version 2.12 until the new tag is ready and the translations have been ok'd by someone.

Cheers
Rob

Offline Weerstation

  • Posts: 225
  • The Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
Re: Full moon fix
« Reply #118 on: April 25, 2012, 02:31:02 PM »

The next full moon translated into Dutch: "De volgende Volle Maan"

I've used google translate to get the above so I may be not quite right. Can anyone give feedback?


Next Full Moon=Volgende Volle Maan

Thanks Rob
Vantage Vue (Firmware 2.14 EU)
WeatherDisplay 10.37R build 61
USB Weatherlink IP Data Logger

Windows 7 Ultimate 32-bit
HP Intel Core Duo T6600 2.2 Ghz

Offline Welly

  • Posts: 386
  • Rob
  • Wellington, Shropshire. England
  • OS/Browser:
  • Win XP
  • MS IE 8.0
    • Wellington Weather
New Update 2.12 for WeatherView Elite
« Reply #119 on: May 05, 2012, 05:42:30 PM »
Finally got the next update finished.

The next full moon should now be displayed correctly.

I've added the new tag kindly provided by Brian in his latest release and added an "If the current date is past the full moon date then display the next month full moon date instead".

I've also ammended the new station login screen to make it flow a little better and trimmed the metar conditions - anything after a ; is ignored i.e. " towering cumulonimbus clouds observed".

Hopefully all the app should be translated into Dutch and Spanish apart from the Metar conditions.

Thanks to all those who assisted in the translations.

Regards
Rob

 

cumulus