Locale issue

Post Reply
murko
Sr. Bludit
Posts: 40
Joined: Sat May 28, 2016 11:16 am

Hi there. Trying to figure out this "locale issue" and maby I'm just getting this wrong.
I made a copy of the English translation (named it sv_SE.json) and am translating that one as I go along..
In admin under language and timezones I've set Svenska (Sverige) and Europe/Stockholm (GMT+2:00)
The locale gets set to sv_SE due to filename I guess and I'm pretty sure that's the Swediish locale.

I still get the dates of the posts written in English though (names of the months that is).

Date format "j F, Y" should for today show "2 juni, 2016" in Swedish, but it shows as "2 June, 2016" wich is English.

Code: Select all

j -	Day of the month without leading zeros -	1 to 31
F -	A full textual representation of a month, such as January or March -	January through December
Y -	A full numeric representation of a year, 4 digits -	Examples: 1999 or 2003
Or am I just understanding wrong what the locale does? I always though that it kinda translated these date formats for example?



Ps. Yes my server is located in Sweden as well.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Please look at the following thread:

Post date time language change?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
murko
Sr. Bludit
Posts: 40
Joined: Sat May 28, 2016 11:16 am

Edi wrote:Please look at the following thread:

Post date time language change?
Thank you very much. Poor searching skills on my part :/
Worked like a charm
Post Reply