Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2016 08:08:46 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303372 - in head/tools/tools/locale: . tools
Message-ID:  <201607270808.u6R88kqm007355@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607270808.u6R88kqm007355>