FIX_SIMPLIFIED_UI "Traducciones faltantes." SOLVED

- Se han agragado traducciones faltantes en directorio: templates/home/ y los archivos: home.php, Users.php,
  AppNotes.php y appProxy.php
* Available from version ProcessMaker-2.0.47 (2.5.1)
This commit is contained in:
Luis Fernando Saisa Lopez
2013-05-17 20:56:29 +00:00
parent a391ee392c
commit 0ec881a6f9
9 changed files with 29 additions and 32 deletions

View File

@@ -106,7 +106,7 @@ class AppNotes extends BaseAppNotes
$response['message'] = $msg; $response['message'] = $msg;
} else { } else {
$response['success'] = G::LoadTranslation("ID_SUCCESS"); $response['success'] = G::LoadTranslation("ID_SUCCESS");
$response['message'] = G::LoadTranslation("ID_SAVEDS"); $response['message'] = G::LoadTranslation("ID_SAVED2");
} }
if ($notify) { if ($notify) {
@@ -134,16 +134,16 @@ class AppNotes extends BaseAppNotes
$oConfiguration = new Configuration(); $oConfiguration = new Configuration();
$sDelimiter = DBAdapter::getStringDelimiter(); $sDelimiter = DBAdapter::getStringDelimiter();
$oCriteria = new Criteria( 'workflow' ); $oCriteria = new Criteria( 'workflow' );
$oCriteria->add( ConfigurationPeer::CFG_UID, G::LoadTranslation("ID_EMAILSS")); $oCriteria->add( ConfigurationPeer::CFG_UID, 'Emails' );
$oCriteria->add( ConfigurationPeer::OBJ_UID, '' ); $oCriteria->add( ConfigurationPeer::OBJ_UID, '' );
$oCriteria->add( ConfigurationPeer::PRO_UID, '' ); $oCriteria->add( ConfigurationPeer::PRO_UID, '' );
$oCriteria->add( ConfigurationPeer::USR_UID, '' ); $oCriteria->add( ConfigurationPeer::USR_UID, '' );
$oCriteria->add( ConfigurationPeer::APP_UID, '' ); $oCriteria->add( ConfigurationPeer::APP_UID, '' );
if (ConfigurationPeer::doCount( $oCriteria ) == 0) { if (ConfigurationPeer::doCount( $oCriteria ) == 0) {
$oConfiguration->create( array ('CFG_UID' => G::LoadTranslation("ID_EMAILSS"), 'OBJ_UID' => '','CFG_VALUE' => '','PRO_UID' => '','USR_UID' => '','APP_UID' => '') ); $oConfiguration->create( array ('CFG_UID' => 'Emails', 'OBJ_UID' => '','CFG_VALUE' => '','PRO_UID' => '','USR_UID' => '','APP_UID' => '') );
$aConfiguration = array (); $aConfiguration = array ();
} else { } else {
$aConfiguration = $oConfiguration->load( G::LoadTranslation("ID_EMAILSS"), '', '', '', '' ); $aConfiguration = $oConfiguration->load('Emails', '', '', '', '' );
if ($aConfiguration['CFG_VALUE'] != '') { if ($aConfiguration['CFG_VALUE'] != '') {
$aConfiguration = unserialize( $aConfiguration['CFG_VALUE'] ); $aConfiguration = unserialize( $aConfiguration['CFG_VALUE'] );
$passwd = $aConfiguration['MESS_PASSWORD']; $passwd = $aConfiguration['MESS_PASSWORD'];

View File

@@ -52,7 +52,7 @@ class Users extends BaseUsers
if ($this->validate()) { if ($this->validate()) {
$result = $this->save(); $result = $this->save();
} else { } else {
$e = new Exception( G::LoadTranslation("ID_FAILED_VALIDATION_CLASS") . get_class( $this ) . "." ); $e = new Exception(G::LoadTranslation("ID_FAILED_VALIDATION_IN_CLASS1", SYS_LANG, array("CLASS" => get_class($this))));
$e->aValidationFailures = $this->getValidationFailures(); $e->aValidationFailures = $this->getValidationFailures();
throw ($e); throw ($e);
} }
@@ -88,13 +88,12 @@ class Users extends BaseUsers
$this->setNew( false ); $this->setNew( false );
return $aFields; return $aFields;
} else { } else {
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST"))); throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
} }
} catch (PropelException $e) { } catch (PropelException $e) {
//capture invalid birthday date and replace by null //capture invalid birthday date and replace by null
$msg = $e->getMessage(); $msg = $e->getMessage();
//if (strpos( 'Unable to parse value of [usr_birthday]', $msg ) != - 1) { if (strpos( 'Unable to parse value of [usr_birthday]', $msg ) != - 1) {
if (strpos( G::LoadTranslation("ID_UNABLE_PARSE_VALUE_URS_BIRTHDAY"), $msg ) != - 1) {
$oRow->setUsrBirthday( null ); $oRow->setUsrBirthday( null );
$oRow->save(); $oRow->save();
return $this->load( $UsrUid ); return $this->load( $UsrUid );
@@ -116,8 +115,8 @@ class Users extends BaseUsers
$result['USR_EMAIL'] = $oUser->getUsrEmail(); $result['USR_EMAIL'] = $oUser->getUsrEmail();
return $result; return $result;
} else { } else {
// return $result; // return $result;
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST"))); throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
} }
} catch (Exception $oError) { } catch (Exception $oError) {
throw ($oError); throw ($oError);
@@ -153,7 +152,7 @@ class Users extends BaseUsers
return $result; return $result;
} else { } else {
//return $result; //return $result;
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST"))); throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
} }
} catch (Exception $oError) { } catch (Exception $oError) {
throw ($oError); throw ($oError);
@@ -173,7 +172,7 @@ class Users extends BaseUsers
return $result; return $result;
} else { } else {
$con->rollback(); $con->rollback();
throw (new Exception(G::LoadTranslation("ID_FAILED_VALIDATION_IN_CLASS") . get_class( $this ) . "." )); throw (new Exception(G::LoadTranslation("ID_FAILED_VALIDATION_IN_CLASS1", SYS_LANG, array("CLASS" => get_class($this)))));
} }
} catch (Exception $e) { } catch (Exception $e) {
$con->rollback(); $con->rollback();

View File

@@ -100,7 +100,7 @@ class AppProxy extends HttpProxyController
} }
if (! isset( $appUid )) { if (! isset( $appUid )) {
throw new Exception(G::LoadTranslation("ID_CANT_RESOLVE_APLICATION")); throw new Exception(G::LoadTranslation("ID_CANT_RESOLVE_APPLICATION"));
} }
$usrUid = (isset( $_SESSION['USER_LOGGED'] )) ? $_SESSION['USER_LOGGED'] : ""; $usrUid = (isset( $_SESSION['USER_LOGGED'] )) ? $_SESSION['USER_LOGGED'] : "";

View File

@@ -54,7 +54,7 @@
d.hide('slow'); d.hide('slow');
} }
else { else {
d.show({/literal}"{translate label="ID_SLOW"}"{literal}); d.show('slow');
} }
} }
@@ -84,7 +84,7 @@
{/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() { {/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() {
var sendMail = document.getElementById('chkSendMail').checked; var sendMail = document.getElementById('chkSendMail').checked;
sendMail = (sendMail == true) ? '1' : '0'; sendMail = (sendMail == true) ? '1' : '0';
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal}); $(this).dialog("close");
$.post( $.post(
'../appProxy/postNote', '../appProxy/postNote',
{appUid : appUid, {appUid : appUid,
@@ -96,9 +96,8 @@
); );
//redirect('home/startCase?id='+id); //redirect('home/startCase?id='+id);
}, },
Cancel: function() { {/literal}"{translate label="ID_CANCEL"}"{literal}: function() {
//$(this).dialog( "close" ); $(this).dialog( "close" );
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
} }
} }
}); });
@@ -134,7 +133,7 @@
$('#n_'+appUid).show('slow'); $('#n_'+appUid).show('slow');
} }
d = $('#m_'+appUid); d = $('#m_'+appUid);
d.show({/literal}"{translate label="ID_SLOW"}"{literal}); d.show('slow');
} }
); );
return true; return true;
@@ -153,7 +152,7 @@
$('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} ); $('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} );
} }
else { else {
$('#loadmorebutton').replaceWith({/literal}"<center> {translate label="ID_NO_MORE_APPLICATIONS"}</center>"{literal}); $('#loadmorebutton').replaceWith(<center>{/literal}"{translate label="ID_NO_MORE_APPLICATIONS"}"{literal}</center>);
} }
} }
}); });

View File

@@ -121,7 +121,7 @@
d.hide('slow'); d.hide('slow');
} }
else { else {
d.show({/literal}"{translate label="ID_SLOW"}"{literal}); d.show('slow');
} }
} }
@@ -153,7 +153,7 @@
{/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() { {/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() {
var sendMail = document.getElementById('chkSendMail').checked; var sendMail = document.getElementById('chkSendMail').checked;
sendMail = (sendMail == true) ? '1' : '0'; sendMail = (sendMail == true) ? '1' : '0';
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal}); $(this).dialog( "close" );
$.post( $.post(
'../appProxy/postNote', '../appProxy/postNote',
{appUid : appUid, {appUid : appUid,
@@ -165,8 +165,8 @@
); );
//redirect('home/startCase?id='+id); //redirect('home/startCase?id='+id);
}, },
Cancel: function() { {/literal}"{translate label="ID_CANCEL"}"{literal}: function() {
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal}); $(this).dialog("close");
} }
} }
}); });
@@ -226,7 +226,7 @@
$('#n_'+appUid).show('slow'); $('#n_'+appUid).show('slow');
} }
d = $('#m_'+appUid); d = $('#m_'+appUid);
d.show({/literal}"{translate label="ID_SLOW"}"{literal}); d.show('slow');
} }
); );
return true; return true;
@@ -245,7 +245,7 @@
$('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} ); $('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} );
} }
else { else {
$('#loadmorebutton').replaceWith({/literal}"<center> {translate label="ID_NO_MORE_APPLICATIONS"}</center>"{literal}); $('#loadmorebutton').replaceWith(<center>{/literal}"{translate label="ID_NO_MORE_APPLICATIONS"}"{literal}</center>);
} }
} }
}); });

View File

@@ -49,12 +49,12 @@
modal: true, modal: true,
buttons: { buttons: {
{/literal}"{translate label="ID_CASE_START"}"{literal}: function() { {/literal}"{translate label="ID_CASE_START"}"{literal}: function() {
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal}); $( this ).dialog( "close" );
redirect('home/startCase?id='+id); redirect('home/startCase?id='+id);
}, },
Cancel: function() { {/literal}"{translate label="ID_CANCEL"}"{literal}: function() {
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal}); $( this ).dialog( "close" );
} }
} }
}); });

View File

@@ -68,7 +68,6 @@
</ul> </ul>
<a id="signout-link" href="home/login" title="{translate label="ID_SIGN_OUT"}"><img src="/images/simplified/logout-grey.png" /></a> <a id="signout-link" href="home/login" title="{translate label="ID_SIGN_OUT"}"><img src="/images/simplified/logout-grey.png" /></a>
<!-- end topbar --> <!-- end topbar -->
</div> </div>

View File

@@ -58,7 +58,7 @@
<tr> <tr>
<td class='FormButton' colspan="2" align=""> <td class='FormButton' colspan="2" align="">
<br/> <br/>
<input class='module_app_button___gray ' name="form[BSUBMIT]" type='submit' value="Login" /> <input class='module_app_button___gray ' name="form[BSUBMIT]" type='submit' value="{translate label="ID_LOGIN"}" />
</td> </td>
</tr> </tr>
</table> </table>

View File

@@ -87,7 +87,7 @@
</tr> </tr>
<tr> <tr>
<td align="center"> <td align="center">
<label class="submit_btn"><input type="submit" value="Login" tabindex="3" name="commit" /></label> <label class="submit_btn"><input type="submit" value="{translate label="ID_LOGIN"}" tabindex="3" name="commit" /></label>
</td> </td>
</tr> </tr>
</table> </table>