-
Notifications
You must be signed in to change notification settings - Fork 89
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
Allow creating fallback languages #120
Comments
This extension provides an interface for translation. The Yii 2 handles the message displaying, the way you configure it. So I think that Yii 2 still handles the fallback language selection. If you need the en language, then you can add it to the language list with the extension ( |
You're right, language_id is already fine for two-letter ids. However, country should then be empty. Since the id does not contain a region anymore. Or one has to enter 'xy' or something like that. It is just a tiny change. I'm wondering if language and country property is needed at all. They are already part of the language_id. |
I think the language and country property is not needed, they are just part of the database schema but not used. They can be made optional. |
In Yii2 it is possible to define and use default languages (also have a look here). That is one can have the language en-US, but also the general en. en will be used as fallback when the language gets set to en-GB for example.
So the translage manager should allow to define such languages as well. If I'm not wrong, that would just require that the Language rules gets changed a little bit. language_id should work with two characters and country should be empty. Isn't that all?
Would you consider doing this?
The text was updated successfully, but these errors were encountered: