PDA

View Full Version : SuperDateTime translations



Pascal Hibon
2009-08-09, 08:19
I noticed that it is possible to create translation tables in the strings.txt file. These are the various text displayed on the webpages in SC for SuperDateTime.
Is there a way to translate the text that is actually displayed on the player’s screen?
I mean the text like “Today: Partially Clouded” etc. I would like to translate those messages into Dutch.

steve0564
2009-08-10, 06:13
I would like to translate those messages into Dutch.

.....or german....... ;-)

Pascal Hibon
2009-08-14, 00:33
Since there was no reply I thought to bring this threat on top of the list again.
Anyone knows how to do this?

carp
2009-08-14, 00:50
As you cannot find a string like "Partially Clouded" in strings.txt, I assume that some of the text that is displayed by SuperDateTime (especially the weather information) comes directly from the weather data supplier (weather.com). So strings.txt may not be the right place to search for, instead one might have to switch to another weather data source which delivers the data you need in the language you desire.

GoCubs
2009-08-15, 16:34
That's correct, SDT shows data exactly how it is provided on weather.com. Sure we could functionality to translate strings, however, we'd need to have a list of every possible string that weather.com can use. There are quite a few...

-Greg

Pascal Hibon
2009-08-16, 02:12
The translation string option could be interesting. We could compile a list of translations strings. And whenever the SuperDateTime can’t find a translation in the transaltions.txt file, it simply displays the string it got from weather.com. This way, users can fill up their translations.txt file gradually. The transaltions.txt could look like this:

Partially Clouded|Gedeeltelijk Bewolkt
Fog|Mist
Rain|Regen
etc.

The advantage of this approach is that it works for any language and the users are responsible for compiling their own translations.txt file.
Users could even share their translations tables with each other on this forum.

Would this be difficult to implement?

peterw
2009-08-16, 05:56
Define strings like SDT_PARTLY_CLOUDY? I have not developed for weather.com, but IIRC Yahoo has a list of around 35 discrete weather codes, e.g. 1=Sunny, 2=Cloudy, something like that.

Kuben72
2009-08-17, 11:56
And that is why you should use the wheatertime plugin instead :)

Pascal Hibon
2009-08-18, 08:44
Thanks for the tip Kuben72. Installed the WeatherTime plugin and it works in Dutch.
Great – problem solved.