8000 Rebuild resource files with genrb from ICU 4.2. as ICU 4.4 by default… · hackur/symfony@395f580 · GitHub
[go: up one dir, main page]

Skip to content

Commit 395f580

Browse files
author
Miha Vrhovnik
committed
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
1 parent 438581d commit 395f580

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

tests/Symfony/Tests/Component/Translation/Loader/ResourceBundleLoaderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ResourceBundleFileLoaderTest extends LocalizedTestCase
1919
{
2020
public function testLoad()
2121
{
22+
// resource is build using genrb command
2223
$loader = new ResourceBundleLoader();
2324
$resource = __DIR__.'/../fixtures/resourcebundle/res';
2425
$catalogue = $loader->load($resource, 'en', 'domain1');
@@ -30,6 +31,9 @@ public function testLoad()
3031

3132
public function testDatEnglishLoad()
3233
{
34+
// bundled resource is build using pkgdata command which at leas in ICU 4.2 comes in extremely! buggy form
35+
// you must specify an temporary build directory which is not the same as current directory and
36+
// MUST reside on the same partition. pkgdata -p resources -T /srv -d . packagelist.txt
3337
$loader = new ResourceBundleLoader();
3438
$resource = __DIR__.'/../fixtures/resourcebundle/dat/resources';
3539
$catalogue = $loader->load($resource, 'en', 'domain1');
Binary file not shown.
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
en.res
2+
fr.res
Binary file not shown.

0 commit comments

Comments
 (0)
0