mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	 5f3d36ea21
			
		
	
	5f3d36ea21
	
	
	
		
			
			* {attribute} must not be equal to "{compareValue}""
* update config
* {attribute} must be greater than "{compareValueOrAttribute}".
{attribute} must be greater than or equal to "{compareValueOrAttribute}".
{attribute} must be less than "{compareValueOrAttribute}".
{attribute} must be less than or equal to "{compareValueOrAttribute}".
* {nFormatted} B
{nFormatted} GB
{nFormatted} kB
{nFormatted} MB
{nFormatted} PB
{nFormatted} TB
* {nFormatted} {n, plural, =1{byte} other{bytes}}
{nFormatted} {n, plural, =1{gigabyte} other{gigabytes}}
{nFormatted} {n, plural, =1{kilobyte} other{kilobytes}}
{nFormatted} {n, plural, =1{megabyte} other{megabytes}}
{nFormatted} {n, plural, =1{petabyte} other{petabytes}}
{nFormatted} {n, plural, =1{terabyte} other{terabytes}}
* Extract messages.
		
	
		
			
				
	
	
		
			71 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * @link https://www.yiiframework.com/
 | |
|  * @copyright Copyright (c) 2008 Yii Software LLC
 | |
|  * @license https://www.yiiframework.com/license/
 | |
|  */
 | |
| 
 | |
| return [
 | |
|     // string, required, root directory of all source files
 | |
|     'sourcePath' => __DIR__ . '/..',
 | |
|     // string, required, root directory containing message translations.
 | |
|     'messagePath' => __DIR__,
 | |
|     // array, required, list of language codes that the extracted messages
 | |
|     // should be translated to. For example, ['zh-CN', 'de'].
 | |
|     'languages' => [
 | |
|         'af', 'ar', 'az', 'be', 'bg', 'bs', 'ca', 'cs', 'da', 'de', 'el', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hi',
 | |
|         'pt-BR', 'ro', 'hr', 'hu', 'hy', 'id', 'it', 'ja', 'ka', 'kk', 'ko', 'kz', 'lt', 'lv', 'ms', 'nb-NO', 'nl',
 | |
|         'pl', 'pt', 'ru', 'sk', 'sl', 'sr', 'sr-Latn', 'sv', 'tg', 'th', 'tr', 'uk', 'uz', 'uz-Cy', 'vi', 'zh', 'zh-TW'
 | |
|     ],
 | |
|     // string, the name of the function for translating messages.
 | |
|     // Defaults to 'Yii::t'. This is used as a mark to find the messages to be
 | |
|     // translated. You may use a string for single function name or an array for
 | |
|     // multiple function names.
 | |
|     'translator' => ['\Yii::t', 'Yii::t'],
 | |
|     // boolean, whether to sort messages by keys when merging new messages
 | |
|     // with the existing ones. Defaults to false, which means the new (untranslated)
 | |
|     // messages will be separated from the old (translated) ones.
 | |
|     'sort' => true,
 | |
|     // boolean, whether the message file should be overwritten with the merged messages
 | |
|     'overwrite' => true,
 | |
|     // boolean, whether to remove messages that no longer appear in the source code.
 | |
|     // Defaults to false, which means each of these messages will be enclosed with a pair of '@@' marks.
 | |
|     'removeUnused' => true,
 | |
|     // boolean, whether to mark messages that no longer appear in the source code.
 | |
|     // Defaults to true, which means each of these messages will be enclosed with a pair of '@@' marks.
 | |
|     'markUnused' => true,
 | |
|     // array, list of patterns that specify which files/directories should NOT be processed.
 | |
|     // If empty or not set, all files/directories will be processed.
 | |
|     // A path matches a pattern if it contains the pattern string at its end. For example,
 | |
|     // '/a/b' will match all files and directories ending with '/a/b';
 | |
|     // the '*.svn' will match all files and directories whose name ends with '.svn'.
 | |
|     // and the '.svn' will match all files and directories named exactly '.svn'.
 | |
|     // Note, the '/' characters in a pattern matches both '/' and '\'.
 | |
|     // See helpers/FileHelper::findFiles() description for more details on pattern matching rules.
 | |
|     'except' => [
 | |
|         '.*',
 | |
|         '/.*',
 | |
|         '/messages',
 | |
|         '/tests',
 | |
|         '/runtime',
 | |
|         '/vendor',
 | |
|         '/BaseYii.php',
 | |
|     ],
 | |
|     // array, list of patterns that specify which files (not directories) should be processed.
 | |
|     // If empty or not set, all files will be processed.
 | |
|     // Please refer to "except" for details about the patterns.
 | |
|     // If a file/directory matches both a pattern in "only" and "except", it will NOT be processed.
 | |
|     'only' => ['*.php'],
 | |
|     'phpFileHeader' => '/**
 | |
|  * @link https://www.yiiframework.com/
 | |
|  * @copyright Copyright (c) 2008 Yii Software LLC
 | |
|  * @license https://www.yiiframework.com/license/
 | |
|  */
 | |
| 
 | |
| ',
 | |
|     // Generated file format. Can be "php", "db" or "po".
 | |
|     'format' => 'php',
 | |
|     // Connection component ID for "db" format.
 | |
|     //'db' => 'db',
 | |
| ];
 |