diff options
author | Eike Rathke <erack@redhat.com> | 2021-07-16 14:15:35 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-07-16 15:06:46 +0200 |
commit | d019d044baa9ee798f8f9977ab5f89513dce5d23 (patch) | |
tree | b325c20b859a78ce1afa2b292e092b11bba595e6 /include | |
parent | 1e2420e7add9ca78e5f4de095dac2cef5c0f5940 (diff) |
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@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/langtab.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 ); |