Skip to content

Commit e93f743

Browse files
committed
fixed Jed generator #90
1 parent 6597645 commit e93f743

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/Generators/PhpArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function toString(Translations $translations)
2525
*/
2626
public static function toArray(Translations $translations)
2727
{
28-
$array = self::buildArray($translations);
28+
$array = static::buildArray($translations);
2929

3030
$domain = $translations->getDomain() ?: 'messages';
3131
$lang = $translations->getLanguage() ?: 'en';

tests/files/jed.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,36 @@
66
"plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"
77
},
88
"Ensure this value has at least %(limit_value)d character (it has %sd).":[
9-
"Ensure this value has at least %(limit_value)d characters (it has %sd).",
109
""
1110
],
1211
"Ensure this value has at most %(limit_value)d character (it has %sd).":[
13-
"Ensure this value has at most %(limit_value)d characters (it has %sd).",
1412
""
1513
],
1614
"%ss must be unique for %ss %ss.":[
17-
"",
1815
"%ss mora da bude jedinstven za %ss %ss."
1916
],
2017
"and":[
21-
"",
2218
"i"
2319
],
2420
"Value %sr is not a valid choice.":[
25-
"",
2621
""
2722
],
2823
"This field cannot be null.":[
29-
"",
3024
"Ovo polje ne mo\u017ee ostati prazno."
3125
],
3226
"This field cannot be blank.":[
33-
"",
3427
"Ovo polje ne mo\u017ee biti prazno."
3528
],
3629
"Field of type: %ss":[
37-
"",
3830
"Polje tipa: %ss"
3931
],
4032
"Integer":[
41-
"",
4233
"Cijeo broj"
4334
],
4435
"{test1}":[
45-
"",
4636
"test1\n<div>\n test2\n<\/div>\ntest3"
4737
],
4838
"{test2}":[
49-
"",
5039
"test1\n<div>\n test2\n<\/div>\ntest3"
5140
]
5241
}

0 commit comments

Comments
 (0)