Author: FabianLange
Date: 2010-03-18 15:31:23 +0100 (Thu, 18 Mar 2010)
New Revision: 28606

Modified:
   tools/i18n-icu2dat/icu-converter.php
Log:
[tools] adjustments for icu 4.4/cldr 1.8

Modified: tools/i18n-icu2dat/icu-converter.php
===================================================================
--- tools/i18n-icu2dat/icu-converter.php        2010-03-18 13:08:37 UTC (rev 
28605)
+++ tools/i18n-icu2dat/icu-converter.php        2010-03-18 14:31:23 UTC (rev 
28606)
@@ -12,22 +12,23 @@
 /**
  * How to use:
  *  - put this file and sfYaml classes in a directory
- *  - use spec version 1.2 for sfYaml to parse 'no' correctly as norwegian 
(not as false) (default for up2dte sfYaml)
  *  - download ICU files in subdirectory called "data"
  *  - preprocess some ICU files.
+ *  - run
  */
 /**
  * Preprocess (take care not to kill utf-8):
  * due to line wrappings in icu files:
  * region/es.txt line 141 HK{"Región Administrativa Especial de Hong Kong de 
la República Popular China"}
- * locales/he.txt line 1788 fix date time patterns
+ * locales/he.txt line 337 fix date time patterns
  * region/it.txt line 140 HK{"Regione Amministrativa Speciale di Hong Kong 
della Repubblica Popolare Cinese"}
- * region/it.txt line 193 MO{"Regione Amministrativa Speciale di Macao della 
Repubblica Popolare Cinese"}
+ * region/it.txt line 198 MO{"Regione Amministrativa Speciale di Macao della 
Repubblica Popolare Cinese"}
  *
  * Note: feel free to supply a patch that eliminates the need of preprocessing
  */
 
-// Include the symfony YAML library (can be obtained from symfony 1.3 +)
+// Include the symfony YAML library (can be obtained from symfony components)
+// http://svn.symfony-project.com/components/yaml/branches/1.0/lib
 include_once('sfYaml.php');
 
 function sanitize($string)
@@ -60,7 +61,7 @@
 } 
 
 // dirty hack to avoid special handling of the metazone input data
-copy('data/misc/metazoneInfo.txt', 'data/locales/metazoneInfo.txt');
+copy('data/misc/metaZones.txt', 'data/locales/metaZones.txt');
 
 // since newer icu releases the data is split n multiple files
 $types = array ("locales", "curr", "zone", "lang", "region");
@@ -194,8 +195,8 @@
   file_put_contents('data/'.$locale.'.dat',serialize($dat_data));
 }
 
-// postprocess the metazoneInfo.dat into root.dat
-$metazoneInfo = unserialize(file_get_contents('data/metazoneInfo.dat'));
+// postprocess the metaZones.dat into root.dat
+$metazoneInfo = unserialize(file_get_contents('data/metaZones.dat'));
 $zones = array();
 foreach ($metazoneInfo['metazoneMappings'] as $key => $value)
 {
@@ -207,4 +208,4 @@
 $rootData = unserialize(file_get_contents('data/root.dat'));
 $rootData['TimeZones'] = $zones;
 file_put_contents('data/root.dat',serialize($rootData));
-unlink('data/metazoneInfo.dat');
\ No newline at end of file
+unlink('data/metaZones.dat');
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to