diff --git a/index.html b/index.html
index 232ca8b..4aca200 100644
--- a/index.html
+++ b/index.html
@@ -27,8 +27,8 @@
-
{{ $t('nav.title') }}
-
+
{{ $t('PGFPlotsEdt') }}
+
{{ $t('Faster to PGFPlot in LaTeX') }}
@@ -46,56 +46,56 @@
-
-
+
+
- 坐标系
+ {{$t('Axis')}}
-
全局参量
-
轴类型
+
{{$t('axis.global')}}
+
{{$t('axis.type')}}
-
-
-
-
-
+
+
+
+
+
-
+
-
x轴
-
-
-
-
-
y轴
-
-
-
-
+
{{$t('axis.x')}}
+
+
+
+
+
{{$t('axis.y')}}
+
+
+
+
-
z轴
-
-
-
-
+
{{$t('axis.z')}}
+
+
+
+
@@ -105,34 +105,34 @@
- 设定
+ {{$t('Settings')}}
- 启用中文
- 启用标注
- 启用三维
- 启用图例
- 启用数据源
-
-
-
-
-
-
-
-
+ {{$t('settings.CJK')}}
+ {{$t('settings.Pin')}}
+ {{$t('settings.3D')}}
+ {{$t('settings.Legend')}}
+ {{$t('settings.Source')}}
+
+
+
+
+
+
+
+
- 数据
+ {{$t('Data')}}
@@ -172,9 +172,9 @@
- 代码
-
-
+ {{$t('Code')}}
+
+
@@ -208,7 +208,7 @@
- 参数设置
+ {{$t('Parameter Settings')}}
@@ -227,38 +227,38 @@
-
坐标数据
-
-
-
-
-
⚠不是矩阵
+
{{$t('bar.coord')}}
+
+
+
+
+
{{$t('bar.narray')}}
@@ -266,34 +266,34 @@
-
表格参数
+
{{$t('bar.tableparam')}}
-
表列
+
{{$t('bar.col')}}
x
y
z
@@ -313,13 +313,13 @@
@@ -327,33 +327,33 @@
-
-
+
+
-
+
-
+
-
+
-
-
+
+
@@ -364,18 +364,18 @@
@@ -403,13 +403,13 @@
{{chname}} |
- | |
+ | |
diff --git a/lang/cn.json b/lang/cn.json
index dd7edcf..c732e49 100644
--- a/lang/cn.json
+++ b/lang/cn.json
@@ -1,7 +1,7 @@
{
+ "PGFPlotsEdt": "PGFPlots 统计绘图编辑器",
+ "Faster to PGFPlot in LaTeX": "PGFPlotsEdt",
"nav": {
- "title": "PGFPlots 统计绘图编辑器",
- "subtitle": "PGFPlotsEdt",
"lang": "简体中文",
"lang_icon": "CN",
"lang_title": "切换语言",
@@ -17,5 +17,104 @@
"tpl8": "直方图",
"tpl9": "箱式图",
"tpl10": "极坐标"
+ },
+ "Compile": "编译",
+ "Axis": "坐标系",
+ "axis": {
+ "global": "全局参量",
+ "type": "轴类型",
+ "normal": "普通坐标轴",
+ "logx": "x对数轴",
+ "logy": "y轴",
+ "loglog": "双对数轴",
+ "polar": "极坐标轴",
+ "title": "标题",
+ "width": "宽度",
+ "height": "高度",
+ "fontsize": "字号",
+ "grid": "网格",
+ "rotateAngle": "旋转角度",
+ "x": "x轴",
+ "label": "轴题",
+ "min": "最小",
+ "max": "最大",
+ "arrow": "箭头",
+ "y": "y轴",
+ "z": "z轴",
+ "legendPos": "图例位置",
+ "verticalAngle": "竖直旋转",
+ "horizontalAngle": "水平旋转",
+ "surplusparam": "增补参数"
+ },
+ "Settings": "设定",
+ "Data": "数据",
+ "settings": {
+ "CJK": "启用中文",
+ "Pin": "启用标注",
+ "3D": "启用三维",
+ "Legend": "启用图例",
+ "Source": "启用数据源",
+ "plotmarks": "标记库",
+ "colorbrewer": "颜色库",
+ "colormaps": "渐变库",
+ "CMYK": "CMYK模式",
+ "statistics": "统计库",
+ "fillbetween": "间隙填充库",
+ "polar": "极坐标库",
+ "dateplot": "日期库"
+ },
+ "Series": "+ 系列",
+ "data": {
+ "source": "表源",
+ "function": "函数",
+ "coordinate": "坐标",
+ "table": "文件",
+ "pin": "标注"
+ },
+ "Code": "代码",
+ "code": {
+ "cpydraw": "复制绘图代码",
+ "cpyall": "复制全部代码",
+ "manedt": "手动编辑代码"
+ },
+ "Parameter Settings": "\n参数设置\n",
+ "series": {
+ "fn": "函数",
+ "showLayer": "显示图层",
+ "top": "置于顶层",
+ "delete": "删除系列",
+ "td": "三维坐标",
+ "style": "样式连续",
+ "area": "循环面积",
+ "paramter": "参数",
+ "funcx": "函数式(x)",
+ "funcy": "y轴",
+ "funcz": "z轴",
+ "coord": "坐标数据",
+ "coordinate": "坐标",
+ "source": "表源",
+ "deletesource": "删除表源",
+ "table": "文件",
+ "tableparam": "表参数",
+ "tabledata": "数据文件",
+ "datatable": "数据表",
+ "pin": "标注",
+ "deletepin": "删除标注",
+ "pinyellow": "黄色标注",
+ "rotatepin": "旋转角度",
+ "pinpos": "标注位置"
+ },
+ "bar": {
+ "enter": "x y 按回车添加项",
+ "sortUp": "按自变量升序对坐标进行排序",
+ "sort": "排序",
+ "grouping": "按y轴升序对坐标进行分组,配合surf或mesh指令",
+ "group": "分组",
+ "formatting": "按照顺序使用括号标记坐标",
+ "format": "格式正规化",
+ "grid": "绘制曲面图需要网格状的坐标量",
+ "narray": "⚠不是矩阵",
+ "tableparam": "表格参数",
+ "col": "表列"
}
}
diff --git a/lang/en.json b/lang/en.json
index ee18268..4425b0d 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -1,7 +1,7 @@
{
+ "PGFPlotsEdt": "PGFPlotsEdt",
+ "Faster to PGFPlot in LaTeX": "Faster to PGFPlot in LaTeX",
"nav": {
- "title": "PGFPlotEdt",
- "subtitle": "Faster to PGFPlot in LaTeX",
"lang": "English",
"lang_icon": "EN",
"lang_title": "Change language",
@@ -17,5 +17,104 @@
"tpl7": "Contour",
"tpl8": "Histogram",
"tpl9": "Boxplot"
+ },
+ "Compile": "Compile",
+ "Axis": "Axis",
+ "axis": {
+ "global": "Global Parameters",
+ "type": "Type",
+ "normal": "axis",
+ "logx": "semilogxaxis",
+ "logy": "semilogyaxis",
+ "loglog": "loglogaxis",
+ "polar": "ploaraxis",
+ "fontsize": "Fontsize",
+ "grid": "Grid",
+ "height": "Height",
+ "rotateAngle": "Rotation",
+ "title": "Title",
+ "width": "Width",
+ "arrow": "Arrow",
+ "label": "Label",
+ "max": "Max",
+ "min": "Min",
+ "x": "X Axis",
+ "y": "Y Axis",
+ "z": "Z Axis",
+ "legendPos": "Legend Position",
+ "horizontalAngle": "HA",
+ "surplusparam": "surplus parameters",
+ "verticalAngle": "VA"
+ },
+ "Settings": "Settings",
+ "settings": {
+ "CJK": "CJK",
+ "Legend": "Legend",
+ "Pin": "Pin",
+ "Source": "Source",
+ "3D": "3D",
+ "colorbrewer": "colorbrewer",
+ "colormaps": "colormaps",
+ "dateplot": "dateplot",
+ "fillbetween": "fillbetween",
+ "plotmarks": "plotmarks",
+ "polar": "polar",
+ "statistics": "statistics",
+ "CMYK": "CMYK"
+ },
+ "Data": "Data",
+ "Series": "+ Series",
+ "data": {
+ "coordinate": "coord",
+ "function": "function",
+ "pin": "pin",
+ "source": "source",
+ "table": "table"
+ },
+ "Code": "Code",
+ "code": {
+ "cpyall": "Copy all code to clipboard",
+ "cpydraw": "Copy draw code to clipboard",
+ "manedt": "Edit code manually"
+ },
+ "Parameter Settings": "Parameter Settings",
+ "series": {
+ "fn": "fn",
+ "showLayer": "Show Layer",
+ "area": "Fill the area",
+ "delete": "Delete series",
+ "funcx": "function(x)",
+ "funcy": "y axis",
+ "funcz": "z axis",
+ "paramter": "parameter",
+ "style": "In cycle list",
+ "td": "3D",
+ "top": "Put it to top",
+ "coord": "coord",
+ "coordinate": "cr",
+ "datatable": "sr",
+ "deletesource": "Delete source",
+ "source": "sr",
+ "table": "tb",
+ "tabledata": "Table data",
+ "tableparam": "table parameters",
+ "deletepin": "Delete pin",
+ "pin": "pn",
+ "pinpos": "pin position",
+ "pinyellow": "Yellow pin",
+ "rotatepin": "pin rotate"
+ },
+ "bar": {
+ "enter": "x y enter",
+ "sortUp": "Sort coordinates based on x",
+ "col": "Col",
+ "format": "Format",
+ "formatting": "Format numbers into coordinates by adding parentheses",
+ "grid": "Arrayed coordinates is nessary for plotting surf and mesh",
+ "group": "Group",
+ "grouping": "Sort coordinates by y axis to input into surf or mesh",
+ "narray": "⚠ Not Array",
+ "sort": "Sort",
+ "tableparam": "Table Parameter"
}
}
diff --git a/main.css b/main.css
index fff4f0d..24359f3 100644
--- a/main.css
+++ b/main.css
@@ -242,6 +242,8 @@ details {
summary {
margin: 5px;
+ font-weight: 600;
+ color: gray;
}
#axis{
@@ -280,6 +282,11 @@ summary {
background-color: rgb(255, 111, 111);
}
+.sicon {
+ display: inline;
+ float: left;
+}
+
#series .legend {
width: 60px;
}
@@ -486,7 +493,7 @@ input[type=text]{
.libchecker {
display: inline-block;
- width: 7em;
+ width: 8em;
}
#texContent{
diff --git a/main.js b/main.js
index 063ded3..899c6f3 100644
--- a/main.js
+++ b/main.js
@@ -1,6 +1,6 @@
// 国际化
var i18n = new VueI18n({
- locale: 'cn',
+ locale: 'en',
messages:{
cn: {},
en: {}
@@ -1311,9 +1311,11 @@ var app = new Vue({
animbck: function () { animback(); },
animfwd: function () { animforward(); },
changelang: function() {
- if(i18n.locale=='cn')
+ if(i18n.locale=='cn'){
i18n.locale='en';
- else i18n.locale='cn';
+ } else {
+ i18n.locale='cn'
+ };
},
compile: function() {
app.purl="";