Commit Graph

68 Commits

Author SHA1 Message Date
Alexander Makarov
63f9ec4da6 Fixed formatting 2015-06-10 13:39:47 +02:00
Alexander Makarov
c0c3fa79af Merge branch '8625-message-controller-mark-unused' of https://github.com/marius7383/yii2 into marius7383-8625-message-controller-mark-unused
Conflicts:
	framework/CHANGELOG.md
2015-06-10 13:33:20 +02:00
Alexander Mohorev
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
Marius Ebel
fff61bf99b - Reworked order of parameters in order to keep backwards compatibility
- Update statement of unused messages in DB now depends on $markUnused parameter
2015-06-08 10:11:15 +02:00
Marius Ebel
0dcb50db5e - i18n MessageController now supports config parameter 'markUnused' that turns adding @@s either on or off 2015-06-08 10:11:13 +02:00
Philippe Gaultier
4851d7f9e3 Fixes #8574: Added yii\console\controllers\MessageController support .pot file creation 2015-05-31 12:40:46 +03:00
Klimov Paul
adb0460ee1 yii\console\controllers\MessageController now sorts created messages, even if there is no new one, while saving to PHP file 2015-05-13 16:08:36 +03:00
Klimov Paul
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00
Klimov Paul
a0b5652673 yii\console\controllers\MessageController::saveMessagesToDb() updated to use yii\db\Schema::insert() 2015-04-24 15:34:46 +03:00
Carsten Brandt
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
Alexander Makarov
b7a29e38d9 Fixes #6895: Added ignoreCategories config option for message command to ignore categories specified 2015-03-06 21:51:42 +03:00
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
Alexander Makarov
af7ae33d5b Use (array) cast instead of !is_array check for both readability and performance 2015-02-08 17:56:14 +03:00
Alexander Makarov
e606617a8e Better checks for empty string in MessageController 2015-01-28 00:23:27 +03:00
Paul Klimov
a3af271edf Color output added to yii\console\MessageController and yii\console\AssetController 2014-12-04 19:58:23 +02:00
Paul Klimov
8632882312 Plain echo replaced by stdout() at yii\console\MessageController 2014-12-04 18:37:52 +02:00
Carsten Brandt
8b79293ff2 added missing @since annotations 2014-11-27 18:11:14 +01:00
Alexander Makarov
d1f72be5fc Used echo instead of stdout not to cluttter tests 2014-11-22 02:47:02 +03:00
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. 2014-11-22 02:33:02 +03:00
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 2014-11-21 20:19:32 +03:00
Alexander Makarov
4b97abacc7 Fixes #5954: yii message command now shows user friendly error if it's not able to parse source file 2014-11-07 01:27:37 +03:00
Qiang Xue
10cc19d0b6 Fixes #5833: The message command fails with a FK constraint error when trying to update messages 2014-10-31 10:01:20 -04:00
Alexander Mohorev
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
Alexander Makarov
02622b6fe4 phpdoc fixes and additions 2014-10-14 01:35:21 +04:00
Qiang Xue
be2828d593 Fixes #5484: Fixed potential string suffix detection failure on 5.5.11 2014-10-11 09:35:55 -04:00
Klimov Paul
db26e65c62 Fixed yii\console\controllers\MessageController handles category name containing dot incorrectly 2014-09-17 15:48:12 +03:00
maxlapko
62bffafeea Update MessageController.php
Fixed order of checking config `format` property
2014-08-01 16:23:49 +04:00
Alexander Makarov
100ba6c3ab Replaced substr_compare with strncmp where possible 2014-07-30 02:32:47 +04:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Alexander Makarov
1c414caace Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare 2014-07-30 02:15:08 +04:00
Alexander Makarov
8f81e231da Fixes #4453: yii message/extract wasn't properly writing to po files in case of multiple categories 2014-07-26 02:46:58 +04:00
Alexander Makarov
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
Alexander Makarov
bc3200cef1 Fixes #4295: reworked message extraction for PO files 2014-07-17 19:33:37 +04:00
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.
2014-05-26 15:33:37 +04:00
Klimov Paul
1641e057a9 VarDumper::export() applied over framework. 2014-05-20 16:35:12 +03:00
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 2014-05-07 03:11:35 +04:00
Thiago Talma
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
Carsten Brandt
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
Qiang Xue
8c2e39235f Turn module and application into DI containers. 2014-03-17 23:57:01 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
740a769477 improved HelpController with messages for each command 2014-03-06 22:43:57 +01:00
Sorokin Victor
1a14ed2127 Update MessageController.php 2014-03-04 12:40:13 +02:00
Sorokin Victor
4d4a3f0804 Update MessageController.php 2014-03-04 12:36:54 +02:00
Sorokin Victor
eba9049b61 Update MessageController.php
fix code style
2014-03-03 22:47:01 +02:00
mitalcoi
4906cd3432 enchansment of db message source 2014-03-03 22:43:56 +02:00
Qiang Xue
4fe0eeb1b6 refacotring. 2014-01-21 19:12:10 -05:00
Alexander Makarov
b95fcf442d Removed unused import 2014-01-22 03:32:49 +04:00
Alexander Makarov
05db070b32 Adjusted #2008 2014-01-22 03:31:22 +04:00
Digimon
6ea98bf39a format fixed, substr changed to mb_substr, database-related settings added 2014-01-17 19:35:43 +02:00