diff options
author | Eike Rathke <erack@redhat.com> | 2013-07-11 18:44:25 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-07-11 19:15:51 +0200 |
commit | a0ab8e389cca3db9fef0547925cdcc6d71e9b43d (patch) | |
tree | 6aeb98c9671d9accaf5d9646f5b1d69c1d3dd830 /oox | |
parent | f758c53e87a2e29ccd4d8e11f1426e1d805b2032 (diff) |
write bcp47 for dc:language
Change-Id: I859eaaba3c852127422bd0d0e0db0f9bd62e0d55
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index c9c7892dbf9a..97b6dc2e54c6 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -506,8 +506,11 @@ 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() ); + // dc:language, Dublin Core recommends "such as RFC 4646", which is BCP 47 + // and obsoleted by RFC 5646, see + // http://dublincore.org/documents/dcmi-terms/#terms-language + // http://dublincore.org/documents/dcmi-terms/#elements-language + writeElement( pDoc, nXmlElement, rLanguageTag.getBcp47() ); } static void |