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

added DateAcceptancePattern element

üst b7595847
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<MeasurementSystem>metric</MeasurementSystem> <MeasurementSystem>metric</MeasurementSystem>
</LC_CTYPE> </LC_CTYPE>
<LC_FORMAT> <LC_FORMAT>
<DateAcceptancePattern>D.M.</DateAcceptancePattern>
<FormatElement msgid="FixedFormatskey1" default="true" type="medium" usage="FIXED_NUMBER" formatindex="0"> <FormatElement msgid="FixedFormatskey1" default="true" type="medium" usage="FIXED_NUMBER" formatindex="0">
<FormatCode>Standard</FormatCode> <FormatCode>Standard</FormatCode>
</FormatElement> </FormatElement>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<MeasurementSystem>US</MeasurementSystem> <MeasurementSystem>US</MeasurementSystem>
</LC_CTYPE> </LC_CTYPE>
<LC_FORMAT replaceFrom="[CURRENCY]" replaceTo="[$$-409]"> <LC_FORMAT replaceFrom="[CURRENCY]" replaceTo="[$$-409]">
<DateAcceptancePattern>M/D</DateAcceptancePattern>
<FormatElement msgid="FixedFormatskey1" default="true" type="medium" usage="FIXED_NUMBER" formatindex="0"> <FormatElement msgid="FixedFormatskey1" default="true" type="medium" usage="FIXED_NUMBER" formatindex="0">
<FormatCode>General</FormatCode> <FormatCode>General</FormatCode>
</FormatElement> </FormatElement>
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
that otherwise inherit the format codes. that otherwise inherit the format codes.
--> -->
<!ELEMENT LC_FORMAT (FormatElement*) > <!ELEMENT LC_FORMAT (DateAcceptancePattern*, FormatElement*) >
<!-- All FormatElement elements must be given if the RefLocale mechanism is not used! --> <!-- All FormatElement elements must be given if the RefLocale mechanism is not used! -->
<!ATTLIST LC_FORMAT %RefLocale;> <!ATTLIST LC_FORMAT %RefLocale;>
<!ATTLIST LC_FORMAT %replaceFrom;> <!ATTLIST LC_FORMAT %replaceFrom;>
...@@ -145,6 +145,21 @@ ...@@ -145,6 +145,21 @@
to be omitted. LCIDs are defined in i18npool/inc/i18npool/lang.h to be omitted. LCIDs are defined in i18npool/inc/i18npool/lang.h
--> -->
<!ELEMENT DateAcceptancePattern (#PCDATA)>
<!-- Pattern that defines an input sequence match to be accepted as
(abbreviated) date. For example, in en_US locale "M/D" accepts an input of
11/23 as CurrentYear-November-23 whereas 11/23/ would not be a date. In
de_DE locale "D.M." accepts an input of 23.11. as CurrentYear-November-23
whereas 23.11 would not be a date.
For each locale one pattern that matches a full date is automatically
generated from FormatElement formatIndex="21" and does not need to be
defined, for example "M/D/Y" or "D.M.Y", so only if you want abbreviations
to be in effect add some patterns.
NOTE: use only single letter D,M,Y. Multiple patterns can be defined.
-->
<!ELEMENT LC_FORMAT_1 (FormatElement*) > <!ELEMENT LC_FORMAT_1 (FormatElement*) >
<!ATTLIST LC_FORMAT_1 %RefLocale;> <!ATTLIST LC_FORMAT_1 %RefLocale;>
<!ATTLIST LC_FORMAT_1 %replaceFrom;> <!ATTLIST LC_FORMAT_1 %replaceFrom;>
......
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