Hi plinio, *,
On Sat, Dec 18, 2010 at 12:53 PM, plino <pedlino@gmail.com> 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
settings returned.
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
navigator.userLangauge instead
http://msdn.microsoft.com/en-us/library/ms534713(v=VS.85).aspx
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
itis possible to do at all, but if you can point me to some javascript
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:
<script type="text/javascript">
alert(navigator.userAgent);
alert(navigator.language);
alert(navigator.userLanguage);
</script>
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?)
yes.
but it's not sorted alphabetically
either.
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..
ciao
Christian
--
Unsubscribe instructions: E-mail to website+help@libreoffice.org
List archive: http://www.libreoffice.org/lists/website/
*** All posts to this list are publicly archived for eternity ***
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: 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.