Skip to content

Commit

Permalink
Fixed typos in po test file and fixed test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter0100 committed Apr 14, 2018
1 parent 3d35c7e commit d132220
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/I18n/Parser/PoFileParserTest.php
Expand Up @@ -61,7 +61,7 @@ public function testParse()
$parser = new PoFileParser; $parser = new PoFileParser;
$file = APP . 'Locale' . DS . 'rule_1_po' . DS . 'default.po'; $file = APP . 'Locale' . DS . 'rule_1_po' . DS . 'default.po';
$messages = $parser->parse($file); $messages = $parser->parse($file);
$this->assertCount(5, $messages); $this->assertCount(8, $messages);
$expected = [ $expected = [
'Plural Rule 1' => [ 'Plural Rule 1' => [
'_context' => [ '_context' => [
Expand All @@ -70,7 +70,7 @@ public function testParse()
], ],
'%d = 1' => [ '%d = 1' => [
'_context' => [ '_context' => [
'This is the context' => 'First Context trasnlation', 'This is the context' => 'First Context translation',
'Another Context' => '%d = 1 (translated)' 'Another Context' => '%d = 1 (translated)'
] ]
], ],
Expand Down Expand Up @@ -100,7 +100,7 @@ public function testParse()
], ],
'%d = 2' => [ '%d = 2' => [
'_context' => [ '_context' => [
'This is another translated context' => 'First Context trasnlation', 'This is another translated context' => 'First Context translation',
] ]
], ],
'%-6d = 3' => [ '%-6d = 3' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_app/TestApp/Locale/rule_1_po/default.po
Expand Up @@ -19,7 +19,7 @@ msgctxt ""
"This is the context" "This is the context"
msgid "%d = 1" msgid "%d = 1"
msgstr "" msgstr ""
"First Context trasnlation" "First Context translation"


msgctxt "Another Context" msgctxt "Another Context"
msgid "%d = 1" msgid "%d = 1"
Expand All @@ -37,7 +37,7 @@ msgctxt ""
msgid "" msgid ""
"%d = 2" "%d = 2"
msgstr "" msgstr ""
"First Context trasnlation" "First Context translation"


msgid "%-6d = 3" msgid "%-6d = 3"
msgid_plural "%-6d = 0 or > 1" msgid_plural "%-6d = 0 or > 1"
Expand Down

0 comments on commit d132220

Please sign in to comment.