浏览代码

some languages use syntax that can't be adapted for printf command. If translator
tries to translate string correctly, he/she can create msgfmt errors.

tokul 20 年之前
父节点
当前提交
d65588dd17
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/help.php

+ 2 - 2
src/help.php

@@ -119,8 +119,8 @@ if (!isset($squirrelmail_language)) {
 if (file_exists("../help/$squirrelmail_language")) {
     $user_language = $squirrelmail_language;
 } else if (file_exists('../help/en_US')) {
-    echo "<center><font color=\"$color[2]\">";
-    printf (_("The help has not been translated to %s. It will be displayed in English instead."), $languages[$squirrelmail_language]['NAME']);
+    echo "<center><font color=\"$color[2]\">"
+        ._("The help has not been translated to selected language. It will be displayed in English instead.");
     echo '</font></center><br />';
     $user_language = 'en_US';
 } else {