Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum Timezone
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 1:08 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 7:55 pm

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')

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 8:23 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 8:33 pm

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 4, 2012 - 4:59 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 4, 2012 - 7:57 am

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 4, 2012 - 10:06 am

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 4, 2012 - 10:45 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 4, 2012 - 1:21 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620