gettext for plugin example + tools

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@179 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo
2011-12-20 10:03:35 +00:00
parent 4b086c9c08
commit e53695069b
16 changed files with 684 additions and 87 deletions

View File

@ -40,21 +40,21 @@ if (isset($_GET["popup"])) {
if (isset($_SESSION["glpipopup"]["name"])) {
switch ($_SESSION["glpipopup"]["name"]) {
case "test_rule" :
Html::popHeader($LANG['buttons'][50],$_SERVER['PHP_SELF']);
Html::popHeader(__('Test'),$_SERVER['PHP_SELF']);
include "../../../front/rule.test.php";
break;
case "test_all_rules" :
Html::popHeader($LANG['rulesengine'][84],$_SERVER['PHP_SELF']);
Html::popHeader(__('Test rules engine'),$_SERVER['PHP_SELF']);
include "../../../front/rulesengine.test.php";
break;
case "show_cache" :
Html::popHeader($LANG['rulesengine'][100],$_SERVER['PHP_SELF']);
Html::popHeader(__('Cache informations'),$_SERVER['PHP_SELF']);
include "../../../front/rule.cache.php";
break;
}
echo "<div class='center'><br><a href='javascript:window.close()'>".$LANG['buttons'][13]."</a>";
echo "<div class='center'><br><a href='javascript:window.close()'>".__('Back')."</a>";
echo "</div>";
Html::popFooter();
}