#84 locale selection could be better

Minor
closed
MRBS (195)
5
2012-07-20
2003-10-28
No

In version 1.2-pre1 there is some locale selection code
that transposes browser language selections into what
is thought as being existing locales.

I come from Denmark and here we either use "da" or
"da_DK". But as I also come from an international
environment I do not have the freedom of fixing the
locale to either of these selections.

Furthermore as a Mozilla user I can choose the language
"da" for Danish as preferred over "en" for English, but
I do not have the possibility of choosing "da-dk",
which I know will make MRBS work; but I have the
possibility of writing "da-dk", which mozilla
accepts, but then I have to know what to write, which
cannot be required from all users.

I suggest that MRBS first tries to set the locale
(after some sanitizing) to the user's preference before
trying to generate other guessed locales. setlocale()
returns FALSE in case something goes wrong.

Discussion

  • John Beranek

    John Beranek - 2003-10-30

    Logged In: YES
    user_id=71843

    I'm the writer of the new locale support in MRBS, and can
    tell you it will now work for Danish users. If the browser
    sends "da" or "da-da" then you will get Danish in MRBS,
    whether the server is hosted on Linux or Windows.

    You will also be able to use a Unicode encoding, dependent
    on PHP and OS support, and mix and match languages in MRBS.

     
  • John Beranek

    John Beranek - 2003-10-30

    Logged In: YES
    user_id=71843

    So, I'll take this, until the new code is in a proper
    release and proved to "do the right thing".

     
  • John Beranek

    John Beranek - 2004-06-23

    Logged In: YES
    user_id=71843

    I'm going to call this fixed now. Either use MRBS 1.2-pre3, or the soon to be releases MRBS 1.2

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks