r92545 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92544‎ | r92545 | r92546 >
Date:17:28, 19 July 2011
Author:kaldari
Status:resolved (Comments)
Tags:
Comment:
updating for new CLDR archive format
Modified paths:
  • /trunk/extensions/cldr/Makefile (modified) (history)
  • /trunk/extensions/cldr/README (modified) (history)
  • /trunk/extensions/cldr/rebuild.php (modified) (history)

Diff [purge]

Index: trunk/extensions/cldr/rebuild.php
@@ -13,7 +13,7 @@
1414 $dir = dirname(__FILE__);
1515 require_once( "$dir/cldr.php" );
1616
17 -$DATA = "$dir/core/common/main";
 17+$DATA = "$dir/common/main";
1818 $OUTPUT = $dir;
1919
2020 if (isset( $options['datadir'] ) ) {
Index: trunk/extensions/cldr/README
@@ -11,8 +11,8 @@
1212 http://www.unicode.org/cldr/repository_access.html
1313
1414 Example:
15 - wget http://www.unicode.org/Public/cldr/1.8.0/core.zip
16 - unzip core.zip -d core
 15+ wget http://www.unicode.org/Public/cldr/2.0.1/common.zip
 16+ unzip common.zip -d core
1717 php rebuild.php
1818
1919 == Usage ==
Index: trunk/extensions/cldr/Makefile
@@ -1,6 +1,6 @@
22 .PHONY: help all clean
33
4 -CORE=http://www.unicode.org/Public/cldr/1.8.0/core.zip
 4+COMMON=http://www.unicode.org/Public/cldr/2.0.1/common.zip
55
66 help:
77 @echo "'make all' to download CLDR data and rebuild files."
@@ -12,15 +12,17 @@
1313 distclean:
1414 rm -f core.zip
1515 rm -rf core
 16+ rm -f common.zip
 17+ rm -rf common
1618
1719 clean:
1820 rm -f LanguageNames[A-Z]*.php
1921
20 -LanguageNames.php: core/
 22+LanguageNames.php: common/
2123 php rebuild.php
2224
23 -core/: core.zip
24 - unzip core.zip -d core
 25+common/: common.zip
 26+ unzip common.zip -d common
2527
26 -core.zip:
27 - curl -C - -O $(CORE) || wget $(CORE) || fetch $(CORE)
 28+common.zip:
 29+ curl -C - -O $(COMMON) || wget $(COMMON) || fetch $(COMMON)

Follow-up revisions

RevisionCommit summaryAuthorDate
r92615Partial revert of r92545, apparently it was just mistake in CLDR's side...nikerabbit09:55, 20 July 2011

Comments

#Comment by Nikerabbit (talk | contribs)   05:34, 20 July 2011

What is this common.zip? I don't see it on http://www.unicode.org/Public/cldr/2.0.1/

#Comment by P858snake (talk | contribs)   05:38, 20 July 2011

I think that might be a mistake, since it used to refer to Core, and that is still there.

#Comment by Kaldari (talk | contribs)   06:02, 20 July 2011

I swear they changed it. Earlier today there was no core.zip in that directory and instead there was common.zip. I guess they changed it back today. Those bastards! :)

Status & tagging log