Alexander Makarov
b7a29e38d9
Fixes #6895 : Added `ignoreCategories` config option for message command to ignore categories specified
10 years ago
Alexander Makarov
6481d13494
Optimized checks order in conditions
10 years ago
Alexander Makarov
af7ae33d5b
Use (array) cast instead of !is_array check for both readability and performance
10 years ago
Alexander Makarov
e606617a8e
Better checks for empty string in MessageController
10 years ago
Paul Klimov
a3af271edf
Color output added to `yii\console\MessageController` and `yii\console\AssetController`
10 years ago
Paul Klimov
8632882312
Plain `echo` replaced by `stdout()` at `yii\console\MessageController`
10 years ago
Carsten Brandt
8b79293ff2
added missing `@since` annotations
10 years ago
Alexander Makarov
d1f72be5fc
Used echo instead of stdout not to cluttter tests
10 years ago
Alexander Makarov
e88a5d9cc4
Fixes #4823 and #6005 : `yii message` accuracy and error handling were improved by using PHP tokenizer instead of regular expressions. Removed eval() as well.
10 years ago
Alexander Makarov
fb2dff8528
Fixes #6107 and #6112 : `yii message` was emptying existing translations and incorrectly writing not yet translated strings in .po in case of multiple categories
10 years ago
Alexander Makarov
4b97abacc7
Fixes #5954 : `yii message` command now shows user friendly error if it's not able to parse source file
10 years ago
Qiang Xue
10cc19d0b6
Fixes #5833 : The `message` command fails with a FK constraint error when trying to update messages
10 years ago
Alexander Mohorev
899b778994
Correct type declarations
10 years ago
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
10 years ago
Qiang Xue
be2828d593
Fixes #5484 : Fixed potential string suffix detection failure on 5.5.11
10 years ago
Klimov Paul
db26e65c62
Fixed `yii\console\controllers\MessageController` handles category name containing dot incorrectly
10 years ago
maxlapko
62bffafeea
Update MessageController.php
...
Fixed order of checking config `format` property
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
100ba6c3ab
Replaced substr_compare with strncmp where possible
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
1c414caace
Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare
10 years ago
Alexander Makarov
8f81e231da
Fixes #4453 : `yii message/extract` wasn't properly writing to po files in case of multiple categories
10 years ago
Alexander Makarov
07f01bcf2b
Used substr_compare instead of substr when we don't care about result
10 years ago
Alexander Makarov
bc3200cef1
Fixes #4295 : reworked message extraction for PO files
10 years ago
Andrey Smirnov
1aeb306d00
Fix incomplete obsolete filling in i18n db extractor
...
Obsolete keys searching isn't work when we have serveral categories for tranlation with DbMessageSource. Obsolete array filled with last message category only, because it'll always overwritten.
11 years ago
Klimov Paul
1641e057a9
`VarDumper::export()` applied over framework.
11 years ago
Alexander Makarov
a86d2ad11e
Added `yii\console\Controller::EXIT_CODE_NORMAL` and `yii\console\Controller::EXIT_CODE_ERROR` constants, `yii\console\MigrateController` now returns `yii\console\Controller::EXIT_CODE_ERROR` in case of failed migration
11 years ago
Thiago Talma
c1445871f4
Correction of many errors code inspection.
...
Adjustments code according to the standards.
Adding missing PHPDoc comment.
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
740a769477
improved HelpController with messages for each command
11 years ago
Sorokin Victor
1a14ed2127
Update MessageController.php
11 years ago
Sorokin Victor
4d4a3f0804
Update MessageController.php
11 years ago
AlexGx
eaaa5b1bb5
fix code style
11 years ago
Sorokin Victor
eba9049b61
Update MessageController.php
...
fix code style
11 years ago
mitalcoi
4906cd3432
enchansment of db message source
11 years ago
Alexander Mohorev
95ea1c20bb
code style. FOREACH
11 years ago
Alexander Mohorev
b2f1b00bf2
code style. operator IF
11 years ago
Qiang Xue
4fe0eeb1b6
refacotring.
11 years ago
Alexander Makarov
b95fcf442d
Removed unused import
11 years ago
Alexander Makarov
05db070b32
Adjusted #2008
11 years ago
Digimon
6ea98bf39a
format fixed, substr changed to mb_substr, database-related settings added
11 years ago
Digimon
48eb4c2685
algorithm of data insertion approved
11 years ago
Digimon
7b1b7a3740
forgotten rows
11 years ago
Digimon
48b8089d63
code format fixed
11 years ago
Digimon
c3976b0f63
added possibility to save messages to be translated
11 years ago
Alexander Makarov
e0f20abd55
minor formatting fixes
11 years ago
SergeiKutanov
a937e970c6
fixes for previous solution
11 years ago