Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 May 2016 21:25:25 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300913 - head/tools/tools/locale/tools
Message-ID:  <201605282125.u4SLPP3J001285@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat May 28 21:25:24 2016
New Revision: 300913
URL: https://svnweb.freebsd.org/changeset/base/300913

Log:
  Add a hack to readd the day of weeks in default date formats

Modified:
  head/tools/tools/locale/tools/cldr2def.pl

Modified: head/tools/tools/locale/tools/cldr2def.pl
==============================================================================
--- head/tools/tools/locale/tools/cldr2def.pl	Sat May 28 19:39:15 2016	(r300912)
+++ head/tools/tools/locale/tools/cldr2def.pl	Sat May 28 21:25:24 2016	(r300913)
@@ -196,19 +196,23 @@ if ($TYPE eq "timedef") {
 }
 
 sub callback_cformat {
- 	my $s = shift;
- 	$s =~ s/ %Z//;
- 	$s =~ s/ %z//;
- 	return $s;
+	my $s = shift;
+	$s =~ s/ %Z//;
+	$s =~ s/ %z//;
+	$s =~ s/^"(%B %e, )/"%a, $1/;
+	$s =~ s/^"(%e %B )/"%a $1/;
+	return $s;
 };
 
 sub callback_dtformat {
- 	my $s = shift;
+	my $s = shift;
 	my $nl = $callback{data}{l} . "_" . $callback{data}{c};
 
 	if ($nl eq 'ja_JP') {
-	    $s =~ s/(> )(%H)/$1%A $2/;
+		$s =~ s/(> )(%H)/$1%A $2/;
 	}
+	$s =~ s/^"(%B %e, )/"%a, $1/;
+	$s =~ s/^"(%e %B )/"%a $1/;
 	return $s;
 };
 



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