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:
authorMarek Safar <marek.safar@gmail.com>2014-03-10 14:33:44 +0400
committerMarek Safar <marek.safar@gmail.com>2014-03-10 14:33:44 +0400
commit6b959efb22cd53c6bab66c4600c81e62fdf15d10 (patch)
treea1ccaf7389d9ec6958377633107caefad735452b /tools
parent81573de69dc83dd878cbc956f2847903d2610c03 (diff)
[corlib] Update en-au pm/am designators
Diffstat (limited to 'tools')
-rw-r--r--tools/locale-builder/Driver.cs23
1 files changed, 18 insertions, 5 deletions
diff --git a/tools/locale-builder/Driver.cs b/tools/locale-builder/Driver.cs
index 8162cc6d99a..4b8ae34994a 100644
--- a/tools/locale-builder/Driver.cs
+++ b/tools/locale-builder/Driver.cs
@@ -1073,17 +1073,30 @@ namespace Mono.Tools.LocaleBuilder
// Apply global rule first <alias source="locale" path="../dayPeriodWidth[@type='wide']"/>
el = node.SelectSingleNode ("dayPeriods/dayPeriodContext/dayPeriodWidth[@type='wide']/dayPeriod[@type='am']");
- if (el != null)
- df.AMDesignator = el.InnerText;
+ switch (ci.Name) {
+ case "en-AU":
+ df.AMDesignator = "AM";
+ break;
+ default:
+ if (el != null)
+ df.AMDesignator = el.InnerText;
+ break;
+ }
el = node.SelectSingleNode ("dayPeriods/dayPeriodContext/dayPeriodWidth[@type='abbreviated']/dayPeriod[@type='pm']");
if (el == null)
// Apply global rule first <alias source="locale" path="../dayPeriodWidth[@type='wide']"/>
el = node.SelectSingleNode ("dayPeriods/dayPeriodContext/dayPeriodWidth[@type='wide']/dayPeriod[@type='pm']");
- // No data
- if (el != null)
- df.PMDesignator = el.InnerText;
+ switch (ci.Name) {
+ case "en-AU":
+ df.PMDesignator = "PM";
+ break;
+ default:
+ if (el != null)
+ df.PMDesignator = el.InnerText;
+ break;
+ }
}
var ni = ci.NumberFormatEntry;