diff options
author | ramon <ramongomez@us.es> | 2012-02-18 12:07:17 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-02-18 12:07:17 +0000 |
commit | c70078c3c8fa827e449fd9dc8489b166659e87cd (patch) | |
tree | 6719980b382646ae20663ea2794e035be89c5ff9 | |
parent | 09468cb2ce06c27650aecf55db78a3bdaacd44be (diff) |
VersiĆ³n 1.0.3, #483: Internacionalizar tipos de hardware.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2616 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r-- | admin/WebConsole/idiomas/php/eng/comandos/mensajes_eng.php | 2 | ||||
-rw-r--r-- | admin/WebConsole/idiomas/php/eng/tiposhardwares_eng.php | 24 | ||||
-rw-r--r-- | admin/WebConsole/principal/hardwares.php | 13 |
3 files changed, 35 insertions, 4 deletions
diff --git a/admin/WebConsole/idiomas/php/eng/comandos/mensajes_eng.php b/admin/WebConsole/idiomas/php/eng/comandos/mensajes_eng.php index 7af06f1e..eb70b189 100644 --- a/admin/WebConsole/idiomas/php/eng/comandos/mensajes_eng.php +++ b/admin/WebConsole/idiomas/php/eng/comandos/mensajes_eng.php @@ -1,7 +1,7 @@ <? //________________________________________________________ // -// Fichero de idiomas php: comandos/mensajes_esp.php +// Fichero de idiomas php: comandos/mensajes_eng.php // Idioma: English //________________________________________________________ if (empty ($TbMsg)) $TbMsg=Array(); diff --git a/admin/WebConsole/idiomas/php/eng/tiposhardwares_eng.php b/admin/WebConsole/idiomas/php/eng/tiposhardwares_eng.php new file mode 100644 index 00000000..294b9c07 --- /dev/null +++ b/admin/WebConsole/idiomas/php/eng/tiposhardwares_eng.php @@ -0,0 +1,24 @@ +<? +//________________________________________________________ +// +// Fichero de idiomas php: tiposhardwares_eng.php +// Idioma: English +//________________________________________________________ +if (empty ($TbMsg)) $TbMsg=Array(); +$TbMsg["HARDWARE_aud"]="Audio device"; +$TbMsg["HARDWARE_bio"]="System BIOS"; +$TbMsg["HARDWARE_boa"]="Mainboard"; +$TbMsg["HARDWARE_bus"]="System bus"; +$TbMsg["HARDWARE_cdr"]="CD/DVD/Optical device"; +$TbMsg["HARDWARE_cpu"]="Processor"; +$TbMsg["HARDWARE_dis"]="Disk"; +$TbMsg["HARDWARE_fir"]="FireWire controller"; +$TbMsg["HARDWARE_ide"]="IDE controller"; +$TbMsg["HARDWARE_mem"]="Memory"; +$TbMsg["HARDWARE_mod"]="System model"; +$TbMsg["HARDWARE_mul"]="Multimedia device"; +$TbMsg["HARDWARE_net"]="Network device"; +$TbMsg["HARDWARE_usb"]="USB controller"; +$TbMsg["HARDWARE_vga"]="Video/Graphic device"; +?> + diff --git a/admin/WebConsole/principal/hardwares.php b/admin/WebConsole/principal/hardwares.php index 734d282f..4ba10d9a 100644 --- a/admin/WebConsole/principal/hardwares.php +++ b/admin/WebConsole/principal/hardwares.php @@ -16,6 +16,7 @@ include_once("../clases/MenuContextual.php"); include_once("../includes/constantes.php"); include_once("../includes/CreaComando.php"); include_once("../idiomas/php/".$idioma."/hardwares_".$idioma.".php"); +include_once("../idiomas/php/".$idioma."/tiposhardwares_".$idioma.".php"); //________________________________________________________________________________________________________ $cmd=CreaComando($cadenaconexion); if (!$cmd) @@ -120,10 +121,12 @@ function CreaArbol($cmd,$idcentro){ } //________________________________________________________________________________________________________ function SubarbolXML_TiposHardwares($cmd){ - global $LITAMBITO_TIPOHARDWARES; + global $LITAMBITO_TIPOHARDWARES; + global $TbMsg; $cadenaXML=""; $rs=new Recordset; - $cmd->texto="SELECT idtipohardware,descripcion,urlimg FROM tipohardwares order by descripcion"; + $cmd->texto="SELECT idtipohardware, descripcion, urlimg, nemonico + FROM tipohardwares ORDER BY descripcion"; $rs->Comando=&$cmd; if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset $rs->Primero(); @@ -134,7 +137,11 @@ function SubarbolXML_TiposHardwares($cmd){ $cadenaXML.=' imagenodo="'.$rs->campos["urlimg"].'"'; else $cadenaXML.=' imagenodo="../images/iconos/confihard.gif"'; - $cadenaXML.=' infonodo="'.$rs->campos["descripcion"].'"'; + $descrip = $TbMsg["HARDWARE_".$rs->campos["nemonico"]]; + if (empty ($descrip)) { + $descrip = $rs->campos["descripcion"]; + } + $cadenaXML.=' infonodo="'.$descrip.'"'; $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_TIPOHARDWARES."'" .')"'; $cadenaXML.=' nodoid='.$LITAMBITO_TIPOHARDWARES.'-'.$rs->campos["idtipohardware"]; |