mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 15:08:42 +02:00
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:
@ -62,11 +62,10 @@ class PluginExampleRuleTest extends Rule {
|
||||
|
||||
|
||||
function getCriterias() {
|
||||
global $LANG;
|
||||
|
||||
$criterias = array();
|
||||
$criterias['name']['field'] = 'name';
|
||||
$criterias['name']['name'] = $LANG['help'][31];
|
||||
$criterias['name']['name'] = __('Software');
|
||||
$criterias['name']['table'] = 'glpi_softwares';
|
||||
|
||||
return $criterias;
|
||||
@ -74,10 +73,9 @@ class PluginExampleRuleTest extends Rule {
|
||||
|
||||
|
||||
function getActions() {
|
||||
global $LANG;
|
||||
|
||||
$actions = array();
|
||||
$actions['softwarecategories_id']['name'] = $LANG['common'][36];
|
||||
$actions['softwarecategories_id']['name'] = __('Category (class)');
|
||||
$actions['softwarecategories_id']['type'] = 'dropdown';
|
||||
$actions['softwarecategories_id']['table'] = 'glpi_softwarecategories';
|
||||
return $actions;
|
||||
|
Reference in New Issue
Block a user