summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-19 22:11:15 +0200
committerEike Rathke <erack@redhat.com>2017-05-22 11:00:56 +0200
commit27caf863d4dc06dd8cc09f5e4836d40f59ee9faf (patch)
tree5cf61eef642362e7226c2a27f468dc1c980b4882 /i18npool
parentb086633566cbcc5e73add5d195ce0ab207ea8f7c (diff)
Mention validation with xmllint
Change-Id: I03af05e51084a438109c2e200faa8d5e5b4f2c74
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/data/locale.dtd14
1 files changed, 11 insertions, 3 deletions
diff --git a/i18npool/source/localedata/data/locale.dtd b/i18npool/source/localedata/data/locale.dtd
index 2898ee4bb04e..377df12b9bb8 100644
--- a/i18npool/source/localedata/data/locale.dtd
+++ b/i18npool/source/localedata/data/locale.dtd
@@ -26,15 +26,23 @@
ATTENTION! PLEASE! HEADS UP! IMPORTANT!
===========================================================================
- Please validate your locale data contribution using a validating parser. A
- validating parser, for example, may be found at
+ Please validate your locale data contribution.
+
+ A quick validation check can be done if you have xmllint installed and the
+ current locale.dtd file at hand, you can download the locale.dtd file from
+ https://cgit.freedesktop.org/libreoffice/core/plain/i18npool/source/localedata/data/locale.dtd
+
+ xmllint --dtdvalid locale.dtd --noout your_data.xml
+
+
+ Second, using a validating parser. A validating parser, for example, may be found at
http://unicode.org/cldr/data/tools/java/org/unicode/cldr/util/XMLValidator.java
Compile it into a class-jar and call it in the
i18npool/source/localedata/data/ directory:
java -cp <your_path>/XMLValidator.jar org.unicode.cldr.util.XMLValidator your_data.xml
- A second possibility is:
+ A third possibility is:
- temporarily (!) change the DOCTYPE of your file to read (all on one line)
<!DOCTYPE Locale SYSTEM "http://cgit.freedesktop.org/libreoffice/core/plain/i18npool/source/localedata/data/locale.dtd">