suport Chinese vesrion 1
This commit is contained in:
parent
071a94466e
commit
db3c49f2c4
|
@ -35,7 +35,7 @@ dojo.require("dojox.layout.ContentPane");
|
|||
HAFlow.Main.prototype.initFlowList = function() {
|
||||
var flowListContentPane = new dijit.layout.ContentPane({
|
||||
id : this.flowListContainerId,
|
||||
title : "Flows"
|
||||
title : myfile.flows
|
||||
});
|
||||
this.ui.leadingContainer.addChild(flowListContentPane);
|
||||
/* this.initFlowListStore();*/
|
||||
|
@ -264,9 +264,9 @@ HAFlow.Main.prototype.onFlowClicked = function(instance, flowId) {
|
|||
var flowBrief = instance.getFlowBriefById(instance, flowId);
|
||||
var text = "";
|
||||
text += "<table border=\"0\">";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Flow Info</th><td>"
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.flowInfo+"</th><td>"
|
||||
+ flowBrief.id + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Name</th><td><span id=\"flow_name_text_box\" class=\"configuration-content\"></span></td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.name+"</th><td><span id=\"flow_name_text_box\" class=\"configuration-content\"></span></td></tr>";
|
||||
text += "<tr style=\"tr\"><td align=\"left\"><div id=\"save_flow_name_button\" class=\"configuration-content\"></div></td></tr>";
|
||||
text += "</table>";
|
||||
$("#" + instance.informationContainerId).html(text);
|
||||
|
@ -296,7 +296,7 @@ HAFlow.Main.prototype.onFlowFolderClicked = function(instance, flowId) {
|
|||
var flowBrief = instance.getFlowBriefById(instance, flowId);
|
||||
var text = "";
|
||||
text+="<table border=\"0\">";
|
||||
text+="<tr style=\"tr\"><th align=\"left\">Name</th><td><span id=\"flow_name_text_box\" class=\"configuration-content\"></span></td></tr>";
|
||||
text+="<tr style=\"tr\"><th align=\"left\">"+myfile.name+"</th><td><span id=\"flow_name_text_box\" class=\"configuration-content\"></span></td></tr>";
|
||||
text+="<tr style=\"tr\"><td align=\"left\"><div id=\"save_flow_name_button\" class=\"configuration-content\"></div></td></tr>";
|
||||
text+="</table>";
|
||||
$("#" + instance.informationContainerId).html(text);
|
||||
|
|
|
@ -770,10 +770,10 @@ HAFlow.Main.prototype.changepath = function(instance, child, newparentpath, newh
|
|||
HAFlow.Main.prototype.onFileClicked = function(instance, fileInformation) {
|
||||
var text = "";
|
||||
text += "<table border=\"0\">";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Name</th><td>" + fileInformation.name + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Path</th><td>" + fileInformation.path + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Update Time</th><td>" + fileInformation.time + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">Size</th><td>" + fileInformation.size + "B</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.name+"</th><td>" + fileInformation.name + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.path+"</th><td>" + fileInformation.path + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.updateTime+"</th><td>" + fileInformation.time + "</td></tr>";
|
||||
text += "<tr style=\"tr\"><th align=\"left\">"+myfile.size+"</th><td>" + fileInformation.size + "B</td></tr>";
|
||||
text += "</table>";
|
||||
$("#" + instance.informationContainerId).html(text);
|
||||
var informationPane = dijit.byId(instance.informationContainerId);
|
||||
|
|
|
@ -101,7 +101,7 @@ HAFlow.Main.prototype.initBottomTabs = function() {
|
|||
HAFlow.Main.prototype.initConsoleTab = function() {
|
||||
var consoleContentPane = (new dijit.layout.ContentPane({
|
||||
id : this.consoleContainerId,
|
||||
title : "Console"
|
||||
title : myfile.console
|
||||
}));
|
||||
this.ui.bottomContainer.addChild(consoleContentPane);
|
||||
};
|
||||
|
@ -109,7 +109,7 @@ HAFlow.Main.prototype.initConsoleTab = function() {
|
|||
HAFlow.Main.prototype.initInformationTab = function() {
|
||||
var informationContentPane = (new dijit.layout.ContentPane({
|
||||
id : this.informationContainerId,
|
||||
title : "Information"
|
||||
title : myfile.information
|
||||
}));
|
||||
this.ui.bottomContainer.addChild(informationContentPane);
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
HAFlow.Main.prototype.initReportList = function() {
|
||||
var reportListContentPane = new dijit.layout.ContentPane({
|
||||
id: this.reportListContainerId,
|
||||
title: "Reports"
|
||||
title: myfile.reports
|
||||
});
|
||||
this.ui.leadingContainer.addChild(reportListContentPane);
|
||||
|
||||
|
@ -127,23 +127,23 @@ HAFlow.Main.prototype.initReportListTree = function() {
|
|||
});
|
||||
this.menu.reportTreeMenu.newReportMenuItem = new dijit.MenuItem({
|
||||
id: "newReportMenuItem",
|
||||
label: "New Report"
|
||||
label: myfile.newReport
|
||||
});
|
||||
this.menu.reportTreeMenu.newReportDirectoryMenuItem = new dijit.MenuItem({
|
||||
id: "newReportDirectoryMenuItem",
|
||||
label: "New Report Directory"
|
||||
label: myfile.newReportDirectory
|
||||
});
|
||||
this.menu.reportTreeMenu.deleteReportMenuItem = new dijit.MenuItem({
|
||||
id: "deleteReportMenuItem",
|
||||
label: "Delete"
|
||||
label: myfile.delete_
|
||||
});
|
||||
this.menu.reportTreeMenu.renameReportMenuItem = new dijit.MenuItem({
|
||||
id: "renameReportMenuItem",
|
||||
label: "Rename"
|
||||
label: myfile.rename
|
||||
});
|
||||
this.menu.reportTreeMenu.saveReportMenuItem = new dijit.MenuItem({
|
||||
id: "saveReportMenuItem",
|
||||
label: "Save"
|
||||
label: myfile.save
|
||||
});
|
||||
|
||||
this.menu.reportTreeMenu.addChild(this.menu.reportTreeMenu.newReportMenuItem);
|
||||
|
|
|
@ -238,7 +238,7 @@ HAFlow.Main.prototype.initFlowMenu = function() {
|
|||
title : "tip",
|
||||
content : "<div style='margin-bottom:0px; padding-top:4px; font-family:Times, serif;'>" +
|
||||
"| <a href=quit style='text-decoration: none;'>" +
|
||||
"<font size=2px>quit</font></a>  </div>",
|
||||
"<font size=2px>"+myfile.quit+"</font></a>  </div>",
|
||||
style : "float:right;"
|
||||
}));
|
||||
|
||||
|
@ -285,7 +285,7 @@ HAFlow.Main.prototype.initFlowMenu = function() {
|
|||
});
|
||||
userForm.startup();
|
||||
userDialog = new dijit.Dialog({
|
||||
title : "User Infomation",
|
||||
title : myfile.userInfomation,
|
||||
style : "width: 400px"
|
||||
});
|
||||
userDialog.addChild(userForm);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
myfile={
|
||||
"first": "Welcome!",
|
||||
"myname": "Good Man. Now time is:${0}.",
|
||||
"mynumber": "You are NO ${0}.",
|
||||
"flow":"Flow",
|
||||
"flow":"Flows",
|
||||
"run":"Run",
|
||||
"search":"Search",
|
||||
"window":"Window",
|
||||
|
@ -62,5 +60,16 @@ myfile={
|
|||
"deleteNode":"Delete Node",
|
||||
"HDFSPath":"HDFS Path",
|
||||
"saveConfiguration":"Save Configuration",
|
||||
"newReport":"New Report",
|
||||
"newReportDirectory":"New Report Directory",
|
||||
"console":"Console",
|
||||
"information":"Information",
|
||||
"reports":"Reports",
|
||||
"quit":"quit",
|
||||
"updateTime":"Update Time",
|
||||
"name":"Name",
|
||||
"path":"Path",
|
||||
"size":"Size",
|
||||
"flowInfo":"Flow Info"
|
||||
}
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
myfile={
|
||||
"first": "欢迎",
|
||||
"myname": "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ<EFBFBD> <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ǣ<EFBFBD>${0}<7D><>",
|
||||
"mynumber": "<22><><EFBFBD><EFBFBD> ${0} <20>š<EFBFBD>",
|
||||
"flow":"流程",
|
||||
"flows":"流程",
|
||||
"run":"运行",
|
||||
"search":"搜索",
|
||||
"window":"窗口",
|
||||
|
@ -64,5 +62,16 @@
|
|||
"deleteNode":"删除节点",
|
||||
"HDFSPath":"HDFS路径",
|
||||
"saveConfiguration":"保存配置",
|
||||
"newReport":"新建报表",
|
||||
"newReportDirectory":"新建报表文件夹",
|
||||
"console":"控制台",
|
||||
"information":"基本信息",
|
||||
"reports":"报表",
|
||||
"quit":"退出",
|
||||
"updateTime":"更新时间",
|
||||
"name":"名称",
|
||||
"path":"路径",
|
||||
"size":"大小",
|
||||
"flowInfo":"流程信息",
|
||||
}
|
||||
|
Loading…
Reference in New Issue