summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-06-13 10:07:07 +0000
committerramon <ramongomez@us.es>2012-06-13 10:07:07 +0000
commitc65587cf2ab476ffd89525a0d2b015863b8970f8 (patch)
tree42a8bebbcabb70a26e4053d81acf989a4f7a387c
parentc76414ec3497682ce1bfb60dd532f50d8c861a15 (diff)
Versión 1.0.4, #505: Internacionalización de mensajes de estado.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3190 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r--admin/WebConsole/comandos/includes/FiltradoAmbito.php45
-rw-r--r--admin/WebConsole/idiomas/php/cat/aulas_cat.php5
-rw-r--r--admin/WebConsole/idiomas/php/cat/estados_cat.php16
-rw-r--r--admin/WebConsole/idiomas/php/eng/aulas_eng.php5
-rw-r--r--admin/WebConsole/idiomas/php/eng/estados_eng.php16
-rw-r--r--admin/WebConsole/idiomas/php/esp/aulas_esp.php5
-rw-r--r--admin/WebConsole/idiomas/php/esp/estados_esp.php16
-rw-r--r--admin/WebConsole/principal/aula.php1
8 files changed, 72 insertions, 37 deletions
diff --git a/admin/WebConsole/comandos/includes/FiltradoAmbito.php b/admin/WebConsole/comandos/includes/FiltradoAmbito.php
index 2e16c9f9..3b6ad287 100644
--- a/admin/WebConsole/comandos/includes/FiltradoAmbito.php
+++ b/admin/WebConsole/comandos/includes/FiltradoAmbito.php
@@ -1,4 +1,4 @@
-<?
+<?php
// ******************************************************************************************************************
// Aplicación WEB: ogAdmWebCon
// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
@@ -11,6 +11,8 @@
//
// ********************************************************************************************************************
//
+include_once("../idiomas/php/".$idioma."/estados_".$idioma.".php");
+
$cadenaip="";
$cid=0; // Identificadores para tablas de ordenadores
switch($ambito)
@@ -159,28 +161,27 @@ function RecorriendoOrdenadores($cmd)
$htmlCode="";
$con=0;
- $htmlCode.='<TABLE border=0 class="tabla_busquedas" align=center>';
- $htmlCode.='<TR>';
-
- $htmlCode.='<TD align="center">Apagados</TD>';
- $htmlCode.='<TD><INPUT type="checkbox" checked onclick="selector(this,1,'.$cid.')"></TD>';
-
- $htmlCode.='<TD align="center">Ocupados</TD>';
- $htmlCode.='<TD><INPUT type="checkbox" checked onclick="selector(this,2,'.$cid.')"></TD>';
-
-
- $htmlCode.='<TD align="center">Opengnsys</TD>';
- $htmlCode.='<TD><INPUT type="checkbox" checked onclick="selector(this,3,'.$cid.')"></TD>';
-
- $htmlCode.='<TD align="center">Windows</TD>';
- $htmlCode.='<TD><INPUT type="checkbox" checked onclick="selector(this,4,'.$cid.')"></TD>';
-
-
- $htmlCode.='<TD align="center">Linux</TD>';
- $htmlCode.='<TD><INPUT type="checkbox" checked onclick="selector(this,5,'.$cid.')"></TD>';
+ $htmlCode.='
+<TABLE border=0 class="tabla_busquedas" align=center>
+<TR>
+
+<TD align="center">'.$TbMsg["STATUS_OFF"].'</TD>
+<TD><INPUT type="checkbox" checked onclick="selector(this,1,'.$cid.')"></TD>
- $htmlCode.='</TR>';
- $htmlCode.='</TABLE>';
+<TD align="center">'.$TbMsg["STATUS_BSY"].'</TD>
+<TD><INPUT type="checkbox" checked onclick="selector(this,2,'.$cid.')"></TD>
+
+<TD align="center">'.$TbMsg["STATUS_OPG"].'</TD>
+<TD><INPUT type="checkbox" checked onclick="selector(this,3,'.$cid.')"></TD>
+
+<TD align="center">'.$TbMsg["STATUS_WXP"].'</TD>
+<TD><INPUT type="checkbox" checked onclick="selector(this,4,'.$cid.')"></TD>
+
+<TD align="center">'.$TbMsg["STATUS_LNX"].'</TD>
+<TD><INPUT type="checkbox" checked onclick="selector(this,5,'.$cid.')"></TD>
+
+</TR>
+</TABLE>';
$htmlCode.='<BR>';
$htmlCode.='<TABLE id="tbo-'.$cid.'" border=0 align=center>';
diff --git a/admin/WebConsole/idiomas/php/cat/aulas_cat.php b/admin/WebConsole/idiomas/php/cat/aulas_cat.php
index 42c3d7e7..00e15d1e 100644
--- a/admin/WebConsole/idiomas/php/cat/aulas_cat.php
+++ b/admin/WebConsole/idiomas/php/cat/aulas_cat.php
@@ -54,10 +54,5 @@
$TbMsg[46]='Identificador ámbito';
$TbMsg[47]='"Log historico"';
$TbMsg[48]='"Log en tiempo real"';
- $TbMsg["STATUS_BSY"]="Ejecutando";
- $TbMsg["STATUS_OFF"]="Apagado";
- $TbMsg["STATUS_OPG"]="OpenGnSys";
- $TbMsg["STATUS_LNX"]="GNU/Linux";
- $TbMsg["STATUS_WXP"]="Windows";
?>
diff --git a/admin/WebConsole/idiomas/php/cat/estados_cat.php b/admin/WebConsole/idiomas/php/cat/estados_cat.php
new file mode 100644
index 00000000..cd9a7a60
--- /dev/null
+++ b/admin/WebConsole/idiomas/php/cat/estados_cat.php
@@ -0,0 +1,16 @@
+<?php
+//____________________________________________
+//
+// Fitxer d'idiomes php: estados_cat.php
+// Idioma: Català
+//____________________________________________
+
+$TbMsg=array();
+$TbMsg["STATUS_BSY"]="Ocupado";
+$TbMsg["STATUS_INI"]="Iniciando";
+$TbMsg["STATUS_OFF"]="Apagado";
+$TbMsg["STATUS_OPG"]="OpenGnSys";
+$TbMsg["STATUS_LNX"]="GNU/Linux";
+$TbMsg["STATUS_WXP"]="Windows";
+?>
+
diff --git a/admin/WebConsole/idiomas/php/eng/aulas_eng.php b/admin/WebConsole/idiomas/php/eng/aulas_eng.php
index 61feb594..07ddf151 100644
--- a/admin/WebConsole/idiomas/php/eng/aulas_eng.php
+++ b/admin/WebConsole/idiomas/php/eng/aulas_eng.php
@@ -54,10 +54,5 @@
$TbMsg[46]='Scope id';
$TbMsg[47]='"Historical log"';
$TbMsg[48]='"Real time log"';
- $TbMsg["STATUS_BSY"]="Bussy";
- $TbMsg["STATUS_OFF"]="Off";
- $TbMsg["STATUS_OPG"]="OpenGnSys";
- $TbMsg["STATUS_LNX"]="GNU/Linux";
- $TbMsg["STATUS_WXP"]="Windows";
?>
diff --git a/admin/WebConsole/idiomas/php/eng/estados_eng.php b/admin/WebConsole/idiomas/php/eng/estados_eng.php
new file mode 100644
index 00000000..f2f2831e
--- /dev/null
+++ b/admin/WebConsole/idiomas/php/eng/estados_eng.php
@@ -0,0 +1,16 @@
+<?php
+//_________________________________________
+//
+// Php language file: estados_eng.php
+// Language: English
+//_________________________________________
+
+$TbMsg=array();
+$TbMsg["STATUS_BSY"]="Bussy";
+$TbMsg["STATUS_INI"]="Initializing";
+$TbMsg["STATUS_OFF"]="Off";
+$TbMsg["STATUS_OPG"]="OpenGnSys";
+$TbMsg["STATUS_LNX"]="GNU/Linux";
+$TbMsg["STATUS_WXP"]="Windows";
+?>
+
diff --git a/admin/WebConsole/idiomas/php/esp/aulas_esp.php b/admin/WebConsole/idiomas/php/esp/aulas_esp.php
index b2972c0b..ed4de97f 100644
--- a/admin/WebConsole/idiomas/php/esp/aulas_esp.php
+++ b/admin/WebConsole/idiomas/php/esp/aulas_esp.php
@@ -54,10 +54,5 @@
$TbMsg[46]='Identificador ámbito';
$TbMsg[47]='"Log historico"';
$TbMsg[48]='"Log en tiempo real"';
- $TbMsg["STATUS_BSY"]="Ejecutando";
- $TbMsg["STATUS_OFF"]="Apagado";
- $TbMsg["STATUS_OPG"]="OpenGnSys";
- $TbMsg["STATUS_LNX"]="GNU/Linux";
- $TbMsg["STATUS_WXP"]="Windows";
?>
diff --git a/admin/WebConsole/idiomas/php/esp/estados_esp.php b/admin/WebConsole/idiomas/php/esp/estados_esp.php
new file mode 100644
index 00000000..60287b6b
--- /dev/null
+++ b/admin/WebConsole/idiomas/php/esp/estados_esp.php
@@ -0,0 +1,16 @@
+<?php
+//______________________________________________
+//
+// Fichero de idiomas php: estados_esp.php
+// Idioma: Español
+//______________________________________________
+
+$TbMsg=array();
+$TbMsg["STATUS_BSY"]="Ocupado";
+$TbMsg["STATUS_INI"]="Iniciando";
+$TbMsg["STATUS_OFF"]="Apagado";
+$TbMsg["STATUS_OPG"]="OpenGnSys";
+$TbMsg["STATUS_LNX"]="GNU/Linux";
+$TbMsg["STATUS_WXP"]="Windows";
+?>
+
diff --git a/admin/WebConsole/principal/aula.php b/admin/WebConsole/principal/aula.php
index 7f6e7f8f..83b750d1 100644
--- a/admin/WebConsole/principal/aula.php
+++ b/admin/WebConsole/principal/aula.php
@@ -17,6 +17,7 @@ include_once("../includes/constantes.php");
include_once("../includes/comunes.php");
include_once("../includes/CreaComando.php");
include_once("../idiomas/php/".$idioma."/aulas_".$idioma.".php");
+include_once("../idiomas/php/".$idioma."/estados_".$idioma.".php");
include_once("../idiomas/php/".$idioma."/comandos/mensajes_".$idioma.".php");
//________________________________________________________________________________________________________
$litambito=0;