BUG 15973 "Multilenguaje en los las variables..." SOLVED
- Multilenguaje en los las variables que se guardan en base de datos. - Problema resuelto, las variables que se muestran en las imagenes son traducibles.
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
$arrayToTranslation = array(
|
||||
"TRIGGER" => G::LoadTranslation("ID_TRIGGER_DB"),
|
||||
"DERIVATION" => G::LoadTranslation("ID_DERIVATION_DB")
|
||||
);
|
||||
|
||||
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||
|
||||
if ($actionAjax == 'messageHistoryGridList_JXP') {
|
||||
@@ -110,7 +115,7 @@ if ($actionAjax == 'messageHistoryGridList_JXP') {
|
||||
$r->data = $aProcesses;
|
||||
$r->totalCount = $totalCount;
|
||||
|
||||
$r->data[0]["APP_MSG_TYPE"] = ($r->data[0]["APP_MSG_TYPE"] == "TRIGGER")? G::LoadTranslation("ID_TRIGGER_DB") : $r->data[0]["APP_MSG_TYPE"];
|
||||
$r->data[0]["APP_MSG_TYPE"] = (array_key_exists($r->data[0]["APP_MSG_TYPE"], $arrayToTranslation))? $arrayToTranslation[$r->data[0]["APP_MSG_TYPE"]] : $r->data[0]["APP_MSG_TYPE"];
|
||||
|
||||
echo G::json_encode( $r );
|
||||
}
|
||||
|
||||
@@ -533,6 +533,11 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
G::LoadClass( "BasePeer" );
|
||||
global $G_PUBLISH;
|
||||
|
||||
$arrayToTranslation = array(
|
||||
"OUTPUT" => G::LoadTranslation("ID_OUTPUT_DB"),
|
||||
"INPUT" => G::LoadTranslation("ID_INPUT_DB")
|
||||
);
|
||||
|
||||
$oCase = new Cases();
|
||||
$aProcesses = Array ();
|
||||
$G_PUBLISH = new Publisher();
|
||||
@@ -551,7 +556,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
|
||||
for ($j = 0; $j < $rs->getRecordCount(); $j ++) {
|
||||
$result = $rs->getRow();
|
||||
$result["TYPE"] = ($result["TYPE"] == "INPUT")? G::LoadTranslation("ID_INPUT_DB") : $result["TYPE"];
|
||||
$result["TYPE"] = (array_key_exists($result["TYPE"], $arrayToTranslation))? $arrayToTranslation[$result["TYPE"]] : $result["TYPE"];
|
||||
$aProcesses[] = $result;
|
||||
$rs->next();
|
||||
$totalCount ++;
|
||||
|
||||
Reference in New Issue
Block a user