public function testTranslateScope()
{
$data = array('catalog' => 'Katalog');
Catalog::write('runtime', 'message', 'de', $data, array('scope' => 'test'));
$data = function ($n) {
return $n === 1 ? 0 : 1;
};
Catalog::write('runtime', 'message.pluralRule', 'root', $data, array('scope' => 'test'));
$result = Message::translate('catalog', array('locale' => 'de'));
$this->assertNull($result);
$expected = 'Katalog';
$result = Message::translate('catalog', array('locale' => 'de', 'scope' => 'test'));
$this->assertEqual($expected, $result);
}