Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2007-11-03 21:48:31 +0300
committerAtsushi Eno <atsushieno@gmail.com>2007-11-03 21:48:31 +0300
commit17e50850d5a6a8fc8e4c2f22dbf3e9b025e74258 (patch)
tree1b6f095cffda22dbe4b66fb4e1dd9b302212a548 /tools
parent7b3e73cc6ca510ccadfe059729b2b204db92f283 (diff)
2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
* DateTimeFormatEntry.cs, Driver.cs : adjust the count of MonthNames and AbbreviatedMonthNames entries to 13. Fixed bug #332553. svn path=/trunk/mono/; revision=88795
Diffstat (limited to 'tools')
-rw-r--r--tools/locale-builder/ChangeLog6
-rw-r--r--tools/locale-builder/DateTimeFormatEntry.cs1
-rw-r--r--tools/locale-builder/Driver.cs4
3 files changed, 10 insertions, 1 deletions
diff --git a/tools/locale-builder/ChangeLog b/tools/locale-builder/ChangeLog
index 9a5baf19858..2d7813cfadf 100644
--- a/tools/locale-builder/ChangeLog
+++ b/tools/locale-builder/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DateTimeFormatEntry.cs, Driver.cs : adjust the count of
+ MonthNames and AbbreviatedMonthNames entries to 13.
+ Fixed bug #332553.
+
2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs, DateTimeFormatEntry.cs : since FullDateTimePattern
diff --git a/tools/locale-builder/DateTimeFormatEntry.cs b/tools/locale-builder/DateTimeFormatEntry.cs
index 1e395d284c9..0c8fbca3481 100644
--- a/tools/locale-builder/DateTimeFormatEntry.cs
+++ b/tools/locale-builder/DateTimeFormatEntry.cs
@@ -69,7 +69,6 @@ namespace Mono.Tools.LocaleBuilder {
AppendNames (builder, MonthNames);
builder.Append (", ");
- AbbreviatedMonthNames.Add (String.Empty); /* ALLWAYS ?? */
AppendNames (builder, AbbreviatedMonthNames);
builder.Append (", ");
diff --git a/tools/locale-builder/Driver.cs b/tools/locale-builder/Driver.cs
index e862393539d..52586043f24 100644
--- a/tools/locale-builder/Driver.cs
+++ b/tools/locale-builder/Driver.cs
@@ -523,6 +523,8 @@ namespace Mono.Tools.LocaleBuilder {
df.MonthNames.Clear ();
df.MonthNames.Add (ni2.Current.Value);
}
+ if (df.MonthNames.Count == 12)
+ df.MonthNames.Add (String.Empty);
ni2 = (XPathNodeIterator) ni.Current.Evaluate ("dayNames/day");
while (ni2.MoveNext ()) {
@@ -544,6 +546,8 @@ namespace Mono.Tools.LocaleBuilder {
df.AbbreviatedMonthNames.Clear ();
df.AbbreviatedMonthNames.Add (ni2.Current.Value);
}
+ if (df.AbbreviatedMonthNames.Count == 12)
+ df.AbbreviatedMonthNames.Add (String.Empty);
ni2 = (XPathNodeIterator) ni.Current.Evaluate ("dateFormats/dateFormatLength");
while (ni2.MoveNext ()) {