File tree Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,16 @@ public function init()
107
107
*/
108
108
public function registerTranslations ()
109
109
{
110
- Yii::$ app ->i18n ->translations ['mickgeek/actionbar/* ' ] = [
111
- 'class ' => PhpMessageSource::className (),
112
- 'sourceLanguage ' => 'en-US ' ,
113
- 'basePath ' => '@mickgeek/actionbar/messages ' ,
114
- 'fileMap ' => [
115
- 'mickgeek/actionbar/widget ' => 'widget.php ' ,
116
- ],
117
- ];
110
+ if (!isset (Yii::$ app ->i18n ->translations ['mickgeek/actionbar/* ' ])) {
111
+ Yii::$ app ->i18n ->translations ['mickgeek/actionbar/* ' ] = [
112
+ 'class ' => PhpMessageSource::className (),
113
+ 'sourceLanguage ' => 'en-US ' ,
114
+ 'basePath ' => '@mickgeek/actionbar/messages ' ,
115
+ 'fileMap ' => [
116
+ 'mickgeek/actionbar/widget ' => 'widget.php ' ,
117
+ ],
118
+ ];
119
+ }
118
120
}
119
121
120
122
/**
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Message translations.
4
+ *
5
+ * This file is automatically generated by 'yii message' command.
6
+ * It contains the localizable messages extracted from source code.
7
+ * You may modify this file by translating the extracted messages.
8
+ *
9
+ * Each array element represents the translation (value) of a message (key).
10
+ * If the value is empty, the message is considered as not translated.
11
+ * Messages that no longer need translation will have their translations
12
+ * enclosed between a pair of '@@' marks.
13
+ *
14
+ * Message string can be used with plural forms format. Check i18n section
15
+ * of the guide for details.
16
+ *
17
+ * NOTE: this file must be saved in UTF-8 encoding.
18
+ *
19
+
20
+ */
21
+ return [
22
+ 'Bulk Actions ' => '批量操作 ' ,
23
+ 'Please select one or more items from the list. ' => '至少选择一项。 ' ,
24
+ 'General ' => '常规 ' ,
25
+ 'Delete ' => '删除 ' ,
26
+ 'Are you sure you want to delete these items? ' => '确认删除? ' ,
27
+ 'Create New ' => '新增 ' ,
28
+ ];
You can’t perform that action at this time.
0 commit comments