summaryrefslogtreecommitdiff
path: root/include/i18nlangtag/languagetag.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-09 12:24:45 +0200
committerEike Rathke <erack@redhat.com>2013-07-09 12:27:09 +0200
commita72ca75e33c351b00801869aec570a277aaa646a (patch)
treef28938d5d4306d79f511a4eaf13d93ac2687bd0d /include/i18nlangtag/languagetag.hxx
parent4cf80bd8b2a61d154172fa602aeb0fecbe7a2f67 (diff)
publish the "qlt" reserved code in header file
Change-Id: Idb0bfa61655aa2f2d4b73661bce8166121727922
Diffstat (limited to 'include/i18nlangtag/languagetag.hxx')
-rw-r--r--include/i18nlangtag/languagetag.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index 1a9f4996d532..7fa9b966c5d7 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -21,6 +21,20 @@
typedef struct _rtl_Locale rtl_Locale; // as in rtl/locale.h
+/** The ISO 639-2 code reserved for local use used to indicate that a
+ com::sun::star::Locale contains a BCP 47 string in its Variant field. The
+ Locale's Language field then will contain this language code.
+
+ @see LanguageTag::getLocale()
+
+ Avoid use, only needed internally or if conversion from Locale to
+ LanguageTag is not wanted, i.e. during ODF import. To check whether a
+ LanguageTag contains a plain language/country combination or a more
+ detailed BCP 47 language tag use LanguageTag::isIsoLocale() instead.
+ */
+#define I18NLANGTAG_QLT "qlt"
+
+
/** Wrapper for liblangtag BCP 47 language tags, MS-LangIDs, locales and
conversions in between.