include/svtools/langtab.hxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit d019d044baa9ee798f8f9977ab5f89513dce5d23 Author: Eike Rathke <er...@redhat.com> AuthorDate: Fri Jul 16 14:15:35 2021 +0200 Commit: Eike Rathke <er...@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 <er...@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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits