Skip to content

Commit

Permalink
English lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Janowski Marcin committed Aug 2, 2016
1 parent 114e4d5 commit 83005f2
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 62 deletions.
10 changes: 5 additions & 5 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function plugin_relation_getAddSearchOptions($itemtype){
$sopt[2250]['field'] = '';
$sopt[2250]['linkfield'] = 'parent';
$sopt[2250]['name'] = PluginRelationRelation::getTypeName(2)." - ".
__('Inversa');
__('Parent');
$sopt[2250]['datatype'] = 'itemlink';
//$sopt[2250]['datatype'] = 'dropdown';
$sopt[2250]['itemlink_type'] = $itemtype;
Expand All @@ -142,7 +142,7 @@ function plugin_relation_getAddSearchOptions($itemtype){
$sopt[2251]['field'] = '';
$sopt[2251]['linkfield'] = 'children';
$sopt[2251]['name'] = PluginRelationRelation::getTypeName(2)." - ".
__('Directa');
__('Children');
$sopt[2251]['forcegroupby'] = true;
//$sopt[2251]['datatype'] = 'dropdown';
$sopt[2251]['datatype'] = 'itemlink';
Expand Down Expand Up @@ -368,10 +368,10 @@ function plugin_relation_giveItem($type,$ID,$data,$num) {
$string .= $form . "?id=" . $item[1] . "'>";
switch($ID) {
case 2250:
$string .= $nombre_objeto. "</a>". " Clase: ". $item[0] . " Tipo Relacion: ". PluginRelationRelation::getNombreTiporelacion($item[2], 1) ;
$string .= $nombre_objeto. "</a>". " Class: ". $item[0] . " Relation type: ". PluginRelationRelation::getNombreTiporelacion($item[2], 1) ;
break;
case 2251:
$string .= $nombre_objeto. "</a>". " Clase: ". $item[0] . " Tipo Relacion: ". PluginRelationRelation::getNombreTiporelacion($item[2], 0) ;
$string .= $nombre_objeto. "</a>". " Class: ". $item[0] . " Relation type: ". PluginRelationRelation::getNombreTiporelacion($item[2], 0) ;
break;
}

Expand Down Expand Up @@ -473,4 +473,4 @@ function plugin_relation_translatearight($old_right) {
}
}

?>
?>
18 changes: 9 additions & 9 deletions inc/clase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getSearchOptions() {
'1' => array(
'table' => $this->getTable(),
'field' => 'name',
'name' => __('Nombre de la clase','Nombre de la clase'),
'name' => __('Class name','Nombre de la clase'),
'datatype' => 'itemlink',
'massiveaction' => true,
),
Expand All @@ -70,7 +70,7 @@ public function getSearchOptions() {
'3' => array(
'table' => $this->getTable(),
'field' => 'viewname',
'name' => __('Nombre a mostrar para la clase','Nombre a mostrar para la clase'),
'name' => __('Display name for the class','Nombre a mostrar para la clase'),
'datatype' => 'text',
'massiveaction' => true,
),
Expand All @@ -84,14 +84,14 @@ public function getSearchOptions() {
'5' => array(
'table' => $this->getTable(),
'field' => 'img',
'name' => __('Imagen','Imagen'),
'name' => __('Image','Imagen'),
'datatype' => 'text',
'massiveaction' => false,
),
'6' => array(
'table' => $this->getTable(),
'field' => 'is_visible',
'name' => __('Es visible','Es visible'),
'name' => __('Is visible','Es visible'),
'datatype' => 'bool',
'massiveaction' => false,
),
Expand Down Expand Up @@ -123,23 +123,23 @@ public function showForm ($ID, $options=array()) {
$relation = new PluginRelationRelation();
echo "<tr class='tab_bg_1'>";
//Nombre de la clase en GLPI
echo "<td>".__('Nombre de la clase','Nombre de la clase').": </td><td>";
echo "<td>".__('Class name','Nombre de la clase').": </td><td>";
//Html::autocompletionTextField($this,"name",array('size' => "15"));
$relation->dropdownType("name", $relation->getIdDropdown($this->fields["name"]));
echo "</td>";
//Nombre a mostrar en los desplegables para la clase
echo "<td>".__('Nombre a mostrar para la clase','Nombre a mostrar para la clase').": </td>";
echo "<td>".__('Display name for the class','Nombre a mostrar para la clase').": </td>";
echo "<td>";
Html::autocompletionTextField($this,"viewname",array('size' => "15"));
echo "</td>";
echo "</tr>";
echo "<tr class='tab_bg_1'>";
//Descripción
echo "<td>".__('Descripción','Descripción').": </td><td>";
echo "<td>".__('Description','Descripción').": </td><td>";
Html::autocompletionTextField($this,"comment",array('size' => "15"));
echo "</td>";
//Imagen
echo "<td>".__('Imagen','Imagen').": </td>";
echo "<td>".__('Image','Imagen').": </td>";
echo "<td>";
//file
//$rep = "../plugins/relation/pics/";
Expand Down Expand Up @@ -172,7 +172,7 @@ public function showForm ($ID, $options=array()) {

echo "<tr class='tab_bg_1'>";
//Nombre de la clase en GLPI
echo "<td>".__('Es visible','Es visible')."</td><td>";
echo "<td>".__('Is visible','Es visible')."</td><td>";
//Html::autocompletionTextField($this,"name",array('size' => "15"));
Dropdown::showYesNo('is_visible', $this->fields['is_visible']);
echo "</td>";
Expand Down
16 changes: 8 additions & 8 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ static function getMenuContent() {
$menu['title'] = self::getTypeName();

$menu['options']['typerelation']['page'] = "/plugins/relation/front/typerelation.php";
$menu['options']['typerelation']['title'] = __("Tipos relaciones", 'relation');
$menu['options']['typerelation']['title'] = __("Relation types", 'relation');
$menu['options']['typerelation']['links']['add'] = '/plugins/relation/front/typerelation.form.php';
$menu['options']['typerelation']['links']['search'] = '/plugins/relation/front/typerelation.php';

$menu['options']['clase']['page'] = "/plugins/relation/front/clase.php";
$menu['options']['clase']['title'] = __("Clases", 'relation');
$menu['options']['clase']['title'] = __("Classes", 'relation');
$menu['options']['clase']['links']['add'] = '/plugins/relation/front/clase.form.php';
$menu['options']['clase']['links']['search'] = '/plugins/relation/front/clase.php';

$menu['options']['relationclase']['page'] = "/plugins/relation/front/relationclase.php";
$menu['options']['relationclase']['title'] = __("Relaciones clase", 'relation');
$menu['options']['relationclase']['title'] = __("Relations classes", 'relation');
$menu['options']['relationclase']['links']['add'] = '/plugins/relation/front/relationclase.form.php';
$menu['options']['relationclase']['links']['search'] = '/plugins/relation/front/relationclase.php';

Expand All @@ -83,19 +83,19 @@ static function showConfigPage() {

echo "<div class='center'>";
echo "<table class='tab_cadre'>";
echo "<tr><th>".__('Configuración plugin Relaciones','Configuración plugin Relaciones')."</th></tr>";
echo "<tr><th>".__('Configuration Relations plugin','Configuración plugin Relaciones')."</th></tr>";

if (Session::haveRight('plugin_relation',CREATE)) {
echo "<tr class='tab_bg_1 center'><td>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/typerelation.php' >".__('Ver o modificar tipos de relaciones','Ver o modificar tipos de relaciones')."</a>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/typerelation.php' >".__('View or modify types of relationships','Ver o modificar tipos de relaciones')."</a>";
echo "</td/></tr>\n";

echo "<tr class='tab_bg_1 center'><td>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/clase.php' >".__('Ver o modificar clase que participan en las relaciones','Ver o modificar clase que participan en las relaciones')."</a>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/clase.php' >".__('View or modify class involved in relationships','Ver o modificar clase que participan en las relaciones')."</a>";
echo "</td/></tr>\n";

echo "<tr class='tab_bg_1 center'><td>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/relationclase.php' >".__('Ver o modificar relaciones entre clase','Ver o modificar relaciones entre clase')."</a>";
echo "<a href='".$CFG_GLPI['root_doc']."/plugins/relation/front/relationclase.php' >".__('View or modify relationships between class','Ver o modificar relaciones entre clase')."</a>";
echo "</td/></tr>\n";

}
Expand Down Expand Up @@ -123,4 +123,4 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate=0)

}

?>
?>
44 changes: 22 additions & 22 deletions inc/relation.class.php

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions inc/relationclase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getSearchOptions() {
'1' => array(
'table' => $this->getTable(),
'field' => 'classname',
'name' => __('Nombre de la clase','Nombre de la clase'),
'name' => __('Class name','Nombre de la clase'),
'datatype' => 'itemlink',
'massiveaction' => true,
),
Expand All @@ -71,7 +71,7 @@ public function getSearchOptions() {
'3' => array(
'table' => $this->getTable(),
'field' => 'classlist',
'name' => __('Clase con la que se relaciona','Clase con la que se relaciona'),
'name' => __('Class that relates','Clase con la que se relaciona'),
'datatype' => 'text',
'massiveaction' => true,
),
Expand Down Expand Up @@ -109,18 +109,18 @@ function showForm ($ID, $options=array()) {

echo "<tr class='tab_bg_1'>";
//Nombre de la clase
echo "<td>".__('Nombre de la clase','Nombre de la clase').": </td><td>";
echo "<td>".__('Class name','Nombre de la clase').": </td><td>";
$relation->dropdownClase("classname",$this->fields["classname"]);
echo "</td>";
//Clase con las que se relaciona
echo "<td>".__('Clase con la que se relaciona','Clase con la que se relaciona').": </td>";
echo "<td>".__('Class that relates','Clase con la que se relaciona').": </td>";
echo "<td>";
$relation->dropdownClase("classlist",$this->fields["classlist"]);
echo "</td>";
echo "</tr>";
echo "<tr class='tab_bg_1'>";
//Descripción
echo "<td>".__('Descripción','Descripción').": </td><td>";
echo "<td>".__('Description','Descripción').": </td><td>";
Html::autocompletionTextField($this,"comment",array('size' => "15"));
echo "</td>";
echo "</tr>";
Expand Down
12 changes: 6 additions & 6 deletions inc/typerelation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PluginRelationTyperelation extends CommonDBTM {
static $rightname = 'config';

public static function getTypeName($nb=0) {
return __('Tipo relacion', 'relation');
return __('Relation type', 'relation');
}


Expand All @@ -58,7 +58,7 @@ public function getSearchOptions() {
'1' => array(
'table' => $this->getTable(),
'field' => 'name',
'name' => __('Nombre de la relación','Nombre de la relación'),
'name' => __('Name','Nombre de la relación'),
'datatype' => 'itemlink',
'massiveaction' => true,
),
Expand All @@ -72,7 +72,7 @@ public function getSearchOptions() {
'3' => array(
'table' => $this->getTable(),
'field' => 'invname',
'name' => __('Nombre de la relación (sentido inverso)','Nombre de la relación (sentido inverso)'),
'name' => __('Reverse name','Nombre de la relación (sentido inverso)'),
'datatype' => 'text',
'massiveaction' => true,
),
Expand Down Expand Up @@ -109,18 +109,18 @@ public function showForm ($ID, $options=array()) {

echo "<tr class='tab_bg_1'>";
//Nombre de la relación
echo "<td>".__('Nombre de la relación','Nombre de la relación').": </td><td>";
echo "<td>".__('Name','Nombre de la relación').": </td><td>";
Html::autocompletionTextField($this,"name",array('size' => "15"));
echo "</td>";
//Nombre de la relación en sentido inverso
echo "<td>".__('Nombre de la relación (sentido inverso)','Nombre de la relación (sentido inverso)').": </td>";
echo "<td>".__('Reverse name','Nombre de la relación (sentido inverso)').": </td>";
echo "<td>";
Html::autocompletionTextField($this,"invname",array('size' => "15"));
echo "</td>";
echo "</tr>";
echo "<tr class='tab_bg_1'>";
//Descripción
echo "<td>".__('Descripción','Descripción').": </td><td>";
echo "<td>".__('Description','Descripción').": </td><td>";
Html::autocompletionTextField($this,"comment",array('size' => "15"));
echo "</td>";
echo "</tr>";
Expand Down
6 changes: 3 additions & 3 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ function plugin_init_relation() {
}

$PLUGIN_HOOKS['submenu_entry']['relation']['options']['typerelation'] = array(
'title' => __('Tipos relaciones', 'relation'),
'title' => __('Relations types', 'relation'),
'page' =>'/plugins/relation/front/typerelation.php',
'links' => array(
'search' => '/plugins/relation/front/typerelation.php',
'add' =>'/plugins/relation/front/typerelation.form.php'
));
$PLUGIN_HOOKS['submenu_entry']['relation']['options']['clase'] = array(
'title' => __('Clases', 'relation'),
'title' => __('Relations class', 'relation'),
'page' =>'/plugins/relation/front/clase.php',
'links' => array(
'search' => '/plugins/relation/front/clase.php',
'add' =>'/plugins/relation/front/clase.form.php'
));
$PLUGIN_HOOKS['submenu_entry']['relation']['options']['relationclase'] = array(
'title' => __('Relaciones clase', 'relation'),
'title' => __('Relations class', 'relation'),
'page' =>'/plugins/relation/front/relationclase.form.php',
'links' => array(
'search' => '/plugins/relation/front/relationclase.php',
Expand Down
8 changes: 4 additions & 4 deletions sql/script_carm.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_relation_clases` (

TRUNCATE TABLE `glpi_plugin_relation_typerelations`;
INSERT INTO `glpi_plugin_relation_typerelations` (`id`,`entities_id`,`is_recursive`,`name`,`invname`,`comment`)
VALUES (1,0,0,'Es parte de','Es parte de (inverso)','Es parte de'),
(2,0,0,'Vinculado con','Vinculado con (inverso)','Vinculado con'),
(3,0,0,'Utiliza','Utilizado por','Utiliza'),
(4,0,0,'Es padre de','Es hijo de','padre-hijo');
VALUES (1,0,0,'It is part of','It is part of (reverse)','It is part of'),
(2,0,0,'Linked with','Linked with (reverse)','Linked with'),
(3,0,0,'Use','Used by','Use'),
(4,0,0,'He is the father of','Is son of','Father son');

0 comments on commit 83005f2

Please sign in to comment.