meeting-room-booking-system / mrbs-code

MRBS application code
Other
120 stars 59 forks source link

Failure to set locale et_EE.UTF-8 #485

Closed jberanek closed 7 months ago

jberanek commented 11 years ago

When browser sends language preference as 'et' following error message is generated: [Warning: Server failed to set locale to 'et_ET.UTF-8'].

Correct locale should be et_EE.UTF-8.

Solution: add 'et' => 'et_EE' to the $lang_map_unix = array variable in language.inc

Reported by: *anonymous

Original Ticket: mrbs/bugs/277

jberanek commented 11 years ago

This works OK on my system. I set the language to 'et' and got an Estonian language locale. It sounds to me that you haven't got et_ET.UTF-8 installed on your system. I think the solution in your case is to install the locale or else to use $override_locale = "et_EE.UTF-8".

That said, I freely admit that I'm not an expert on Estonian locales.

Campbell

Original comment by: campbell-m

jberanek commented 11 years ago

I'd say et_EE looks right for Linux servers at least:

$ LANG=et_ET.utf-8 date "+%A"
Tuesday

$ LANG=et_EE.utf-8 date "+%A"
teisipäev

Original comment by: jberanek

jberanek commented 11 years ago

You're right! I was testing something else.

Fix added in Rev 2749

Campbell

Original comment by: *anonymous