diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-05-26 15:53:06 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-05-26 15:53:06 +0400 |
commit | 2bbfe589c83b52c15fc5b12cf13dea7f9e400747 (patch) | |
tree | a303ae48f9a3932920bfdded771c388abd1df65c /tools | |
parent | b12832127c04bf85bd2521be8546b5922bb86fe1 (diff) |
2004-05-26 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs : for af_ZA locale, am/pm part got required to support
"empty" string. So check am/pm elements and overwrite AMDesigner/
PMDesigner value even if they consist of empty string.
* (moved logs for supp/ content to supp/)
svn path=/trunk/mono/; revision=28149
Diffstat (limited to 'tools')
-rw-r--r-- | tools/locale-builder/ChangeLog | 7 | ||||
-rw-r--r-- | tools/locale-builder/Driver.cs | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/tools/locale-builder/ChangeLog b/tools/locale-builder/ChangeLog index 25ca1e1fe0e..ccedab862b7 100644 --- a/tools/locale-builder/ChangeLog +++ b/tools/locale-builder/ChangeLog @@ -1,7 +1,10 @@ 2004-05-26 Atsushi Enomoto <atsushi@ximian.com> - * supp/pl.xml, - supp/ja.xml : Added overriding formats. pl.xml fixes bug #58186. + * Driver.cs : for af_ZA locale, am/pm part got required to support + "empty" string. So check am/pm elements and overwrite AMDesigner/ + PMDesigner value even if they consist of empty string. + + * (moved logs for supp/ content to supp/) 2004-05-25 Jackson Harper <jackson@ximian.com> diff --git a/tools/locale-builder/Driver.cs b/tools/locale-builder/Driver.cs index 6e272299642..9e1ad27bcb5 100644 --- a/tools/locale-builder/Driver.cs +++ b/tools/locale-builder/Driver.cs @@ -446,6 +446,13 @@ namespace Mono.Tools.LocaleBuilder { df.FullDateTimePattern = String.Format (ni2.Current.ToString (), df.LongTimePattern, df.LongDatePattern); + XPathNodeIterator am = ni.Current.SelectChildren ("am", ""); + if (am.MoveNext ()) + df.AMDesignator = am.Current.Value; + XPathNodeIterator pm = ni.Current.SelectChildren ("pm", ""); + if (pm.MoveNext ()) + df.PMDesignator = pm.Current.Value; +/* string am = (string) ni.Current.Evaluate ("string(am)"); string pm = (string) ni.Current.Evaluate ("string(pm)"); @@ -453,6 +460,7 @@ namespace Mono.Tools.LocaleBuilder { df.AMDesignator = am; if (pm != String.Empty) df.PMDesignator = pm; +*/ } string date_sep = (string) nav.Evaluate ("string(ldml/dates/symbols/dateSeparator)"); |