feat(i18n): DataViewer弹窗title国际化
- show_filter_form: '搜索过滤' -> bricks.app.i18n._('Search Filter')
- delete_record: 'Delete conform' -> bricks.app.i18n._('Delete conform')
- delete_record: message -> bricks.app.i18n._('Are you sure to delete this record?')
- 修正原文typo: 'is record' -> 'this record'
This commit is contained in:
parent
ea4de411c0
commit
d2f8f255e5
@ -402,7 +402,7 @@ bricks.DataViewer = class extends bricks.VBox {
|
|||||||
};
|
};
|
||||||
var form = new bricks.Form(form_opts);
|
var form = new bricks.Form(form_opts);
|
||||||
var popup = new bricks.PopupWindow({
|
var popup = new bricks.PopupWindow({
|
||||||
title: this.opts.filter_title || '搜索过滤',
|
title: this.opts.filter_title || bricks.app.i18n._('Search Filter'),
|
||||||
icon: bricks_resource('imgs/search.svg'),
|
icon: bricks_resource('imgs/search.svg'),
|
||||||
widget: this,
|
widget: this,
|
||||||
archor: 'cc',
|
archor: 'cc',
|
||||||
@ -589,8 +589,8 @@ bricks.DataViewer = class extends bricks.VBox {
|
|||||||
cwidth:16,
|
cwidth:16,
|
||||||
cheight:9,
|
cheight:9,
|
||||||
target:this,
|
target:this,
|
||||||
title:'Delete conform',
|
title: bricks.app.i18n._('Delete conform'),
|
||||||
message:'Are you sure to delete is record?'
|
message: bricks.app.i18n._('Are you sure to delete this record?')
|
||||||
});
|
});
|
||||||
conform_w.bind('conformed', this.delete_record_act.bind(this, row, record));
|
conform_w.bind('conformed', this.delete_record_act.bind(this, row, record));
|
||||||
conform_w.bind('discard', conform_w.dismiss.bind(conform_w));
|
conform_w.bind('discard', conform_w.dismiss.bind(conform_w));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user