aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2016-07-27 18:12:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2016-07-27 18:12:36 +0000
commit7f82e3b699d2848939beb238f71a7f0221c1b909 (patch)
tree3474848e2606209902160cebf6bd941aa08544fa /tools
parent0fe768778de5a54003941ad7501fc7c12a829ea8 (diff)
downloadsrc-7f82e3b699d2848939beb238f71a7f0221c1b909.tar.gz
src-7f82e3b699d2848939beb238f71a7f0221c1b909.zip
Add a hack to add weekday to date format for ko_KR locale.
Notes
Notes: svn path=/head/; revision=303404
Diffstat (limited to 'tools')
-rwxr-xr-xtools/tools/locale/tools/cldr2def.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/tools/locale/tools/cldr2def.pl b/tools/tools/locale/tools/cldr2def.pl
index df4648bd6de7..4c44f3d84373 100755
--- a/tools/tools/locale/tools/cldr2def.pl
+++ b/tools/tools/locale/tools/cldr2def.pl
@@ -217,6 +217,9 @@ sub callback_cformat {
my $s = shift;
my $nl = $callback{data}{l} . "_" . $callback{data}{c};
+ if ($nl eq 'ko_KR') {
+ $s =~ s/(> )(%p)/$1%A $2/;
+ }
$s =~ s/\.,/\./;
$s =~ s/ %Z//;
$s =~ s/ %z//;
@@ -240,7 +243,7 @@ sub callback_dtformat {
if ($nl eq 'ja_JP') {
$s =~ s/(> )(%H)/$1%A $2/;
- } elsif ($nl eq 'zh_TW') {
+ } elsif ($nl eq 'ko_KR' || $nl eq 'zh_TW') {
$s =~ s/(> )(%p)/$1%A $2/;
}
$s =~ s/\.,/\./;