|
@@ 191-196 (lines=6) @@
|
| 188 |
|
throw new \Kdyby\Translation\InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message))); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
if ($domain === NULL) { |
| 192 |
|
list($domain, $id) = $this->extractMessageDomain($message); |
| 193 |
|
|
| 194 |
|
} else { |
| 195 |
|
$id = $message; |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
$result = parent::trans($id, $parameters, $domain, $locale); |
| 199 |
|
if ($result === "\x01") { |
|
@@ 220-225 (lines=6) @@
|
| 217 |
|
throw new \Kdyby\Translation\InvalidArgumentException(sprintf('Message id must be a string, %s was given', gettype($message))); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ($domain === NULL) { |
| 221 |
|
list($domain, $id) = $this->extractMessageDomain($message); |
| 222 |
|
|
| 223 |
|
} else { |
| 224 |
|
$id = $message; |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
try { |
| 228 |
|
$result = parent::transChoice($id, $number, $parameters, $domain, $locale); |