[Libreoffice-commits] core.git: oox/source
Eike Rathke
erack at redhat.com
Thu Jul 4 10:28:53 PDT 2013
oox/source/core/xmlfilterbase.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 74827231e8f60e94cb29c959bbd27d44c77c6a2b
Author: Eike Rathke <erack at redhat.com>
Date: Thu Jul 4 19:27:56 2013 +0200
write bcp47
Change-Id: I682b35f0793f5fc61daa255bb68a60e164133d97
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index c9c7892..21d81b4 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -506,8 +506,9 @@ writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, Sequence< OUString > aIte
static void
writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const LanguageTag& rLanguageTag )
{
- // TODO: what to do with .Country and .Variant
- writeElement( pDoc, nXmlElement, rLanguageTag.getLanguage() );
+ // OOXML ISO 29500 22.9.2.6 ST_Lang (Language Reference) says this is a
+ // BCP 47 language tag.
+ writeElement( pDoc, nXmlElement, rLanguageTag.getBcp47() );
}
static void
More information about the Libreoffice-commits
mailing list