@@ -154,7 +154,7 @@ |
||
| 154 | 154 | log_message( |
| 155 | 155 | (is_string($isSetLocale) ? 'info' : 'error'), |
| 156 | 156 | 'Gettext Library -> ' . |
| 157 | - 'Set locale: ' . (is_array($this->_locale) ? print_r($this->_locale, TRUE) : $this->_locale). ' ' . |
|
| 157 | + 'Set locale: ' . (is_array($this->_locale) ? print_r($this->_locale, TRUE) : $this->_locale) . ' ' . |
|
| 158 | 158 | 'for category: ' . $this->_category |
| 159 | 159 | ); |
| 160 | 160 | |
@@ -22,8 +22,9 @@ discard block |
||
| 22 | 22 | if (!empty($domain)) { |
| 23 | 23 | (new \Gettext())->changeDomain($domain); |
| 24 | 24 | |
| 25 | - if (!empty($category)) |
|
| 26 | - return (dcgettext($domain, $expression, $category)); |
|
| 25 | + if (!empty($category)) { |
|
| 26 | + return (dcgettext($domain, $expression, $category)); |
|
| 27 | + } |
|
| 27 | 28 | |
| 28 | 29 | return (dgettext($domain, $expression)); |
| 29 | 30 | } |
@@ -56,8 +57,9 @@ discard block |
||
| 56 | 57 | if (!empty($domain)) { |
| 57 | 58 | (new \Gettext())->changeDomain($domain); |
| 58 | 59 | |
| 59 | - if (!empty($category)) |
|
| 60 | - return (dcngettext($domain, $expression_singular, $expression_plural, $number, $category)); |
|
| 60 | + if (!empty($category)) { |
|
| 61 | + return (dcngettext($domain, $expression_singular, $expression_plural, $number, $category)); |
|
| 62 | + } |
|
| 61 | 63 | |
| 62 | 64 | return (dngettext($domain, $expression_singular, $expression_plural, $number)); |
| 63 | 65 | } |