diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-04 19:27:56 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-04 19:28:22 +0200 |
commit | 74827231e8f60e94cb29c959bbd27d44c77c6a2b (patch) | |
tree | e1bc3ca21df20df9eff71e68955ab7b8902da049 | |
parent | 29a9160de3acc496cf71dc3eb0d7a54df614a501 (diff) |
write bcp47
Change-Id: I682b35f0793f5fc61daa255bb68a60e164133d97
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index c9c7892dbf9a..21d81b49423b 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 |