ElkArte Community

Elk Development => Bug Reports => Topic started by: Jorin on July 03, 2014, 11:29:51 am

Title: [RC1] MRZ not found in language files
Post by: Jorin on July 03, 2014, 11:29:51 am
I use the german language files and in my forum index I found a "MRZ" which seems to stand for "März" / "March". But I cannot find this in my language files?!? :o
Title: Re: [RC1] MRZ not found in language files
Post by: emanuele on July 03, 2014, 04:32:08 pm
Where exactly did you find it? ;)
Title: Re: [RC1] MRZ not found in language files
Post by: Jorin on July 04, 2014, 01:50:12 am
In forum index. I changed all the month descriptions in the language files, but I do not find this one. Maybe it's in a template file?
Title: Re: [RC1] MRZ not found in language files
Post by: Spuds on July 04, 2014, 08:29:28 am
I think that is coming right from PHP and your server, part of setlocale() and strftime() functions.

What do you have set in $txt['lang_locale'] = Its this value that your server needs to "know" If its de_DE could you try de_DE.utf8 and see what happens?

Title: Re: [RC1] MRZ not found in language files
Post by: emanuele on July 04, 2014, 08:58:39 am
Should we drop one of the two?
Maybe the one that relies on the server?
Title: Re: [RC1] MRZ not found in language files
Post by: Spuds on July 04, 2014, 09:09:14 am
Possible ... we could just rely on the

// Do-it-yourself time localization section

and drop the one that depends on the server in the standardTime function.   I'm honestly not knowledgeable on all the nuances of that function.  Easy to test by setting that txt['lang_locale'] to something like 'xx_xx' I think
Title: Re: [RC1] MRZ not found in language files
Post by: Jorin on July 11, 2014, 02:59:48 am
Quote from: Spuds – I think that is coming right from PHP and your server, part of setlocale() and strftime() functions.What do you have set in $txt['lang_locale'] = Its this value that your server needs to "know" If its de_DE could you try de_DE.utf8 and see what happens?
I had "de_DE". Have tried "de_DE.utf8" and it helps! Yippie! :)
Title: Re: [RC1] MRZ not found in language files
Post by: Spuds on July 11, 2014, 08:53:18 am
Glad it helped  :D
Title: Re: [RC1] MRZ not found in language files
Post by: emanuele on October 04, 2014, 08:00:53 am
Back on this, recently I saw another weird thing coming from the server:
http://www.italiansmf.net/forum/index.php?topic=1099.0
Instead of a capital "S", the server function was returning the "latin small letter long s": http://graphemica.com/ſ
To "fix" the problem I suggested to just exclude the server entirely with a false && in the conditional (http://www.italiansmf.net/forum/index.php?topic=1099.msg5979#msg5979).
And the forum is UTF-8.
Title: Re: [RC1] MRZ not found in language files
Post by: Spuds on October 04, 2014, 08:14:21 am
I think that means the server does not have the language files installed for the given set local (or incomplete ones). 

So you can try $txt['lang_locale'] = 'it_IT.utf8'; or $txt['lang_locale'] = 'it_IT'; or $txt['lang_locale'] = ''; .. its really a crap shoot on what a server might have.  I love the big fat warning about setlocal on windows machines as well.