From d2f8f255e58799be816a17b4400d4f2bb3a8fc7d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 26 Jun 2026 11:05:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20DataViewer=E5=BC=B9=E7=AA=97title?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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' --- bricks/dataviewer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bricks/dataviewer.js b/bricks/dataviewer.js index 91d7bff..d53a5c7 100644 --- a/bricks/dataviewer.js +++ b/bricks/dataviewer.js @@ -402,7 +402,7 @@ bricks.DataViewer = class extends bricks.VBox { }; var form = new bricks.Form(form_opts); 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'), widget: this, archor: 'cc', @@ -589,8 +589,8 @@ bricks.DataViewer = class extends bricks.VBox { cwidth:16, cheight:9, target:this, - title:'Delete conform', - message:'Are you sure to delete is record?' + title: bricks.app.i18n._('Delete conform'), + 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('discard', conform_w.dismiss.bind(conform_w));