diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-25 20:39:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-26 21:41:23 +0100 |
commit | c575569f203c9dd5746ad227d636afb8df953ba1 (patch) | |
tree | eddad637b31197b0ccbea04fa073dcf9276c86d9 /svtools/source/misc | |
parent | f91b7c2ec4fa6b94a05ffeaada2f9b294b6aad94 (diff) |
rhbz#1891326 suggest package install of the most appropiate pt langpack
Change-Id: I87ff1a941a3a5dc0c321440a9c286ae73c9d0384
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104783
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/langhelp.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx index e64a3b869076..acaf2c6e24f3 100644 --- a/svtools/source/misc/langhelp.cxx +++ b/svtools/source/misc/langhelp.cxx @@ -139,6 +139,8 @@ OUString getInstalledLocaleForSystemUILanguage(const css::uno::Sequence<OUString aPackages.emplace_back("libreoffice-langpack-zh-Hans"); else if (MsLangId::isTraditionalChinese(eType)) aPackages.emplace_back("libreoffice-langpack-zh-Hant"); + else if (install == "pt") + aPackages.emplace_back("libreoffice-langpack-pt-PT"); else aPackages.emplace_back("libreoffice-langpack-" + install); } |