Alexander Makarov
c7d8439072
Fixes #3687 : Default sourceLanguage and language are now en-US in order for i18n formatter to work correctly
2014-06-08 02:38:32 +04:00
leandrogehlen
e6f05c6b9a
Adjusted documentation
2014-05-31 18:37:53 -03:00
leandrogehlen
51c162d65e
Fixes typo
2014-05-31 10:42:04 -03:00
leandrogehlen
f072b55638
Renamed Formatter::currencySymbol to currencyCode
2014-05-31 10:38:31 -03:00
leandrogehlen
0efa0faaf7
Added comment about $currency when it is null
2014-05-30 16:23:25 -03:00
leandrogehlen
55ad347e62
Fixes typo
2014-05-29 13:52:16 -03:00
leandrogehlen
f7488579b2
Renamed Formatter::intlCurrencySymbol to currencySymbol
2014-05-29 13:42:46 -03:00
Leandro Gehlen
4ecbd201ec
Added yii\i18n\Formatter::intlCurrencySymbol
2014-05-29 11:53:42 -03:00
Alexander Makarov
d0ddb56639
Fixes #699 : fixed wrong usage of self and static
2014-05-06 20:05:41 +04:00
Alexander Makarov
009238156e
Fixed slashed to match guide
2014-05-02 14:47:19 +04:00
Carsten Brandt
91965fd391
phpdoc formatting issues
2014-04-23 02:55:17 +02: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
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed tbl_ default for table prefix
2014-03-30 19:33:46 +04:00
Carsten Brandt
d1663a5fb7
fixed potential problem with MessageFormatter and broken messages
2014-03-26 17:51:52 +01:00
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
Qiang Xue
3c518c4207
Merge commit 'f605508bb2805d24df98037ea239f8f582deda0e' into feature-container
2014-03-20 23:51:02 -04:00
Alexander Makarov
182fc6882e
Fixed overriding default message sources
2014-03-21 02:00:27 +04:00
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
2014-03-18 12:31:27 -04: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
Qiang Xue
fad635440b
Fixes #2655 : Arrayable and ArrayableTrait are incompatible for some PHP versions.
2014-03-07 19:08:27 -05:00
Carsten Brandt
1b7e1cd027
Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
...
* 'feature' of https://github.com/mongosoft/yii2 :
returned back formatting language files
code style. WHILE
code style. FOR
code style. FOREACH
code style. operator IF
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
short echo tags
short array syntax
Conflicts:
extensions/apidoc/commands/RenderController.php
extensions/apidoc/models/BaseDoc.php
extensions/apidoc/models/Context.php
extensions/apidoc/templates/bootstrap/Renderer.php
extensions/apidoc/templates/bootstrap/layouts/guide.php
extensions/apidoc/templates/bootstrap/layouts/main.php
extensions/apidoc/templates/bootstrap/views/index.php
extensions/apidoc/templates/html/Renderer.php
extensions/apidoc/templates/offline/views/index.php
extensions/apidoc/templates/offline/views/offline.php
extensions/apidoc/templates/online/views/index.php
extensions/elasticsearch/Connection.php
extensions/redis/ActiveQuery.php
framework/base/ErrorException.php
framework/helpers/BaseFileHelper.php
tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
AlexGx
eaaa5b1bb5
fix code style
2014-03-04 06:12:30 +02:00
Alexander Mohorev
95ea1c20bb
code style. FOREACH
2014-03-03 21:47:47 +03:00
Alexander Mohorev
b2f1b00bf2
code style. operator IF
2014-03-03 21:32:34 +03:00
Alexander Mohorev
c7e8d8b900
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
2014-03-03 20:50:44 +03:00
Alexander Makarov
1a5ccebef2
Fixes #2527 : Source language for app message category was always en no matter which application sourceLanguage was used
2014-02-25 14:21:51 +04:00
Qiang Xue
9f37e133e3
Fixed test break.
2014-02-23 14:02:39 -05:00
Qiang Xue
2a6bc68ca6
minor fixes.
2014-02-23 13:43:57 -05:00
Carsten Brandt
c229ba729a
fixed a bug in MessageSource and missingtranslation event
...
fixes #2519 : MessageSource removed translation messages when event handler
was bound to `missingTranslation`-event
2014-02-23 14:26:47 +01:00
Alexander Makarov
0f59ba2d8b
Added assignment back. See https://github.com/yiisoft/yii2/pull/2285#discussion_r9566711
2014-02-09 03:27:27 +04:00
Alexander Makarov
40b3c2e89c
Fixes #2209 : When I18N message translation is missing source language is now used for formatting
2014-02-09 02:49:02 +04:00
Alexander Makarov
17ca07fd44
More consistent usage of MessageFormatter::tokenizePattern
2014-02-01 02:08:41 +04:00
Carsten Brandt
262189533a
huge amount of documentation link fixes
2014-01-28 17:54:40 +01:00
Alexander Makarov
ffed5d014e
fixes #2176
2014-01-27 12:40:53 +04:00
Qiang Xue
a43f8b2361
Fixes #2157 : The '*' category pattern will match all categories that do not match any other patterns listed in I18N::translations
2014-01-26 12:44:27 -05:00
Vladimir Zbrailov
330ae053e6
remove timezone from i18n formatter
2014-01-26 01:42:36 +04:00
Alexander Makarov
1e602adb6e
- Fixed BaseFileHelper::localize docs.
...
- DbMessageSource now performs UNION ALL.
- Fixed message merging for php and po.
- Updated tests.
2014-01-23 20:34:46 +04:00
Alexander Makarov
8bdc437bc2
Fixes #2079 :
...
- i18n now falls back to `en` from `en-US` if message translation isn't found
- View now falls back to `en` from `en-US` if file not found
- Default `sourceLanguage` and `language` are now `en`
2014-01-23 04:51:17 +04:00
Digimon
c3976b0f63
added possibility to save messages to be translated
2014-01-17 00:16:10 +02:00
Alexander Makarov
349f2c9e32
phpdoc fixes, unused variable
2014-01-12 23:40:21 +04:00
Qiang Xue
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
Alexander Kochetov
d7df7053e0
=== array() => empty()
2013-05-07 19:51:29 +04:00
Zander Baldwin
4be9e195c2
Add Newlines
...
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Qiang Xue
0e8e94bcb9
cleanup.
2013-04-02 17:59:54 -04:00
Qiang Xue
c629ad776a
Finished plural forms.
2013-04-01 17:59:14 -04:00
Qiang Xue
78457bf009
fetching plural rule data.
2013-04-01 14:58:44 -04:00
Qiang Xue
e7295ad564
Use __METHOD__ as log category.
2013-03-28 20:07:49 -04:00
Qiang Xue
379e48a4c6
Finished new message translation implementation.
2013-03-24 22:34:45 -04:00