Browse Source

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 years ago
parent
commit
d65588dd17
1 changed files with 2 additions and 2 deletions
  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")) {
 if (file_exists("../help/$squirrelmail_language")) {
     $user_language = $squirrelmail_language;
     $user_language = $squirrelmail_language;
 } else if (file_exists('../help/en_US')) {
 } 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 />';
     echo '</font></center><br />';
     $user_language = 'en_US';
     $user_language = 'en_US';
 } else {
 } else {