-
Notifications
You must be signed in to change notification settings - Fork 45
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
Makes reference to another variable in the same translation file #3
Comments
This functionality is not supported by the current implementation. add_translation("foo.with_variable", "%{i18n_variable} is a translation")
add_translation("foo.variable", "my variable")
print(t("foo.with_variable", i18n_variable=t("foo.variable"))) Would this fit your current use case? |
I had already tested that way there and know it works without problem .. |
The implementation of nested translations seems to add too much complexity, |
I'm new still developing python and it still do not have the knowledge to modify codes. More if you want to make this implementation so that I can test. You can count on me. |
Is there any use case for this? The use-case given above is a perfect example of how translations shouldn’t work. It makes assumptions on the language’s grammar that don’t hold in general. |
I think actually it would be a little bit more organized and don't require to split to files if it isn't that much |
Example:
File : lang.en.yml
python-i18n do this? referencing logged to common.username.
The text was updated successfully, but these errors were encountered: