Kaydet (Commit) a0ab8e38 authored tarafından Eike Rathke's avatar Eike Rathke

write bcp47 for dc:language

Change-Id: I859eaaba3c852127422bd0d0e0db0f9bd62e0d55
üst f758c53e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment