Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
618f9811
Commit
618f9811
authored
Oct 03, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed i18n to be all lowecase when accessed as a property
parent
bcc0cbeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BaseYii.php
framework/yii/BaseYii.php
+1
-1
Application.php
framework/yii/base/Application.php
+1
-1
No files found.
framework/yii/BaseYii.php
View file @
618f9811
...
@@ -541,7 +541,7 @@ class BaseYii
...
@@ -541,7 +541,7 @@ class BaseYii
public
static
function
t
(
$category
,
$message
,
$params
=
array
(),
$language
=
null
)
public
static
function
t
(
$category
,
$message
,
$params
=
array
(),
$language
=
null
)
{
{
if
(
self
::
$app
!==
null
)
{
if
(
self
::
$app
!==
null
)
{
return
self
::
$app
->
getI18
N
()
->
translate
(
$category
,
$message
,
$params
,
$language
?:
self
::
$app
->
language
);
return
self
::
$app
->
getI18
n
()
->
translate
(
$category
,
$message
,
$params
,
$language
?:
self
::
$app
->
language
);
}
else
{
}
else
{
return
is_array
(
$params
)
?
strtr
(
$message
,
$params
)
:
$message
;
return
is_array
(
$params
)
?
strtr
(
$message
,
$params
)
:
$message
;
}
}
...
...
framework/yii/base/Application.php
View file @
618f9811
...
@@ -383,7 +383,7 @@ abstract class Application extends Module
...
@@ -383,7 +383,7 @@ abstract class Application extends Module
* Returns the internationalization (i18n) component
* Returns the internationalization (i18n) component
* @return \yii\i18n\I18N the internationalization component
* @return \yii\i18n\I18N the internationalization component
*/
*/
public
function
getI18
N
()
public
function
getI18
n
()
{
{
return
$this
->
getComponent
(
'i18n'
);
return
$this
->
getComponent
(
'i18n'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment