@@ 80-87 (lines=8) @@ | ||
77 | * @param string|bool $language |
|
78 | * @return string |
|
79 | */ |
|
80 | protected function doTranslation($slug, $language = false) |
|
81 | { |
|
82 | if (isset($this->dictionary[$language][$slug])) { |
|
83 | return $this->dictionary[$language][$slug]; |
|
84 | } |
|
85 | ||
86 | return false; |
|
87 | } |
|
88 | } |
|
89 |
@@ 146-153 (lines=8) @@ | ||
143 | * @param string|bool $language |
|
144 | * @return string|bool |
|
145 | */ |
|
146 | protected function doTranslation($slug, $language = false) |
|
147 | { |
|
148 | if (isset($this->dictionary[$language][$slug])) { |
|
149 | return $this->dictionary[$language][$slug]; |
|
150 | } |
|
151 | ||
152 | return false; |
|
153 | } |
|
154 | } |
|
155 |