summaryrefslogtreecommitdiff
path: root/libreofficekit/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-16 00:46:51 +0200
committerTor Lillqvist <tml@collabora.com>2018-12-13 16:19:53 +0100
commite07f85a68cedde82a32a2b1f9bde75f25d7dc640 (patch)
treea9adc3e365c67c02400a321cdc0526ad47ad8023 /libreofficekit/source
parentb75ee1b35c72214d7c0dea98eda87ec9531cb768 (diff)
Be less eager to use a fallback in SfxViewShell::SetLOKLanguageTag()
If the fallback language tag based on available localisations would have the same language as the original Bcp47 tag string, use a tag based on the original. For example, if the user locale is 'de-CH', the localisation for plain 'de' will be used automatically anyway, without making the LOK language tag 'de' which would actually end up being stored as 'de-DE' and thus be misleading. We will need to know that it's the 'de-CH' locale we are actually working with when handling Swiss German translations by replacing 'ß' characters in a generic German translation with 'ss'. Do it only when comphelper::LibreOfficeKit::isActive() to avoid modifying behaviour in the "normal" cases. Change-Id: Ib5bdfe07fd53251b42122389cb81782ef87b65c5 Reviewed-on: https://gerrit.libreoffice.org/63446 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'libreofficekit/source')
0 files changed, 0 insertions, 0 deletions