Browse Source

Merge pull request #30 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit 'd6f377919198e6d9bf895f634166d107b9e943e7':
  国际化
es6
windy 8 years ago
parent
commit
bea80016a1
  1. 14
      bi/case.js
  2. 6
      bi/widget.js
  3. 14
      docs/case.js
  4. 6
      docs/widget.js
  5. 8
      src/case/editor/editor.state.js
  6. 6
      src/case/editor/editor.state.simple.js
  7. 2
      src/widget/date/trigger.date.js
  8. 4
      src/widget/numericalinterval/numericalinterval.js

14
bi/case.js

@ -6159,7 +6159,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -6335,7 +6335,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
this.text.setTitle("");
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
}
@ -6343,7 +6343,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isString(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
} else {
@ -6355,7 +6355,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else if (v.length === 1) {
this.text.setText(v[0]);
@ -6439,7 +6439,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -6611,7 +6611,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
}
return;
@ -6621,7 +6621,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setTitle(v);
this.text.element.removeClass("state-editor-infinite-text");
} else if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));

6
bi/widget.js

@ -4927,7 +4927,7 @@ BI.shortcut('bi.date_combo', BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge
hgap: c.hgap,
vgap: c.vgap,
allowBlank: true,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
errorText: function () {
if (self.editor.isEditing()) {
return BI.i18nText("BI-Date_Trigger_Error_Text");
@ -12260,7 +12260,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.min,
level: "warning",
@ -12297,7 +12297,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.max,
level: "warning",

14
docs/case.js

@ -6159,7 +6159,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -6335,7 +6335,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
this.text.setTitle("");
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
}
@ -6343,7 +6343,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isString(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
} else {
@ -6355,7 +6355,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else if (v.length === 1) {
this.text.setText(v[0]);
@ -6439,7 +6439,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -6611,7 +6611,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
}
return;
@ -6621,7 +6621,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setTitle(v);
this.text.element.removeClass("state-editor-infinite-text");
} else if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));

6
docs/widget.js

@ -4927,7 +4927,7 @@ BI.shortcut('bi.date_combo', BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge
hgap: c.hgap,
vgap: c.vgap,
allowBlank: true,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
errorText: function () {
if (self.editor.isEditing()) {
return BI.i18nText("BI-Date_Trigger_Error_Text");
@ -12260,7 +12260,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.min,
level: "warning",
@ -12297,7 +12297,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.max,
level: "warning",

8
src/case/editor/editor.state.js

@ -50,7 +50,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -226,7 +226,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
this.text.setTitle("");
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
}
@ -234,7 +234,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isString(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.setTitle("");
this.text.element.addClass("state-editor-infinite-text");
} else {
@ -246,7 +246,7 @@ BI.StateEditor = BI.inherit(BI.Single, {
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else if (v.length === 1) {
this.text.setText(v[0]);

6
src/case/editor/editor.state.simple.js

@ -50,7 +50,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
cls: "state-editor-infinite-text bi-disabled",
textAlign: "left",
height: o.height,
text: BI.i18nText("BI-Unrestricted"),
text: BI.i18nText("BI-Basic_Unrestricted"),
hgap: 4,
handler: function () {
self._showInput();
@ -222,7 +222,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
}
return;
@ -232,7 +232,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Single, {
this.text.setTitle(v);
this.text.element.removeClass("state-editor-infinite-text");
} else if (BI.isEmpty(v)) {
this.text.setText(BI.i18nText("BI-Unrestricted"));
this.text.setText(BI.i18nText("BI-Basic_Unrestricted"));
this.text.element.addClass("state-editor-infinite-text");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));

2
src/widget/date/trigger.date.js

@ -36,7 +36,7 @@ BI.DateTrigger = BI.inherit(BI.Trigger, {
hgap: c.hgap,
vgap: c.vgap,
allowBlank: true,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
errorText: function () {
if (self.editor.isEditing()) {
return BI.i18nText("BI-Date_Trigger_Error_Text");

4
src/widget/numericalinterval/numericalinterval.js

@ -33,7 +33,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.smallEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.min,
level: "warning",
@ -70,7 +70,7 @@ BI.NumericalInterval = BI.inherit(BI.Single, {
this.bigEditor = BI.createWidget({
type: "bi.sign_editor",
height: o.height - 2,
watermark: BI.i18nText("BI-Unrestricted"),
watermark: BI.i18nText("BI-Basic_Unrestricted"),
allowBlank: true,
value: o.max,
level: "warning",

Loading…
Cancel
Save