Page MenuHomePhabricator

D11121.id26701.diff
No OneTemporary

D11121.id26701.diff

diff --git a/src/internationalization/PhutilTranslator.php b/src/internationalization/PhutilTranslator.php
--- a/src/internationalization/PhutilTranslator.php
+++ b/src/internationalization/PhutilTranslator.php
@@ -88,7 +88,11 @@
}
}
- $result = vsprintf($translation, $args);
+ if(empty($translation)) {
+ $result = vsprintf($text, $args);
+ } else {
+ $result = vsprintf($translation, $args);
+ }
if ($this->language == 'en-ac') {
$result = strtoupper($result);

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 8:36 PM (6 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382959
Default Alt Text
D11121.id26701.diff (515 B)

Event Timeline