It is currently July 21st, 2019, 9:34 am

illustro Simple Weather (updated)

Post your work-in-progress and completed skins to share and discuss.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3414
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

illustro Simple Weather (updated)

eclectic-tech » April 13th, 2017, 3:54 pm

illustroSimpleWeather5.png
illustro Simple Weather
  • Added language translation support
  • 7 translations included: English, French, Spanish, German, Chinese (Simplified), Romanian, Hungarian
  • Weather.com does not support all languages, but other languages should be easy to add (I will not take requests, you can do it)
  • Current Condition / Temperature / Temperature Range / Wind Speed and Direction / Humidity
  • Context Menu: Weather.com / Fahrenheit~Celsius / Location Code Lookup / Languages
You do not have the required permissions to view the files attached to this post.
Last edited by eclectic-tech on September 2nd, 2017, 12:38 pm, edited 2 times in total.
User avatar
balala
Rainmeter Sage
Posts: 8391
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: illustro Simple Weather (updated)

balala » April 13th, 2017, 7:52 pm

Hi eclectic-tech, very good and interesting code, as usual. I like it, but I'd add two more language, if you'll want to include them in your next release: Romanian and Hungarian.
If I'm not mistaken, I have to add (and I did) the following options to the indicated sections:

Code: Select all

[Rainmeter]
...
ContextTitle11=Romanian
ContextAction11=[!WriteKeyValue Variables LocalLanguage "ro"][!Refresh]
ContextTitle12=Hungarian
ContextAction12=[!WriteKeyValue Variables LocalLanguage "hu"][!Refresh]

...

[MeasureLanguage]
...
IfMatch6=(?i).*ro.*
IfMatchAction6=[!SetVariable Condition "Condiție curentă"][!SetVariable Temperature "Temperatură"][!SetVariable Range "Interval"][!SetVariable Humidity "Umiditate"][!SetVariable Wind "Vânt"]
IfMatch7=(?i).*hu.*
IfMatchAction7=[!SetVariable Condition "Állapot"][!SetVariable Temperature "Hőmérséklet"][!SetVariable Range "Határok"][!SetVariable Humidity "Nedvesség"][!SetVariable Wind "Szél"]
If I'm not wrong, that's all, right? If not, just please tell me what else I have to translate and I'll post them.
And one more observation: the AppVersion option of the [Rainmeter] section is deprecated. You should remove it.
Please take into account to add these options into the next version of your skin, if you'll make a new one.

Thanks in advance.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3414
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: illustro Simple Weather (updated)

eclectic-tech » April 13th, 2017, 8:23 pm

Thanks balala!

I didn't want to add too many languages to crowd up the Context Menu, but I will add those language options in the next couple of days :thumbup:
Completely overlooked that the AppVersion was still there from the original illustro skins :oops: I'll remove it in the update.

I have to concentrate on my Federal, State, and Local Income taxes for a while... April 18th deadline is approaching!
"Only two things are guaranteed in life... Death and Taxes!" :x

Thanks again for your input and advice! :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 8391
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: illustro Simple Weather (updated)

balala » April 13th, 2017, 8:34 pm

eclectic-tech wrote: "Only two things are guaranteed in life... Death and Taxes!" :x
True!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3414
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: illustro Simple Weather (updated)

eclectic-tech » April 17th, 2017, 3:44 pm

Added Hungarian & Romanian (per balala's suggestion)

If you want any other languages, simply follow the same 2 addition steps balala posted ... :D
User avatar
dvo
Posts: 540
Joined: February 7th, 2016, 6:08 am

Re: illustro Simple Weather (updated)

dvo » April 17th, 2017, 3:53 pm

for adding dutch to all use:

Code: Select all

ContextTitle13=Dutch
ContextAction13=[!WriteKeyValue Variables LocalLanguage "nl"][!Refresh]

Code: Select all

IfMatch8=(?i).*nl.*
IfMatchAction8=[!SetVariable Condition "Conditie"][!SetVariable Temperature "Temperatuur"][!SetVariable Range "Interval"][!SetVariable Humidity "Luchtvochtigheid"][!SetVariable Wind "Wind"]
User avatar
balala
Rainmeter Sage
Posts: 8391
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: illustro Simple Weather (updated)

balala » April 17th, 2017, 4:03 pm

eclectic-tech wrote:Added Hungarian & Romanian (per balala's suggestion)
Thanks.