Skip to content
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

Unexpected behavior in translations table #109

Open
Svyatoslav-S opened this issue Aug 24, 2017 · 1 comment
Open

Unexpected behavior in translations table #109

Svyatoslav-S opened this issue Aug 24, 2017 · 1 comment
Labels
Milestone

Comments

@Svyatoslav-S
Copy link

Hello! I have an unexpected translation behavior for non-standard use of translations in my project.
Source language in my project in en-GB, and the base language of the site is also en-GB, but administrator want to change some interface texts without editing the program code. So, we've created translations from source language to en-GB and changed some strings.
2
3
On the site the texts have changed correctly, but in the translation table the data is displayed in a strange way, which is very confusing to the administrator.
1
Instead of the source text, the translation is also displayed in the sourse column! And the filter of the source column works also for the translation.
4
I understand that such use was not foreseen by your component, but it is not prohibited by software, which means that someone can do the same as we do, and he too will be at a loss, without access to the source code.
P.S. At the moment, I have solved the problem by changing the sourceLanguage in the settings of Yii2 to "en" without "-GB".

@moltam moltam added the bug label Aug 25, 2017
@moltam
Copy link
Collaborator

moltam commented Aug 25, 2017

Another solution is to use a fictional language for the source code as seen in the examples:

'sourceLanguage' => 'xx-XX', // Developer language

@moltam moltam added this to the 1.7.x milestone Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants