BUG 8932 Untranslatable strings Information process Information... SOLVED
- It was found that had several labels that are hardcoded. - Changed hardcoded labels reusing some existing labels and some things were created some labels. - labels created: ID_INIT_DATE(Init Date), ID_OVERWRITE(Overwrite),ID_BROWSE(Browse),ID_UPLOADING_TRANSLATION_FILE(Uploading the translation file...), ID_EVALUATION_RESULT ([Success] Evaluation result) - Labels reused: ID_TITLE, ID_DESCRIPTION, ID_DUE_DATE, ID_FINISH_DATE, ID_SEND, ID_UPLOADED_DOCUMENTS, ID_GENERATED_DOCUMENTS, ID_FILE, ID_FIRST_NAME, ID_LAST_NAME,ID_ACTIVE,ID_INACTIVE, ID_MSJ_REPORSTO - image for Starting a case ... it is labeled translation.ID_TITLE_START_CASE which works only if you change the language to es-ES -
This commit is contained in:
@@ -3,6 +3,12 @@ PMExtJSCommon = function() {
|
|||||||
|
|
||||||
this.confirm = function(title, msg, fnYes, fnNo)
|
this.confirm = function(title, msg, fnYes, fnNo)
|
||||||
{
|
{
|
||||||
|
if (typeof(_) != 'undefined') {
|
||||||
|
Ext.MessageBox.buttonText = {
|
||||||
|
yes : _('ID_YES'),
|
||||||
|
no : _('ID_NO')
|
||||||
|
};
|
||||||
|
}
|
||||||
Ext.MessageBox.confirm(title, msg, function(btn, text){
|
Ext.MessageBox.confirm(title, msg, function(btn, text){
|
||||||
if ( btn == 'yes' )
|
if ( btn == 'yes' )
|
||||||
setTimeout(fnYes, 0)
|
setTimeout(fnYes, 0)
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ class Derivation
|
|||||||
|
|
||||||
// if there is no report_to user info, throw an exception indicating this
|
// if there is no report_to user info, throw an exception indicating this
|
||||||
if (!isset($userFields) || $userFields['USR_UID'] == '') {
|
if (!isset($userFields) || $userFields['USR_UID'] == '') {
|
||||||
throw ( new Exception("The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
throw ( new Exception(G::LoadTranslation('ID_MSJ_REPORSTO')));// "The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ var Conditional = function(DYN_UID){
|
|||||||
oResultDiv.style.display = 'block';
|
oResultDiv.style.display = 'block';
|
||||||
oResultDiv.style.backgroundColor = '#BFCCC5';
|
oResultDiv.style.backgroundColor = '#BFCCC5';
|
||||||
oResultDiv.style.color = '#000000';
|
oResultDiv.style.color = '#000000';
|
||||||
oResultDiv.innerHTML = '[Success] Evaluation result: '+bResult;
|
oResultDiv.innerHTML = _('ID_EVALUATION_RESULT')+": "+bResult;
|
||||||
fade('ResultMessageTD', 'inOut');
|
fade('ResultMessageTD', 'inOut');
|
||||||
var o = new input(oResultDiv);
|
var o = new input(oResultDiv);
|
||||||
var oF = new input(getField('FCD_CONDITION'));
|
var oF = new input(getField('FCD_CONDITION'));
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ $labels = G::getTranslations(Array(
|
|||||||
'ID_LAN_PREDETERMINED', 'ID_LANG_INSTALL_UPDATE', 'ID_LAN_LANGUAGE', 'ID_LAN_COUNTRY', 'ID_LAN_UPDATE_DATE',
|
'ID_LAN_PREDETERMINED', 'ID_LANG_INSTALL_UPDATE', 'ID_LAN_LANGUAGE', 'ID_LAN_COUNTRY', 'ID_LAN_UPDATE_DATE',
|
||||||
'ID_LAN_REV_DATE', 'ID_LAN_FILE', 'ID_LAN_REV_DATE', 'ID_LAN_VERSION', 'ID_LAN_GRID_TITLE', 'ID_LAN_UPLOAD_TITLE',
|
'ID_LAN_REV_DATE', 'ID_LAN_FILE', 'ID_LAN_REV_DATE', 'ID_LAN_VERSION', 'ID_LAN_GRID_TITLE', 'ID_LAN_UPLOAD_TITLE',
|
||||||
'ID_LAN_FILE_WATER_LABEL', 'ID_EXPORT', 'ID_UPLOAD', 'ID_CANCEL', 'ID_DELETE_LANGUAGE', 'ID_DELETE_LANGUAGE_CONFIRM',
|
'ID_LAN_FILE_WATER_LABEL', 'ID_EXPORT', 'ID_UPLOAD', 'ID_CANCEL', 'ID_DELETE_LANGUAGE', 'ID_DELETE_LANGUAGE_CONFIRM',
|
||||||
'ID_DELETE_LANGUAGE_WARNING', 'ID_ACTIONS', 'ID_LAN_LOCALE', 'ID_LAN_TRANSLATOR', 'ID_LAN_NUM_RECORDS'
|
'ID_DELETE_LANGUAGE_WARNING', 'ID_ACTIONS', 'ID_LAN_LOCALE', 'ID_LAN_TRANSLATOR', 'ID_LAN_NUM_RECORDS', 'ID_UPLOADING_TRANSLATION_FILE'
|
||||||
));
|
));
|
||||||
|
|
||||||
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
|
|||||||
' ',
|
' ',
|
||||||
{
|
{
|
||||||
id: 'sendBtn',
|
id: 'sendBtn',
|
||||||
text: 'Send',
|
text: _('ID_SEND'),
|
||||||
cls: 'x-toolbar1',
|
cls: 'x-toolbar1',
|
||||||
handler: sendNote
|
handler: sendNote
|
||||||
}, ' ',
|
}, ' ',
|
||||||
@@ -393,7 +393,7 @@ var openSummaryWindow = function(appUid, delIndex)
|
|||||||
onload: ''
|
onload: ''
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
tabs.push({title: Ext.util.Format.capitalize('Uploaded Documents'), bodyCfg: {
|
tabs.push({title: Ext.util.Format.capitalize(_('ID_UPLOADED_DOCUMENTS')), bodyCfg: {
|
||||||
tag: 'iframe',
|
tag: 'iframe',
|
||||||
id: 'summaryIFrame',
|
id: 'summaryIFrame',
|
||||||
src: '../cases/ajaxListener?action=uploadedDocumentsSummary',
|
src: '../cases/ajaxListener?action=uploadedDocumentsSummary',
|
||||||
@@ -401,7 +401,7 @@ var openSummaryWindow = function(appUid, delIndex)
|
|||||||
onload: ''
|
onload: ''
|
||||||
}});
|
}});
|
||||||
|
|
||||||
tabs.push({title: Ext.util.Format.capitalize('Generated Documents'), bodyCfg: {
|
tabs.push({title: Ext.util.Format.capitalize(_('ID_GENERATED_DOCUMENTS')), bodyCfg: {
|
||||||
tag: 'iframe',
|
tag: 'iframe',
|
||||||
id: 'summaryIFrame',
|
id: 'summaryIFrame',
|
||||||
src: '../cases/ajaxListener?action=generatedDocumentsSummary',
|
src: '../cases/ajaxListener?action=generatedDocumentsSummary',
|
||||||
|
|||||||
@@ -334,11 +334,11 @@ Ext.onReady(function(){
|
|||||||
style: 'font-weight: bold'
|
style: 'font-weight: bold'
|
||||||
},
|
},
|
||||||
items : [
|
items : [
|
||||||
{fieldLabel: 'Title', text: data.PRO_TITLE},
|
{fieldLabel: _('ID_TITLE'), text: data.PRO_TITLE},
|
||||||
{fieldLabel: 'Description', text: data.PRO_DESCRIPTION},
|
{fieldLabel: _('ID_DESCRIPTION'), text: data.PRO_DESCRIPTION},
|
||||||
{fieldLabel: 'Category', text: data.PRO_CATEGORY_LABEL},
|
{fieldLabel: _('ID_CATEGORY'), text: data.PRO_CATEGORY_LABEL},
|
||||||
{fieldLabel: 'Author', text: data.PRO_AUTHOR},
|
{fieldLabel: _('ID_AUTHOR'), text: data.PRO_AUTHOR},
|
||||||
{fieldLabel: 'Create date', text: data.PRO_CREATE_DATE}
|
{fieldLabel: _('ID_CREATE_DATE'), text: data.PRO_CREATE_DATE}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -392,12 +392,12 @@ Ext.onReady(function(){
|
|||||||
style: 'font-weight: bold'
|
style: 'font-weight: bold'
|
||||||
},
|
},
|
||||||
items : [
|
items : [
|
||||||
{fieldLabel: 'Title', text: data.TAS_TITLE},
|
{fieldLabel: _('ID_TITLE'), text: data.TAS_TITLE},
|
||||||
{fieldLabel: 'Description', text: data.TAS_DESCRIPTION},
|
{fieldLabel: _('ID_DESCRIPTION'), text: data.TAS_DESCRIPTION},
|
||||||
{fieldLabel: 'Init Date', text: data.INIT_DATE},
|
{fieldLabel: _('ID_INIT_DATE'), text: data.INIT_DATE},
|
||||||
{fieldLabel: 'Due Date', text: data.DUE_DATE},
|
{fieldLabel: _('ID_DUE_DATE'), text: data.DUE_DATE},
|
||||||
{fieldLabel: 'Finish Date', text: data.FINISH},
|
{fieldLabel: _('ID_FINISH_DATE'), text: data.FINISH},
|
||||||
{fieldLabel: 'Duration', text: data.DURATION}
|
{fieldLabel: _('ID_TASK_DURATION'), text: data.DURATION}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -878,7 +878,7 @@ Ext.onReady(function(){
|
|||||||
var DYN_UID = historyDynaformGridPreviewGlobal.DYN_UID;
|
var DYN_UID = historyDynaformGridPreviewGlobal.DYN_UID;
|
||||||
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=historyDynaformGridPreview';
|
var uri = 'casesHistoryDynaformPage_Ajax?actionAjax=historyDynaformGridPreview';
|
||||||
uri += '&DYN_UID='+DYN_UID;
|
uri += '&DYN_UID='+DYN_UID;
|
||||||
menuSelectedTitle[name] = tabTitle;
|
menuSelectedTitle[name] = tabTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name == "uploadDocumentGridDownload") {
|
if (name == "uploadDocumentGridDownload") {
|
||||||
@@ -941,8 +941,8 @@ Ext.onReady(function(){
|
|||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ id:'USR_UID', dataIndex: 'USR_UID', hidden:true, hideable:false},
|
{ id:'USR_UID', dataIndex: 'USR_UID', hidden:true, hideable:false},
|
||||||
{ header : "First Name", dataIndex : 'USR_FIRSTNAME', sortable : true, width: 130, align:'center'},
|
{ header : _('ID_FIRST_NAME'), dataIndex : 'USR_FIRSTNAME', sortable : true, width: 130, align:'center'},
|
||||||
{ header : "Last Name", dataIndex : 'USR_LASTNAME', sortable : true,width: 130, align:'center' }
|
{ header : _('ID_LAST_NAME'), dataIndex : 'USR_LASTNAME', sortable : true,width: 130, align:'center' }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ Ext.onReady(function(){
|
|||||||
if(uploader.getForm().isValid()){
|
if(uploader.getForm().isValid()){
|
||||||
uploader.getForm().submit({
|
uploader.getForm().submit({
|
||||||
url: 'languages_Import',
|
url: 'languages_Import',
|
||||||
waitMsg: 'Uploading the translation file...',
|
waitMsg: _('ID_UPLOADING_TRANSLATION_FILE'),
|
||||||
success: function(o, resp){
|
success: function(o, resp){
|
||||||
w.close();
|
w.close();
|
||||||
infoGrid.store.reload();
|
infoGrid.store.reload();
|
||||||
|
|||||||
@@ -558,17 +558,18 @@ importSkin = function(){
|
|||||||
//},
|
//},
|
||||||
{
|
{
|
||||||
xtype:"fileuploadfield",
|
xtype:"fileuploadfield",
|
||||||
fieldLabel:"File ",
|
fieldLabel: _('ID_FILE'),
|
||||||
id:"uploadedFile",
|
id: "uploadedFile",
|
||||||
name:"uploadedFile",
|
name: "uploadedFile",
|
||||||
width:190,
|
width: 190,
|
||||||
buttonOnly:false
|
buttonText: _('ID_BROWSE'),
|
||||||
|
buttonOnly: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype:"checkbox",
|
xtype: "checkbox",
|
||||||
fieldLabel:"Overwrite",
|
fieldLabel: _('ID_OVERWRITE'),
|
||||||
name:"overwrite_files",
|
name: "overwrite_files",
|
||||||
checked:true
|
checked: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
buttons:[
|
buttons:[
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<en>Last run time</en>
|
<en>Last run time</en>
|
||||||
</SCH_LAST_RUN_TIME>
|
</SCH_LAST_RUN_TIME>
|
||||||
|
|
||||||
<SCH_STATUS_LNK type="link" align="left" titlealign="left" colWidth="50" value="@#SCH_STATE" link="cases_Scheduler_ChangeStatus?SCH_UID=@#SCH_UID">
|
<SCH_STATUS_LNK type="link" align="left" titlealign="left" colWidth="50" value="@G::LoadTranslation(ID_@#SCH_STATE)" link="cases_Scheduler_ChangeStatus?SCH_UID=@#SCH_UID">
|
||||||
<en/>
|
<en/>
|
||||||
</SCH_STATUS_LNK>
|
</SCH_STATUS_LNK>
|
||||||
|
|
||||||
@@ -33,5 +33,4 @@
|
|||||||
<en/>
|
<en/>
|
||||||
</DELETE>
|
</DELETE>
|
||||||
|
|
||||||
|
|
||||||
</dynaForm>
|
</dynaForm>
|
||||||
Reference in New Issue
Block a user