'Text', 'Level1.OtherEntityName' => 'Other Text', 'Level1.Plurals' => [ 'context' => 'Some ignored context', 'one' => 'An item', 'other' => '{count} items', ], 'Level1.PluralString1' => 'An item|{count} items', 'Level1.PluralString2' => [ 'context' => 'Another ignored context', 'default' => 'An item|{count} items', ], // Some near-false-positives for plurals 'Level1.NotPlural1' => 'Not a plural|string', // no count 'Level1.NotPlural2' => 'Not|a|plural|string{count}', // unexpected number 'Level1.NotPlural3' => 'Not a plural string {count}', // no pipe 'Level1.BoolTest' => 'True', 'Level1.FlagTest' => 'No', 'Level1.TextTest' => 'Maybe', 'Template.ss.Key' => 'Template var', 'TopLevel' => 'The Top', ]; $yaml = <<assertEquals($yaml, Convert::nl2os($writer->getYaml($entities, 'de'))); } }