Support Forum

Forum Timezone

SP SPQC
SPQC
Member

At the bottom I see Forum Timezone: America/Chicago, where are the citiies string for translation?

 

I use the French WordPress and those are already translated thus in WP General Option I see french city names but forum don’t use those.

8 Answers

New Answer

MP Mr Papa
Mr Papa
Member

if you are looking to translate ‘Forum Timezone’, its in the theme to be translated…

the cities come directly from wp, so not sure why they wouldnt be translated…  in fact, we just grab the wp saved option for the timezone string

get_option(‘timezone_string’)

SP SPQC
SPQC
Member

Like I wrote, my WP is in french and in General Options I already see the names of cities in French, I believe it uses the continents-cities-fr_FR file.  The forum OTOH display them in engilsh.

MP Mr Papa
Mr Papa
Member

and like I said, we just display the wp option… we dont have the string in our code to be translated…

so unless wp does something odd like store English and translate later, not sure what is going on…

YS Yellow Swordfish
Yellow Swordfish
Member

Are you guys talking about different things!

SPQC: Are you referring to the actual drop down list? If so I was not aware there was any translation available for that. The list is actually generated by php. If you have any information on that I would appreciate knowing it although I will try and hunt it down later.

SP SPQC
SPQC
Member

Yes, the drop down list in WP General Options is translated and use /wp-content/languages/continents-cities-fr_FR.mo

MP Mr Papa
Mr Papa
Member

we are talking about same thing, but multiple things regarding it… 

in wp general options, the timezone dropdown list is generated by a wp function…  we call the same function in sp…

when you save the timezone in wp, it saves the value in the ‘timezone_string’ option in the wp options table…  we simply display the value of that timezone string…

so we just need to figure out what wp is doing… because they do not appear to be saving the translated string… and we just use the value they save…  as you indicate Andy, we dont have those strings directly in our code anywhere…

YS Yellow Swordfish
Yellow Swordfish
Member

The real question is would we want the overhead of loading what will be quite a large MO file for all the zones/countries/cities in the list just to satisfy (a) the timezone displayed in the About area and (b) the personal timezone displayed in the profile tab? In other words does the display of that justify the cost…

SP SPQC
SPQC
Member

I can’t answer any of you questions.  I was telling you because there are many translation available (both WP and S:P) and all those using them may also be looking to have this part done too.

 

An option, and I just changed it here, is to use UTC.  smile