Fix cldr2def.pl script to add weekday to the date format of zh_TW locales.
While here, mention dependency on textproc/p5-XML-Parser in README. Reviewed by: bapt
This commit is contained in:
parent
b5ddb4093a
commit
4d6d0d24b3
@ -2,7 +2,8 @@
|
||||
|
||||
To generate the locales:
|
||||
|
||||
Tools needed: java, perl, devel/p5-Tie-IxHash and converters/p5-Text-Iconv
|
||||
Tools needed: java, perl, devel/p5-Tie-IxHash, converters/p5-Text-Iconv and
|
||||
textproc/p5-XML-Parser
|
||||
|
||||
fetch cldr data from: http://cldr.unicode.org
|
||||
extract in a directory ~/unicode/cldr/v27.0.1 for example
|
||||
|
@ -240,6 +240,8 @@ sub callback_dtformat {
|
||||
|
||||
if ($nl eq 'ja_JP') {
|
||||
$s =~ s/(> )(%H)/$1%A $2/;
|
||||
} elsif ($nl eq 'zh_TW') {
|
||||
$s =~ s/(> )(%p)/$1%A $2/;
|
||||
}
|
||||
$s =~ s/\.,/\./;
|
||||
$s =~ s/^"%e\./%A %e/;
|
||||
|
Loading…
Reference in New Issue
Block a user