summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-09 15:48:10 +0200
committerEike Rathke <erack@redhat.com>2013-07-09 15:52:21 +0200
commit4935422b410757bb4920b98a2d81da3c11b8e3d7 (patch)
tree8c6c5e217e76f77313b864ee1cd6b29b499eadb8 /sc/source/filter/xml/XMLExportDatabaseRanges.cxx
parentcc7a301dad831f8113cc3d737e2f4d23061a65ac (diff)
read/write ODF *:script* and *:rfc-language-tag*
This prepares to be able to read/write the attributes, it does not enable proper handling of unknown language tags yet. An unknown tag usually falls back to SYSTEM locale. Change-Id: I4a78e8fd37deae188c69570157bc4589a712bc7a
Diffstat (limited to 'sc/source/filter/xml/XMLExportDatabaseRanges.cxx')
-rw-r--r--sc/source/filter/xml/XMLExportDatabaseRanges.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
index 29b8ea6b1810..4fa8b2ad491d 100644
--- a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
+++ b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
@@ -325,10 +325,7 @@ private:
if (aParam.bCaseSens)
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_CASE_SENSITIVE, XML_TRUE);
- if (!aParam.aCollatorLocale.Language.isEmpty())
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_LANGUAGE, aParam.aCollatorLocale.Language);
- if (!aParam.aCollatorLocale.Country.isEmpty())
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_COUNTRY, aParam.aCollatorLocale.Country);
+ mrExport.AddLanguageTagAttributes( XML_NAMESPACE_TABLE, XML_NAMESPACE_TABLE, aParam.aCollatorLocale, false);
if (!aParam.aCollatorAlgorithm.isEmpty())
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_ALGORITHM, aParam.aCollatorAlgorithm);