Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Thu, May 26, 2016 at 1:42 AM, Michael Bauer <fios@akerbeltz.org> wrote:

Why can LO Online not deal with locales which are not in the
browser-accept locales? It cannot possibly be in the realm of the
impossible to implement a locale selection feature.



No, it's not impossible. In fact I've just implemented it.
https://cgit.freedesktop.org/libreoffice/online/commit/?id=62abb2533dab121156c8a5eef9db6d27e25cde65
It adds an optional 'lang' parameter, and if it is present, then it will
take precedence. It it's missing, the Accept-Language header will be used,
which is sent by the browser. The problem with this approach, that if user
asks for a localization in the 'lang' parameter, that is not present, then
the UI will fall back to English, and not to the next preferred language in
the Accept-Language header. (Or maybe not. I did not try.)




Seems a pretty weird list, for one thing "gd-ie" does not exist as a
locale. I mean, it's on the list but there is no such thing as "Scottish
Gaelic (gd) - Ireland (ie)". Scottish Gaelic is not an Irish locale. At
all. It's like have fr-UK or es-FR.


I did not find a better list. Maybe it's weird, maybe it's incomplete. For
example I can select Kurdish and Yoruba from Firefox -> Preferences ->
Content -> Languages -- the two examples you gave in your other email. But
with the 'lang' parameter, it is no longer important, what browsers
support.

I hope this helps. Best regards.

Andras

-- 
To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted

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.