File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function generateString(Translations $translations): string
4545 $ messages [$ originalString ] = $ translation ;
4646 }
4747
48- ksort ($ messages );
48+ ksort ($ messages, SORT_STRING );
4949 $ numEntries = count ($ messages );
5050 $ originalsTable = '' ;
5151 $ translationsTable = '' ;
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ public function testMoGenerator()
3636 $ translation ->translate ('Comentario deshabilitado ' );
3737 $ translations ->add ($ translation );
3838
39+ $ translation = Translation::create (null , '15 ' );
40+ $ translation ->translate ('15 ' );
41+ $ translations ->add ($ translation );
42+
3943 $ translation = Translation::create (null , '123456 ' );
4044 $ translation ->translate ('12345 ' );
4145 $ translations ->add ($ translation );
@@ -47,7 +51,7 @@ public function testMoGenerator()
4751
4852 $ result = $ loader ->loadString ($ mo );
4953
50- $ this ->assertCount (3 , $ result );
54+ $ this ->assertCount (4 , $ result );
5155 $ this ->assertCount (5 , $ result ->getHeaders ());
5256 }
5357}
You can’t perform that action at this time.
0 commit comments