mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Additional optimization for #12048
This commit is contained in:
@ -851,11 +851,11 @@ EOD;
|
||||
foreach ($msgs as $message) {
|
||||
$merged[$category . chr(4) . $message] = '';
|
||||
}
|
||||
ksort($merged);
|
||||
$this->stdout("Category \"$category\" merged.\n");
|
||||
$hasSomethingToWrite = true;
|
||||
}
|
||||
if ($hasSomethingToWrite) {
|
||||
ksort($merged);
|
||||
$poFile->save($file, $merged);
|
||||
$this->stdout("Translation saved.\n", Console::FG_GREEN);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user