Beispiel #1
0
 public static function printTranslationAssistance()
 {
     if (isset(Lang::$_untranslated_dictionary) && count(Lang::$_untranslated_dictionary) > 0) {
         echo "Translation assistance for language " . Res::session("ARFramework_lang") . ". <br/>(You can set this assistant OFF by setting the constant LANG_TRANSLATION_ASSISTANCE to false in the 'config.php' file)" . ". <br/>Add the following elements to the locale/" . Res::session("ARFramework_lang") . "/core.xml file (or to the relevant subdictionary) :<br/>";
         echo "<textarea style=\"width:50%;\" rows=\"10\">";
         foreach (Lang::$_untranslated_dictionary as $key => $argument_count) {
             $s = "<translation key=\"{$key}\"";
             if ($argument_count != "0") {
                 $s .= " arguments=\"{$argument_count}\"";
             }
             $s .= "></translation>";
             echo "\n" . htmlentities($s, ENT_QUOTES);
         }
         echo "</textarea>";
     }
 }