svn commit: r303372 - in head/tools/tools/locale: . tools
Kevin Lo
kevlo at FreeBSD.org
Wed Jul 27 08:08:47 UTC 2016
Author: kevlo
Date: Wed Jul 27 08:08:46 2016
New Revision: 303372
URL: https://svnweb.freebsd.org/changeset/base/303372
Log:
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
Modified:
head/tools/tools/locale/README
head/tools/tools/locale/tools/cldr2def.pl
Modified: head/tools/tools/locale/README
==============================================================================
--- head/tools/tools/locale/README Wed Jul 27 07:51:58 2016 (r303371)
+++ head/tools/tools/locale/README Wed Jul 27 08:08:46 2016 (r303372)
@@ -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
Modified: head/tools/tools/locale/tools/cldr2def.pl
==============================================================================
--- head/tools/tools/locale/tools/cldr2def.pl Wed Jul 27 07:51:58 2016 (r303371)
+++ head/tools/tools/locale/tools/cldr2def.pl Wed Jul 27 08:08:46 2016 (r303372)
@@ -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/;
More information about the svn-src-all
mailing list