Topic: https://brettterpstra.com/2012/07/31/geeklet-multilingual-weather-and-forecast/
hide preview

What's next? verify your email address for reply notifications!

Jon 12y, 111d ago

I love this applet! Works great! I really like the font you have, but I can't seem to find which it is, could you point me in the right direction?

hide preview

What's next? verify your email address for reply notifications!

Jon 12y, 111d ago

I love this applet! Works great! I really like the font you have, but I can't seem to find which it is, could you point me in the right direction?

hide preview

What's next? verify your email address for reply notifications!

Behinder 12y, 136d ago

Does not work for me..when I click glet file or open it in GeekTool nothing happens

remark link
hide preview

What's next? verify your email address for reply notifications!

genimac 12y, 136d ago

It works perfectly for me, follow this steps:

Move the folder to the place you have the GeekTool scripts

If you want the text in german (de), spanish (es), french (fr), italian (it), japanese (jp), dutch (nl):
open the "weather_localization_jp.rb" you want (I use the sp one)

    on top you can see:
### CONFIG [ THESE VALUES OVERRIDE weatherparser.rb ]
# "City, State" or "City, Country" or ZIP Code
$mycity = 'Madrid, Spain'
# f for fahrenheit, c for celsius
$f_or_c = 'c'
# folder where the weather icons are located, no trailing slash
$basedir = '~/Dropbox/WeatherIcons'

change to the city and country you want
$mycity = 'Buenos Aires, Argentina'

choose the unit (c is ok for me)

get the path to the "GeekToolWeatherLocalized1.2" folder
(the best way to get it is opening terminal and drag the folder on it, you will get the full path)
$basedir = '/Users/genimac/Documents/GeekToolWeatherLocalized1.2'
or
$basedir = '~/Documents/GeekToolWeatherLocalized1.2'

open the "weatherparser.rb"

on top you see:
# If you're using localization, skip the config in this file
# and set your values in weather_localization.rb

localization_file = "weather_localization_fr.rb"
# For non-english languages, change the filename to match your localization file
# e.g. localization_file = "weather_localization_es.rb"
# The default file is blank and will use English automatically,
# and setting localization_file to false will remove the requirement for the
# additional file completely.

Change to the language you want
localization_file = weather_localization_sp.rb (the spanish I want)

Done, now go to the geeklet part.

Iy you want the text in english:
you only need to edit the "weatherparser.rb"
Change to english
localization_file = weather_localization.rb

    Now edit the city, units and path as before
# CONFIG [ THESE VALUES WILL BE OVERRIDDEN BY YOUR LOCALIZATION FILE ]
# "City, State" or "City, Country" or ZIP Code
$mycity = '55987'
# f for fahrenheit, c for celsius
$f_or_c = 'f'
# folder where the weather icons are located, no trailing slash
$basedir = '~/Dropbox/WeatherIcons'
### END CONFIG

Finally you need to adjust the paths on the geeklet itself
open GeekTool preferences
select the time geeklet
change the command from "~/Dropbox/WeatherIcons/weatherparser.rb time" to your path
"~/Documents/GeekToolWeatherLocalized1.2/weatherparser.rb time"

    Do the same for "conditions" and "forecast"
for the weather icon change the URL field from "file://localhost/Users/ttscoff/Dropbox/Code/projects/weathericons2/weathericon.png"
to "~/Documents/GeekToolWeatherLocalized1.2/weathericon.png"

Now look for a nice color, font and sizes to match your desktop.
hide preview

What's next? verify your email address for reply notifications!

Luciano 12y, 192d ago

Hi, i'm Luciano and live in Florence, Italy. I have trasleted your weather_localization. rb in italian. How do I send it to you? What's your e-mail? Thaks
Lucoflove

hide preview

What's next? verify your email address for reply notifications!

mashby 12y, 230d ago

Thank you for a wonderful geeklet!

I noticed in your forecast, you've lined up the day of the week and the temperatures and was curious how you did that.

hide preview

What's next? verify your email address for reply notifications!

Bobby 12y, 231d ago

getting the following error:
forecast': undefined methodstrip' for {"Forecast for"=>""}:Hash (NoMethodError)

hide preview

What's next? verify your email address for reply notifications!