New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix russian translation #13372
Fix russian translation #13372
Conversation
jetexe
commented
Jan 11, 2017
Q | A |
---|---|
Is bugfix? | yes |
New feature? | no |
Breaks BC? | no |
Tests pass? | yes |
Fixed issues | #13287 |
{ | ||
if (is_null($twoWordsConnector)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use $twoWordsConnector === null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Signed-off-by:Tetyuev Pavel <jetexe2@gmail.com>
condition fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a changelog line.
{ | ||
if ($twoWordsConnector === null) { | ||
$twoWordsConnector = ' ' . Yii::t('yii', 'and') . ' '; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather put spaces inside the translation to allow changing using dictionary.
$twoWordsConnector = Yii::t('yii', ' and ');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think it is a very good idea.
Merged with adjustment proposed by @SilverFire: 3a1cd7f |