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