Skip to content

Commit 29d1b2f

Browse files
committed
Add zh translation.
1 parent 5771894 commit 29d1b2f

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

messages/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'messagePath' => __DIR__,
88
// array, required, list of language codes that the extracted messages
99
// should be translated to. For example, ['zh-CN', 'de'].
10-
'languages' => ['da', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'ru', 'vi'],
10+
'languages' => ['da', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'ru', 'vi', 'zh'],
1111
// string, the name of the function for translating messages.
1212
// Defaults to 'Yii::t'. This is used as a mark to find the messages to be
1313
// translated. You may use a string for single function name or an array for
@@ -49,4 +49,4 @@
4949
// When format is "db", you may specify the following two options
5050
//'db' => 'db',
5151
//'sourceMessageTable' => '{{%source_message}}',
52-
];
52+
];

messages/zh/kvdate.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
return [
20+
'Clear field' => '清空栏目',
21+
'Select date' => '选择日期',
22+
];

0 commit comments

Comments
 (0)