[Libreoffice-commits] core.git: include/svtools
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 16 13:07:21 UTC 2021
include/svtools/langtab.hxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit d019d044baa9ee798f8f9977ab5f89513dce5d23
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Fri Jul 16 14:15:35 2021 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Fri Jul 16 15:06:46 2021 +0200
Clarify that SvtLanguageTable::GetLanguageType() expects the UI name
Apparently several places get that wrong and pass a
lang::Locale.Language instead.. to be investigated.
Change-Id: I7f20ae2b66de6527b70f9936ef8216ddc5dac835
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119062
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins
diff --git a/include/svtools/langtab.hxx b/include/svtools/langtab.hxx
index 61e2f0815022..2d71901c17f3 100644
--- a/include/svtools/langtab.hxx
+++ b/include/svtools/langtab.hxx
@@ -29,7 +29,13 @@ class SVT_DLLPUBLIC SvtLanguageTable
public:
static bool HasLanguageType( const LanguageType eType );
+ /** Obtain the UI name for a LanguageType of a language/locale (string
+ resource STR_ARR_SVT_LANGUAGE_TABLE).
+ */
static OUString GetLanguageString( const LanguageType eType );
+ /** Obtain the LanguageType for a UI name of a language/locale (string
+ resource STR_ARR_SVT_LANGUAGE_TABLE).
+ */
static LanguageType GetLanguageType( std::u16string_view rStr );
static sal_uInt32 GetLanguageEntryCount();
static LanguageType GetLanguageTypeAtIndex( sal_uInt32 nIndex );
More information about the Libreoffice-commits
mailing list