File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function generateString(Translations $translations): string
45
45
$ messages [$ originalString ] = $ translation ;
46
46
}
47
47
48
- ksort ($ messages );
48
+ ksort ($ messages, SORT_STRING );
49
49
$ numEntries = count ($ messages );
50
50
$ originalsTable = '' ;
51
51
$ translationsTable = '' ;
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ public function testMoGenerator()
36
36
$ translation ->translate ('Comentario deshabilitado ' );
37
37
$ translations ->add ($ translation );
38
38
39
+ $ translation = Translation::create (null , '15 ' );
40
+ $ translation ->translate ('15 ' );
41
+ $ translations ->add ($ translation );
42
+
39
43
$ translation = Translation::create (null , '123456 ' );
40
44
$ translation ->translate ('12345 ' );
41
45
$ translations ->add ($ translation );
@@ -47,7 +51,7 @@ public function testMoGenerator()
47
51
48
52
$ result = $ loader ->loadString ($ mo );
49
53
50
- $ this ->assertCount (3 , $ result );
54
+ $ this ->assertCount (4 , $ result );
51
55
$ this ->assertCount (5 , $ result ->getHeaders ());
52
56
}
53
57
}
You can’t perform that action at this time.
0 commit comments