Move lang into en/cachet.php where possible. Lang everything.
This commit is contained in:
@@ -26,7 +26,7 @@ class Component extends Eloquent implements \Dingo\Api\Transformer\Transformable
|
||||
* @return string
|
||||
*/
|
||||
public function getHumanStatusAttribute() {
|
||||
return Lang::get('component.status.' . $this->status);
|
||||
return Lang::get('cachet.component.status.' . $this->status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,7 +32,7 @@ class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableI
|
||||
* @return string
|
||||
*/
|
||||
public function getHumanStatusAttribute() {
|
||||
$statuses = Lang::get('incident.status');
|
||||
$statuses = Lang::get('cachet.incident.status');
|
||||
return $statuses[$this->status];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user