From 395f580fd7e9fd49ba850198da0c333bc6d28d3b Mon Sep 17 00:00:00 2001 From: Miha Vrhovnik Date: Sat, 8 Oct 2011 16:41:17 +0200 Subject: [PATCH] Rebuild resource files with genrb from ICU 4.2. as ICU 4.4 by default builds them in newer format. Also added all files necessary to build resources.dat with pkgdat because syntax for command is so cryptic --- .../Loader/ResourceBundleLoaderTest.php | 4 ++++ .../fixtures/resourcebundle/dat/en.res | Bin 0 -> 120 bytes .../fixtures/resourcebundle/dat/fr.res | Bin 0 -> 124 bytes .../fixtures/resourcebundle/dat/packagelist.txt | 2 ++ .../fixtures/resourcebundle/dat/resources.dat | Bin 352 -> 352 bytes .../fixtures/resourcebundle/res/en.res | Bin 84 -> 84 bytes 6 files changed, 6 insertions(+) create mode 100644 tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res create mode 100644 tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res create mode 100644 tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt diff --git a/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php b/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php index ea1f67fb73af..78f371c0dcb2 100644 --- a/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php +++ b/tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php @@ -19,6 +19,7 @@ class ResourceBundleFileLoaderTest extends LocalizedTestCase { public function testLoad() { + // resource is build using genrb command $loader = new ResourceBundleLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/res'; $catalogue = $loader->load($resource, 'en', 'domain1'); @@ -30,6 +31,9 @@ public function testLoad() public function testDatEnglishLoad() { + // bundled resource is build using pkgdata command which at leas in ICU 4.2 comes in extremely! buggy form + // you must specify an temporary build directory which is not the same as current directory and + // MUST reside on the same partition. pkgdata -p resources -T /srv -d . packagelist.txt $loader = new ResourceBundleLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'en', 'domain1'); diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/en.res new file mode 100644 index 0000000000000000000000000000000000000000..1fc1436d6641b7290ad5d9f4d331111e4a0419dd GIT binary patch literal 120 zcmY#jxTP+_00K-5L8-+~j7$s+j4WUQFaeZPU<0x^fmjTR8No6P48@hXY594T3_?JD sFheCnE<+kaK0_XmrNCeW#F-4mKr)@7h#{3Bk)Z^rYSk)61{ttf0N1AuGXMYp literal 0 HcmV?d00001 diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/fr.res new file mode 100644 index 0000000000000000000000000000000000000000..f58416094be89f5fb64f78f6c3b873c6458696d0 GIT binary patch literal 124 zcmY#jxTP+_00K-5L8-+~j7$s+j4WUQFd@popuh%XaRRY86f=Tl7#NBxbJOzkDj7if wgBdCrav9PX@)`1gECmK5AWmf{W+(yD=?pJ{qL~bd3^_oRt5z{G$biiQ03-qri2wiq literal 0 HcmV?d00001 diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt new file mode 100644 index 000000000000..c5783ed4315a --- /dev/null +++ b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/packagelist.txt @@ -0,0 +1,2 @@ +en.res +fr.res diff --git a/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat b/tests/Symfony/Tests/Component/Translation/fixtures/resourcebundle/dat/resources.dat index b8b5b2bc5e1e988ae940ad3df98e145f1de2e154..563b0eaef2e5a0a6e9623bf7b93b44beb0a7dc27 100644 GIT binary patch delta 170 zcmaFB^nhtXfhi*s0|O%q100AjFetDAd7MBj2E~j}+2YFFwEVnE2BC?|HN#h}Vq}m3 rD_aEx3JkZ@f!cw9i6JPp*a_WeQ6!_qfvP|l-Dr`?>WsR4sAdBINM9Oy literal 352 zcmah@K?=e!5S&y&@GN@GMZ78W1)@Gc^aUcR6l?-XJ>*M$h41hO{=(T9- z-Ny;_l$`gJ3^BI_d>?DRn Nh9V%%$RGn&2LK231)%@{ literal 84 zcmY#jxTP+_00K-5L8-+~Oh6VR3s?Y5ure?Numf3~K+Frpj9?iEKP^8W$V*~KWGDjC Jj0_4u3;+p01=9ck