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-16 20:48:16 +00:00
parent 7f1f73ae06
commit 870afbac27
13 changed files with 121 additions and 127 deletions

View File

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

View File

@@ -52,7 +52,7 @@ class Users extends BaseUsers
if ($this->validate()) {
$result = $this->save();
} else {
$e = new Exception( "Failed Validation in class " . get_class( $this ) . "." );
$e = new Exception( G::LoadTranslation("ID_FAILED_VALIDATION_CLASS") . get_class( $this ) . "." );
$e->aValidationFailures = $this->getValidationFailures();
throw ($e);
}
@@ -88,12 +88,13 @@ class Users extends BaseUsers
$this->setNew( false );
return $aFields;
} else {
throw (new Exception( "The row '" . $UsrUid . "' in table USER doesn't exist!" ));
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST")));
}
} catch (PropelException $e) {
//capture invalid birthday date and replace by null
$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->save();
return $this->load( $UsrUid );
@@ -116,7 +117,7 @@ class Users extends BaseUsers
return $result;
} else {
// return $result;
throw (new Exception( "The row '" . $UsrUid . "' in table USER doesn't exist!" ));
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST")));
}
} catch (Exception $oError) {
throw ($oError);
@@ -152,7 +153,7 @@ class Users extends BaseUsers
return $result;
} else {
//return $result;
throw (new Exception( "The row '" . $UsrUid . "' in table USER doesn't exist!" ));
throw (new Exception( G::LoadTranslation("ID_THE_ROW") ." '" . $UsrUid . "' ". G::LoadTranslation("ID_TABLE_USER_DOESNT_EXIST")));
}
} catch (Exception $oError) {
throw ($oError);
@@ -172,7 +173,7 @@ class Users extends BaseUsers
return $result;
} else {
$con->rollback();
throw (new Exception( "Failed Validation in class " . get_class( $this ) . "." ));
throw (new Exception(G::LoadTranslation("ID_FAILED_VALIDATION_IN_CLASS") . get_class( $this ) . "." ));
}
} catch (Exception $e) {
$con->rollback();

View File

@@ -100,7 +100,7 @@ class AppProxy extends HttpProxyController
}
if (! isset( $appUid )) {
throw new Exception( 'Can\'t resolve the Apllication ID for this request.' );
throw new Exception(G::LoadTranslation("ID_CANT_RESOLVE_APLICATION"));
}
$usrUid = (isset( $_SESSION['USER_LOGGED'] )) ? $_SESSION['USER_LOGGED'] : "";

View File

@@ -190,13 +190,13 @@ class Home extends Controller
// setting main list title
switch ($httpData->t) {
case 'todo':
$title = 'My Inbox';
$title = G::LoadTranslation("ID_MY_INBOX");
break;
case 'draft':
$title = 'My Drafts';
$title = G::LoadTranslation("ID_MY_DRAFTS");
break;
case 'unassigned':
$title = 'Unassigned Inbox';
$title = G::LoadTranslation("ID_UNASSIGNED_INBOX");
break;
default:
$title = ucwords( $httpData->t );

View File

@@ -54,7 +54,7 @@
d.hide('slow');
}
else {
d.show('slow');
d.show({/literal}"{translate label="ID_SLOW"}"{literal});
}
}
@@ -81,10 +81,10 @@
height:192,
modal: true,
buttons: {
"Add Note": function() {
{/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() {
var sendMail = document.getElementById('chkSendMail').checked;
sendMail = (sendMail == true) ? '1' : '0';
$(this).dialog("close");
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
$.post(
'../appProxy/postNote',
{appUid : appUid,
@@ -97,18 +97,15 @@
//redirect('home/startCase?id='+id);
},
Cancel: function() {
$(this).dialog( "close" );
//$(this).dialog( "close" );
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
}
}
});
}
//updateNt(appUid);
}
);
}
function updateNt(appUid)
@@ -130,14 +127,14 @@
'</td><td>' +
'<h3>'+r.USR_FIRSTNAME+' '+r.USR_LASTNAME+' ('+r.USR_USERNAME+')</h3>' +
'<p><pre>'+r.NOTE_CONTENT+'</pre>' +
'<div class="appMessageDate">Posted at '+r.NOTE_DATE+'</div>' +
'<div class="appMessageDate">{translate label="ID_POSTED_AT"} '+r.NOTE_DATE+'</div>' +
'</td></tr></table></div>';
content.append(s);
$('#n_'+appUid).show('slow');
}
d = $('#m_'+appUid);
d.show('slow');
d.show({/literal}"{translate label="ID_SLOW"}"{literal});
}
);
return true;
@@ -153,10 +150,10 @@
if(jQuery.trim(html) != ''){
$("#commentlist").append(html);
$('#loadmorebutton').html('Load More');
$('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} );
}
else {
$('#loadmorebutton').replaceWith('<center>No more applications to show.</center>');
$('#loadmorebutton').replaceWith({/literal}"<center> {translate label="ID_NO_MORE_APPLICATIONS"}</center>"{literal});
}
}
});
@@ -184,19 +181,19 @@
{if $cases_count > $appListLimit}
<center>
<a href="#" style="color:#1F98C7; font-size:12px; font-weight:bold;" id="loadmorebutton">Load More</a>
<a href="#" style="color:#1F98C7; font-size:12px; font-weight:bold;" id="loadmorebutton">{translate label="ID_LOAD_MORE"}</a>
</center>
{/if}
</div>
</center>
<div id="dialog-add-note" title="Case Note" style="display:none">
<div id="dialog-add-note" title="{translate label="ID_CASE_NOTE"}" style="display:none">
<p><!-- <span class="ui-icon ui-icon-document" style="float:left; margin:0 7px 20px 0;"></span> -->
<span id="startAppTitle"/>
<textarea id="note_text" rows="2" cols="22"></textarea>
<div class="x-form-check-wrap" id="ext-gen160" style="font-size:11px">
<input type="checkbox" name="chkSendMail" id="chkSendMail" autocomplete="off" class=" x-form-checkbox x-form-field" checked="">
<label class="x-form-cb-label" for="chkSendMail" id="ext-gen161">Send email (Case Participants)</label>
<label class="x-form-cb-label" for="chkSendMail" id="ext-gen161">{translate label="ID_SEND_EMAIL_CASE_PARTICIPANTS"}</label>
</div>
</p>
</div>

View File

@@ -121,7 +121,7 @@
d.hide('slow');
}
else {
d.show('slow');
d.show({/literal}"{translate label="ID_SLOW"}"{literal});
}
}
@@ -150,10 +150,10 @@
height:192,
modal: true,
buttons: {
"Add Note": function() {
{/literal}"{translate label="ID_ADD_NOTE"}"{literal}: function() {
var sendMail = document.getElementById('chkSendMail').checked;
sendMail = (sendMail == true) ? '1' : '0';
$(this).dialog("close");
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
$.post(
'../appProxy/postNote',
{appUid : appUid,
@@ -166,7 +166,7 @@
//redirect('home/startCase?id='+id);
},
Cancel: function() {
$(this).dialog( "close" );
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
}
}
});
@@ -219,14 +219,14 @@
'</td><td>' +
'<h3>'+r.USR_FIRSTNAME+' '+r.USR_LASTNAME+' ('+r.USR_USERNAME+')</h3>' +
'<p><pre>'+r.NOTE_CONTENT+'</pre>' +
'<div class="appMessageDate">Posted at '+r.NOTE_DATE+'</div>' +
'<div class="appMessageDate">{translate label="ID_POSTED_AT"} '+r.NOTE_DATE+'</div>' +
'</td></tr></table></div>';
content.append(s);
$('#n_'+appUid).show('slow');
}
d = $('#m_'+appUid);
d.show('slow');
d.show({/literal}"{translate label="ID_SLOW"}"{literal});
}
);
return true;
@@ -242,10 +242,10 @@
if(jQuery.trim(html) != ''){
$("#commentlist").append(html);
$('#loadmorebutton').html('Load More');
$('#loadmorebutton').html( {/literal}"{translate label="ID_LOAD_MORE"}"{literal} );
}
else {
$('#loadmorebutton').replaceWith('<center>No more applications to show.</center>');
$('#loadmorebutton').replaceWith({/literal}"<center> {translate label="ID_NO_MORE_APPLICATIONS"}</center>"{literal});
}
}
});
@@ -354,19 +354,19 @@
{if $cases_count > $appListLimit}
<center>
<a href="#" style="color:#1F98C7; font-size:12px; font-weight:bold;" id="loadmorebutton">Load More</a>
<a href="#" style="color:#1F98C7; font-size:12px; font-weight:bold;" id="loadmorebutton">{translate label="ID_LOAD_MORE"}</a>
</center>
{/if}
</div>
</center>
<div id="dialog-add-note" title="Case Note" style="display:none">
<div id="dialog-add-note" title="{translate label="ID_CASE_NOTE"}" style="display:none">
<p><!-- <span class="ui-icon ui-icon-document" style="float:left; margin:0 7px 20px 0;"></span> -->
<span id="startAppTitle"/>
<textarea id="note_text" rows="2" cols="22"></textarea>
<div class="x-form-check-wrap" id="ext-gen160" style="font-size:11px">
<input type="checkbox" name="chkSendMail" id="chkSendMail" autocomplete="off" class=" x-form-checkbox x-form-field" checked="">
<label class="x-form-cb-label" for="chkSendMail" id="ext-gen161">Send email (Case Participants)</label>
<label class="x-form-cb-label" for="chkSendMail" id="ext-gen161">{translate label="ID_SEND_EMAIL_CASE_PARTICIPANTS"}</label>
</div>
</p>
</div>

View File

@@ -38,7 +38,7 @@
<td>
<h3>{$NOTE.USR_FIRSTNAME} {$NOTE.USR_LASTNAME} ({$NOTE.USR_USERNAME})</h3>
<p><pre>{$NOTE.NOTE_CONTENT}</pre>
<div class="appMessageDate">Posted at {$NOTE.NOTE_DATE}</div>
<div class="appMessageDate">{translate label="ID_POSTED_AT"} {$NOTE.NOTE_DATE}</div>
</td>
</tr>
</table>

View File

@@ -48,12 +48,13 @@
height:160,
modal: true,
buttons: {
"Start Case": function() {
$( this ).dialog( "close" );
{/literal}"{translate label="ID_CASE_START"}"{literal}: function() {
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
redirect('home/startCase?id='+id);
},
Cancel: function() {
$( this ).dialog( "close" );
$(this).dialog({/literal}"{translate label="ID_CLOSE"}"{literal});
}
}
});
@@ -135,9 +136,9 @@
<!--<li><a href="#" accesskey="s" id="settings_link">Settings</a></li>
<li><a href="#" accesskey="?" id="help_link">Help</a></li>-->
{if $userUxType eq 'SWITCHABLE'}
<li><a href="{$switchLink}" accesskey="?" id="help_link">Switch Interface</a></li>
<li><a href="{$switchLink}" accesskey="?" id="help_link">{translate label="ID_SWITCH_INTERFACE"}</a></li>
{/if}
<li><a href="home/login" accesskey="l" id="sign_out_link">Sign out</a></li>
<li><a href="home/login" accesskey="l" id="sign_out_link">{translate label="ID_SIGN_OUT"}</a></li>
</ul>
</li>
</ul>
@@ -152,7 +153,7 @@
<div id="dialog-confirm" title="Confirm" style="display:none">
<p>
Start a new case for:<br/>
{translate label="ID_START_A_NEW_CASE_FOR"}<br/>
<span class="ui-icon ui-icon-document" style="float:left; margin:0 7px 20px 0;"></span><span id="startAppTitle"/></p>
</div>

View File

@@ -67,7 +67,7 @@
{/if}
</ul>
<a id="signout-link" href="home/login" title="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 -->
</div>
@@ -76,7 +76,7 @@
<div id="dialog-confirm" title="Confirm" style="display:none">
<p>
Start a new case for:<br/>
{translate label="ID_START_A_NEW_CASE_FOR"}<br/>
<span class="ui-icon ui-icon-document" style="float:left; margin:0 7px 20px 0;"></span><span id="startAppTitle"/></p>
</div>

View File

@@ -37,16 +37,16 @@
<td valign='top'>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class='FormTitle' colspan="2" align=""><span id='form[TITLE]' name='form[TITLE]' >Login</span></td>
<td class='FormTitle' colspan="2" align=""><span id='form[TITLE]' name='form[TITLE]' >{translate label="ID_LOGIN"}</span></td>
</tr>
<tr>
<td class='FormLabel' width="40%">User</td>
<td class='FormLabel' width="40%">{translate label="ID_USER"}</td>
<td class='FormFieldContent' width='240' >
<input class="module_app_input___gray" name="form[USR_USERNAME]" type="text" size="30" maxlength="50" value=""/>
</td>
</tr>
<tr>
<td class='FormLabel' width="40%">Password</td>
<td class='FormLabel' width="40%">{translate label="ID_PASSWORD"}</td>
<td class='FormFieldContent' width='240' >
<input class="module_app_input___gray" name="form[USR_PASSWORD]" type ="password" size="31" maxlength="50" value=""/>
</td>
@@ -73,5 +73,3 @@
</body>
</html>

View File

@@ -64,13 +64,13 @@
<center>
<form method="post" action="../login/authentication">
<div id="login" class="login_form">
<h1>Sign In</h1>
<h1>{translate label="ID_SIGN_IN"}</h1>
<div class="login_message">{$msg}</div>
<table border=0 width="100%" cellspacing="0" cellpadding="0" class="formbody">
<tr>
<td><label for="login_field">Username</label></td>
<td><label for="login_field">{translate label="ID_USERNAME"}</label></td>
</tr>
<tr>
<td>
@@ -78,7 +78,7 @@
</td>
</tr>
<tr>
<td><label for="password">Password</label></td>
<td><label for="password">{translate label="ID_PASSWORD"}</label></td>
</tr>
<tr>
<td>
@@ -97,6 +97,3 @@
</body>
</html>

View File

@@ -27,12 +27,12 @@
<center>
<div class="uxs" style="text-align:left">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td class="Title">Information</td></tr>
<tr><td class="Title">{translate label="ID_INFORMATION"}</td></tr>
</table>
<h2></h2>
<h3>You are now finished. Please refresh your view to see if you have any more work pending.</h3>
<h3>{translate label="ID_FINISHED_REFRESH_VIEW_SEE_SLOPE_WORK"}</h3>
<center>
<button id="btnRefresh">Refresh view</button>
<button id="btnRefresh">{translate label="ID_REFRESH_VIEW"}</button>
</center>
</div>
</center>