lithium\g11n\catalog\adapter\Code::read()
Overrides
lithium\g11n\catalog\Adapter::read()
Reads data.
Parameters
-
string
$categoryA category.
'messageTemplate'is the only category supported. -
string
$localeA locale identifier.
-
string
$scopeThe scope for the current operation.
Returns
arrayReturns the message template. If the scope is not equal to the current scope
or $category is not 'messageTemplate' null is returned.
Source
public function read($category, $locale, $scope) {
if ($scope !== $this->_config['scope']) {
return null;
}
$path = $this->_config['path'];
switch ($category) {
case 'messageTemplate':
return $this->_readMessageTemplate($path);
default:
return null;
}
}