Skip to content

Commit

Permalink
Make sure plurals keys are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
kasimi committed Oct 10, 2019
1 parent f332cd3 commit f15dd7c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/testFiles/language/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
$lang = array_merge($lang, array(
'A' => 'First language string',
'B' => 'Second language string',
'C' => [
1 => 'Singular',
2 => 'Plural',
],
));
7 changes: 6 additions & 1 deletion tests/testFiles/language/en_complete/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
'B' => 'Second language string',
);

$lang = array_merge($lang, $b);
$lang = array_merge($lang, $b, [
'C' => [
// Missing plural should not generate an error
1 => 'Singular',
],
]);
4 changes: 4 additions & 0 deletions tests/testFiles/language/en_incomplete/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@

$lang = array_merge($lang, array(
'A' => 'First language string',
'C' => [
1 => 'Singular',
2 => 'Plural',
],
));

0 comments on commit f15dd7c

Please sign in to comment.