Skip to content
Permalink
Browse files

Fixed typos in po test file and fixed test failing

  • Loading branch information...
Wouter0100 committed Apr 14, 2018
1 parent 3d35c7e commit d13222046518eeacc3b64b781ba507497a215bb2
@@ -61,7 +61,7 @@ public function testParse()
$parser = new PoFileParser;
$file = APP . 'Locale' . DS . 'rule_1_po' . DS . 'default.po';
$messages = $parser->parse($file);
$this->assertCount(5, $messages);
$this->assertCount(8, $messages);
$expected = [
'Plural Rule 1' => [
'_context' => [
@@ -70,7 +70,7 @@ public function testParse()
],
'%d = 1' => [
'_context' => [
'This is the context' => 'First Context trasnlation',
'This is the context' => 'First Context translation',
'Another Context' => '%d = 1 (translated)'
]
],
@@ -100,7 +100,7 @@ public function testParse()
],
'%d = 2' => [
'_context' => [
'This is another translated context' => 'First Context trasnlation',
'This is another translated context' => 'First Context translation',
]
],
'%-6d = 3' => [
@@ -19,7 +19,7 @@ msgctxt ""
"This is the context"
msgid "%d = 1"
msgstr ""
"First Context trasnlation"
"First Context translation"

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

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

0 comments on commit d132220

Please sign in to comment.
You can’t perform that action at this time.