TRT перевод
This commit is contained in:
@ -46,17 +46,17 @@ class SRec
|
||||
|
||||
applyReq(req,fn,node,xmldoc)
|
||||
{
|
||||
//alert2(_('Alert'),getXMLNodeSerialisation(node));
|
||||
//alert2(trt('Alert'),getXMLNodeSerialisation(node));
|
||||
this.hideProgressBar();
|
||||
|
||||
this.xmldoc=node.ownerDocument; //xmldoc;
|
||||
if (fn==-1) //Information menu
|
||||
{
|
||||
alert2(_('Alert'),findFirstNode(node,'#cdata-section').nodeValue);
|
||||
alert2(trt('Alert'),findFirstNode(node,'#cdata-section').nodeValue);
|
||||
}else
|
||||
if (fn==0)
|
||||
{
|
||||
//alert2(_('Alert'),getXMLNodeSerialisation(node));
|
||||
//alert2(trt('Alert'),getXMLNodeSerialisation(node));
|
||||
this.setMetadata(node);
|
||||
this.updateSize();
|
||||
}else
|
||||
@ -81,10 +81,10 @@ class SRec
|
||||
if(this.rwin!=null)
|
||||
{
|
||||
this.rwin.hideProgressBar();
|
||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><a href="'+findFirstNode(node,'#cdata-section').nodeValue+'">'+_('Download_report')+': "'+this.win.getCaption().innerHTML+'".</a></td></tr></table>');
|
||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><a href="'+findFirstNode(node,'#cdata-section').nodeValue+'">'+trt('Download_report')+': "'+this.win.getCaption().innerHTML+'".</a></td></tr></table>');
|
||||
}
|
||||
}else
|
||||
alert2(_('Alert'),"Unknown function! fn=\""+fn+"\"" );
|
||||
alert2(trt('Alert'),"Unknown function! fn=\""+fn+"\"" );
|
||||
}
|
||||
|
||||
//Edit the GUI filter from the xml string.
|
||||
@ -150,11 +150,11 @@ class SRec
|
||||
<caption></caption><thead></thead><tbody></tbody>\
|
||||
</table>\
|
||||
</td></tr><tr><td>\
|
||||
<table style="width:100%;"><tr><td><img src="../resources/metadata/dbms/images/rplus.png" alt="add" id="SRec_Add_'+this.uid+'" title="'+_('Add_record')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<td><img src="../resources/metadata/dbms/images/rdel.png" alt="del" id="SRec_Del_'+this.uid+'" title="'+_('Delete_record')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<td><img src="../resources/metadata/dbms/images/excel.png" alt="excel" id="SRec_Exc_'+this.uid+'" title="'+_('Export_to_Excel')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<table style="width:100%;"><tr><td><img src="../resources/metadata/dbms/images/rplus.png" alt="add" id="SRec_Add_'+this.uid+'" title="'+trt('Add_record')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<td><img src="../resources/metadata/dbms/images/rdel.png" alt="del" id="SRec_Del_'+this.uid+'" title="'+trt('Delete_record')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<td><img src="../resources/metadata/dbms/images/excel.png" alt="excel" id="SRec_Exc_'+this.uid+'" title="'+trt('Export_to_Excel')+'" border="0" style="cursor: pointer;"/></td>\
|
||||
<td style="width: 99%;"> </td>\
|
||||
<td><img src="../resources/metadata/dbms/images/refresh.png" alt="refresh" id="SRec_Rfr_'+this.uid+'" title="'+_('Update')+'" border="0" style="cursor: pointer;"/></td></tr>\
|
||||
<td><img src="../resources/metadata/dbms/images/refresh.png" alt="refresh" id="SRec_Rfr_'+this.uid+'" title="'+trt('Update')+'" border="0" style="cursor: pointer;"/></td></tr>\
|
||||
</table>\
|
||||
</td></tr><tr><td id="tblContainer_'+this.uid+'" style="vertical-align:top; overflow:hidden; width:100%; height:100%; text-align:center;">\
|
||||
<div id="tblSContainer_'+this.uid+'" style="position: absolute; overflow:scroll; width: 400px; height: 400px;">\
|
||||
@ -234,7 +234,7 @@ class SRec
|
||||
//Function to fill the drop-down lists (here it is necessary to ensure that everywhere there is a "var" in front of the variables).
|
||||
setDataSelect(node)
|
||||
{
|
||||
//alert2(_('Alert'),"setDataSelect = " + getXMLNodeSerialisation(node));
|
||||
//alert2(trt('Alert'),"setDataSelect = " + getXMLNodeSerialisation(node));
|
||||
|
||||
let nodeType,prop_id,prop,option,nodeProp,id,value,cdataNode;
|
||||
nodeType=findFirstNode(node, 'type');
|
||||
@ -247,7 +247,7 @@ class SRec
|
||||
let nodeCur=findNodeOnAttribute(nodeFilter, 'column', 'n', prop_id);
|
||||
if(nodeCur!=null) selector=nodeCur.getAttribute("selector");
|
||||
|
||||
//alert2(_('Alert'),"nodeCur = " + getXMLNodeSerialisation(nodeCur));
|
||||
//alert2(trt('Alert'),"nodeCur = " + getXMLNodeSerialisation(nodeCur));
|
||||
|
||||
/*nodeCur=nodeFilter.firstChild
|
||||
while(nodeCur!=null)
|
||||
@ -324,7 +324,7 @@ class SRec
|
||||
}
|
||||
if(count==0)
|
||||
{
|
||||
alert2(_('Alert'),_("No_results_were_found_for_your_search"));
|
||||
alert2(trt('Alert'),trt("No_results_were_found_for_your_search"));
|
||||
}else
|
||||
if(count==1) //fill without window
|
||||
{
|
||||
@ -361,7 +361,7 @@ class SRec
|
||||
win.BuildGUI(pageX-10,pageY-10);
|
||||
win.setHeight(400);
|
||||
win.setContent(htmlString);
|
||||
win.setCaption(document.createTextNode(_('Selection')));
|
||||
win.setCaption(document.createTextNode(trt('Selection')));
|
||||
win.setParent(this.win);
|
||||
//win.obj=this
|
||||
}
|
||||
@ -401,7 +401,7 @@ class SRec
|
||||
}
|
||||
}else
|
||||
{
|
||||
alert2(_('Alert'),'Filter "'+prop_id+'" not find!');
|
||||
alert2(trt('Alert'),'Filter "'+prop_id+'" not find!');
|
||||
}
|
||||
}
|
||||
|
||||
@ -435,7 +435,7 @@ class SRec
|
||||
columnNode = columnNode.nextSibling;
|
||||
}
|
||||
}
|
||||
//alert2(_('Alert'),getXMLNodeSerialisation(this.nodeMetadata));
|
||||
//alert2(trt('Alert'),getXMLNodeSerialisation(this.nodeMetadata));
|
||||
}
|
||||
|
||||
/** Function to send filter data to the server
|
||||
@ -476,7 +476,7 @@ class SRec
|
||||
xs+='</filter></objects-list></type>\n';
|
||||
xs+='</metadata>';
|
||||
|
||||
//alert2(_('Alert'),xs);
|
||||
//alert2(trt('Alert'),xs);
|
||||
|
||||
if(this.request.callServer(ScriptName,xs))
|
||||
{
|
||||
@ -494,7 +494,7 @@ class SRec
|
||||
let td,tr,td1,td2;
|
||||
let nodeFilter=null;
|
||||
let tablefilter=document.getElementById('idfilter'+this.uid);
|
||||
if (tablefilter.tBodies==null) alert2(_('Alert'),'tablefilter=null');
|
||||
if (tablefilter.tBodies==null) alert2(trt('Alert'),'tablefilter=null');
|
||||
let nodeType=findFirstNode(node, "type");
|
||||
this.f_pI=nodeType.getAttribute("ins");//access rights
|
||||
this.f_pU=nodeType.getAttribute("upd");
|
||||
@ -679,12 +679,12 @@ class SRec
|
||||
select.appendChild( option );
|
||||
option=document.createElement("option");
|
||||
option.setAttribute("value","1");
|
||||
option.appendChild(document.createTextNode(_('Yes')));
|
||||
option.appendChild(document.createTextNode(trt('Yes')));
|
||||
if(value=="1") option.selected=true;
|
||||
select.appendChild( option );
|
||||
option=document.createElement("option");
|
||||
option.setAttribute("value","0");
|
||||
option.appendChild(document.createTextNode(_('Not')));
|
||||
option.appendChild(document.createTextNode(trt('Not')));
|
||||
if(value=="0") option.selected=true;
|
||||
select.appendChild( option );
|
||||
}else
|
||||
@ -893,7 +893,7 @@ class SRec
|
||||
}
|
||||
td2.appendChild( table );
|
||||
|
||||
}else alert2(_('Alert'),"Unknown type = "+columnNode.getAttribute("vt"));
|
||||
}else alert2(trt('Alert'),"Unknown type = "+columnNode.getAttribute("vt"));
|
||||
tablefilter.tBodies[0].appendChild(tr);
|
||||
}
|
||||
columnNode = columnNode.nextSibling;
|
||||
@ -909,7 +909,7 @@ class SRec
|
||||
let button = document.createElement('input');
|
||||
button.className='button-secondary';
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value",_("Filtering"));
|
||||
button.setAttribute("value",trt("Filtering"));
|
||||
button.setAttribute("id","btnfilter_"+this.uid);
|
||||
button.onclick=function(obj){
|
||||
return function()
|
||||
@ -1039,7 +1039,7 @@ class SRec
|
||||
tr.appendChild(th);
|
||||
th=document.createElement('th');
|
||||
th.appendChild( document.createTextNode('Del'));
|
||||
th.title = _('Invert_selection');
|
||||
th.title = trt('Invert_selection');
|
||||
th.style.cssText='width: 1%; cursor: pointer; text-decoration: underline;';
|
||||
th.onmouseover=function(){ this.style.backgroundColor=g_rowColor2; };
|
||||
th.onmouseout=function(){ this.style.backgroundColor='var(--header-color)'; };
|
||||
@ -1435,7 +1435,7 @@ class SRec
|
||||
dataalert()
|
||||
{
|
||||
let error_msg="";
|
||||
if (error_msg!="") alert2(_('Alert'),"ShowRecords: \n"+error_msg);
|
||||
if (error_msg!="") alert2(trt('Alert'),"ShowRecords: \n"+error_msg);
|
||||
}
|
||||
|
||||
showreport(ext)
|
||||
@ -1446,8 +1446,8 @@ class SRec
|
||||
this.rwin.BuildGUI(pageX-10,pageY-10);
|
||||
this.rwin.setParent(this.win);
|
||||
this.rwin.setSize(280,130);
|
||||
this.rwin.setCaption(_('Report'));
|
||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><b>'+_('Preparing_of_report')+'</b></td></tr><tr><td align="center"><img src="./metadata/dbms/form/loading.gif" alt=""/></td></tr></table>');
|
||||
this.rwin.setCaption(trt('Report'));
|
||||
this.rwin.setContent('<table border="0px" style="width: 100%; height: 100%; background-color: #f1f1f1;"><tr><td align="center"><b>'+trt('Preparing_of_report')+'</b></td></tr><tr><td align="center"><img src="./metadata/dbms/form/loading.gif" alt=""/></td></tr></table>');
|
||||
|
||||
this.appendFilter();
|
||||
//Call data from server
|
||||
@ -1508,7 +1508,7 @@ class SRec
|
||||
if(this.f_State=="1") //select one record
|
||||
{
|
||||
//Send the id of the selected record to the parent of the selected record and close the window
|
||||
//alert2(_('Alert'),"id="+id+" f_PropName="+this.f_PropName+" f_TypeName="+this.f_TypeName);
|
||||
//alert2(trt('Alert'),"id="+id+" f_PropName="+this.f_PropName+" f_TypeName="+this.f_TypeName);
|
||||
this.opener.setFilterObject(this.f_TypeName,this.f_PropName,id);
|
||||
this.win.Close();
|
||||
}else
|
||||
@ -1520,7 +1520,7 @@ class SRec
|
||||
//We run through the marked records and request their removal
|
||||
deleteRecord(recordid)
|
||||
{
|
||||
if (confirm(_("Are_you_sure_you_want_to_delete_the_entries")+'?'))
|
||||
if (confirm(trt("Are_you_sure_you_want_to_delete_the_entries")+'?'))
|
||||
{
|
||||
for(let i=0;i<this.masChBox.length;i++)
|
||||
{
|
||||
@ -1602,7 +1602,7 @@ function nodeToTable(node)
|
||||
if(cdataNode.nodeName=="#cdata-section")
|
||||
{
|
||||
result[pos][cols[i]]=cdataNode.nodeValue;
|
||||
//alert2(_('Alert'),pos+') '+cols[i]+' = '+cdataNode.nodeValue);
|
||||
//alert2(trt('Alert'),pos+') '+cols[i]+' = '+cdataNode.nodeValue);
|
||||
i++;
|
||||
}
|
||||
cdataNode = cdataNode.nextSibling;
|
||||
|
||||
Reference in New Issue
Block a user