summaryrefslogtreecommitdiff
path: root/include/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-10 19:42:01 +0200
committerEike Rathke <erack@redhat.com>2013-09-10 23:04:36 +0200
commitc9489f68e8d805376cfbfb67b84ccbc250788773 (patch)
tree9c656ceccc6b9eb323723e0628810445f065557d /include/i18nlangtag
parent36a619e7e5303294c6d1dffd75e6cee5ee668d0f (diff)
added overrides for fallbacks of legacy codes
Change-Id: I62be84904b3f0f4beeda35e78906604090eefa86
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r--include/i18nlangtag/mslangid.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/i18nlangtag/mslangid.hxx b/include/i18nlangtag/mslangid.hxx
index 6be7e66eed40..95adb9118ba6 100644
--- a/include/i18nlangtag/mslangid.hxx
+++ b/include/i18nlangtag/mslangid.hxx
@@ -27,6 +27,8 @@
#include <com/sun/star/lang/Locale.hpp>
#include <vector>
+struct IsoLanguageCountryEntry;
+
/** Methods related to Microsoft language IDs. For details about MS-LANGIDs
please see lang.h */
class I18NLANGTAG_DLLPUBLIC MsLangId
@@ -230,6 +232,11 @@ public:
const OString& rLang, const OString& rCountry );
+ /** Used by lookupFallbackLocale(Locale) */
+ I18NLANGTAG_DLLPRIVATE static com::sun::star::lang::Locale getLocale(
+ const IsoLanguageCountryEntry * pEntry );
+
+
/** Convert a LanguageType to a Locale.
@param bResolveSystem
@@ -240,7 +247,8 @@ public:
I18NLANGTAG_DLLPRIVATE static ::com::sun::star::lang::Locale convertLanguageToLocale(
LanguageType nLang, bool bResolveSystem );
- /** Used by convertLanguageToLocale(LanguageType,bool)
+ /** Used by convertLanguageToLocale(LanguageType,bool) and
+ getLocale(IsoLanguageCountryEntry*)
@return rLocale set to mapped values, unchanged if no mapping was
found. E.g. pass empty Locale to obtain empty SYSTEM locale