Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Weather widget translate problem
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Weather widget translate problem
#12691
Weather widget translate problem 4 Years, 4 Months ago  
Hello, Rainy.

I'm trying translate now.

When I set the

Lo:
Hi:
Chance of precipitation:


It doesn't work

I have seen the 100% complete lang. pack like Finnish

The 3 tooltips DO NOT Change!

I guess the problem is .pot (language template file)

But I try to change Lo:(space) to Lo: or Lo(space):(space)

It just doesn't work......

Please help me.

Thanks a lot.

weather.lua
Line 182

if (lo and hi) then
lo = Shadow4_Weather_DecodeString(lo)
hi = Shadow4_Weather_DecodeString(hi)
text = text .. "Lo : " .. lo .. ", " .. "Hi : " .. hi .. " " .. "\n"
_, _, lo = lo:find("(.*)°")
_, _, hi = hi:find("(.*)°")
Rainlendar_SetItemValue(window, "Weather.degrees." .. count, "text", lo .. "/" .. hi)
end




PS.

I find an error in .pot

Photos_folder --> Photos folder

Replace the underline to space
evanade
Senior Boarder
Posts: 79
graphgraph
User Offline Click here to see the profile of this user
Silver Star, team. Location: Taiwan, R.O.C.
The administrator has disabled public write access.
Rainlendar - Calendar on Desktop
www.wretch.cc/blog/evanade/13212307
Some introduction for Rainlendar in my blog.
 
#12693
Re:Weather widget translate problem 4 Years, 4 Months ago  
The problem isn't exactly the .pot file except in the msgid "Chance of precipitation: ". There isn't a space before the colon and Rainlendar can't find any translation.
The other problem is because there are nothing to translate. The correct lines would be:

line 185:
text = text .. Rainlendar_GetString("Lo : ") .. lo .. ", " .. Rainlendar_GetString("Hi : ") .. hi .. " " .. "\n"

line 194:
text = text .. Rainlendar_GetString("Chance of precipitation : ") .. precipitation .. " "

line 165 (the day name inside the tooltip remains in English):
Rainlendar_SetItemValue(window, "Weather.icon.small." .. count, "tooltipHeader", Rainlendar_GetString(day) .. " : ")

IMO, its better "Lo:(space)" instead of "Lo(space):(space)" (same as "Sunday:(space)" instead of "Sunday(space):(space)" inside the tooltip)
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#12699
Re:Weather widget translate problem 4 Years, 4 Months ago  
Great!!!

It's work!!!!!!!

Thanks

But in order to match the .pot

.lua
Replace Hi(space):(space) to Hi:(space)
Lo:
Chance of precipitation:

,too.


I got the point that I can't change the lang. just because r2addon doesn't reload.

so stupid......XD

I forgot to reload r2addon but just edit the .lua


Remember reload Shadow4 than reload r2addon

or you will failed reload

The skin addon has been already applied to the skin.
You may apply the same addon only once to the skin.
evanade
Senior Boarder
Posts: 79
graphgraph
User Offline Click here to see the profile of this user
Silver Star, team. Location: Taiwan, R.O.C.
The administrator has disabled public write access.
Rainlendar - Calendar on Desktop
www.wretch.cc/blog/evanade/13212307
Some introduction for Rainlendar in my blog.
 
#12715
Re:Weather widget translate problem 4 Years, 4 Months ago  
Make sure that you are using the latest version of the addon. Previously it wasn't possible to translate the Lo: and Hi: texts but I fixed that few months ago. The extra space in front of the colon was also removed at that time.
Rainy
Moderator
Posts: 6064
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12717
Re:Weather widget translate problem 4 Years, 4 Months ago  
Sorry Rainy...

I was used the file you give before

But it's not possible to translate the tooltip

Like Jorge_Luis says it must edit that line.

Maybe you forgot to add Rainlendar_GetString

Here is my edited file , it's work for me now.

Maybe you can try it.

www.opendrive.com/files/6660845_Qu8Nc_b763/Shadow4-Widgets.r2skin-addon
evanade
Senior Boarder
Posts: 79
graphgraph
User Offline Click here to see the profile of this user
Silver Star, team. Location: Taiwan, R.O.C.
Last Edit: 2010/07/19 06:11 By evanade.
The administrator has disabled public write access.
Rainlendar - Calendar on Desktop
www.wretch.cc/blog/evanade/13212307
Some introduction for Rainlendar in my blog.
 
#12722
Re:Weather widget translate problem 4 Years, 4 Months ago  
Rainy, you forgot translate the line 165, that with the SetItemValue and tooltipHeader (look at the previous post). In the weather window says (in Spanish): "Hoy Maņana Lun Mar" but in individual tooltips says "Today Tomorrow Monday Tuesday". Those are not translated.

It's my humble contribution with your great job.
(Glad to see that the moonphases were added )
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop