Hi plinio, *,
On Sat, Dec 18, 2010 at 12:53 PM, plino <firstname.lastname@example.org> wrote:
Two problems with the download page:
1) Language detection depends on the browser used :)
Yes - as the language is determined by the browser's language/regional
concrete it does this:
(navigator.language) ? navigator.language : navigator.userLanguage
i.e. if navigator.language (Browser's UI language) is available, use
that, otherwise use navigaor.userLanguage (IE, regional settings)
Under Firefox I get the "en-US English US",
expected, firefox returns/supports navigator.language
under Opera 11 I get (ru)
Russian (i.e. the first item on the list)
This is unexpected and could be a bug or some kind of privacy setting
in opera to not return any of those properties,
and under IE6 (yes, I know it's
oudated but I only use it when everything else fails) I get "pt (português)"
Expected as well, doesn't support navigator.language, but returns
Both Firefox and IE make sense. Maybe there should be an extra tick box to
"automagically" select between browser language or locale?
Well - different browsers return different values... I don't think
that does this, I can add it...
(Opera obviously has a problem...)
Yes, to debug this, can you please visit http://jsfiddle.net, paste this:
into the HTML box at the top-left and click "run", then copy and paste
the output of the alert boxes.
2) The language selection dropbox doesn't seem to be sorted by any
criteria. It is not sorted by the two letter code (arguably because users
don't know their two letter code?)
but it's not sorted alphabetically
It is sorted alphabetically, but capital letters come before lower
case letters, and accented characters come before regular ones, for
non-latin letters, it is either at top or at bottom.
But as there has been a request to use iso-code for sorting already, I
guess I'll just switch it back to iso-code sorting..
Unsubscribe instructions: E-mail to email@example.com
List archive: http://www.libreoffice.org/lists/website/
*** All posts to this list are publicly archived for eternity ***
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy