-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Language snippet is not translated in user blueprint #4869
Comments
I can't reproduce the issue. How do you define the |
Hi Ahment. Example: If I have set |
i forgot to mention, english is the default language in my project and it is not set. |
Is this correct? |
Yes, correct. But there is another strange behavior: I added the missing language snippet, but it's not translated into secondary language. Only default language is used, no matter which language is selected. |
Weird! Could you post your translation snippet, please? And which Kirby version do you use? |
Kirby 3.8.2
|
@chrfickinger Sorry for late! I've tested with your setup. "EN language is the default and a string has a translation in EN but no translation in DE, the translation should look for it in EN as fallback. But instead of fallback it looks like Here is the issue and the behavior you expect, do I understand correctly? * Also this is exists for page blueprints not only for user blueprints. |
This is because we send the same string as fallback: And the |
@getkirby/kirby-staff Need your thoughts. Is this an issue can be fixed? |
I'm getting quite headaches trying to debug the i18n class in that regard. Since this gets touched with the blueprint work anyways, we might have to wait for this first as I don't see an easy solution right now. |
@chrfickinger And could you please try if title:
*: my.translated.snippet works instead? |
Nevermind, I think |
✅ |
@chrfickinger For your information: We had to revert the fix for now because there was a regression: #5086 |
No worries. Thank you for letting me know |
A fix has been merged into v4 branch. Will keep this open for now until we double check in the beta this has been solved. |
Will be solved in v4 |
Description
A blueprint of a page allows to specify a language snippet for title, e.g.
This behavior does not work for User blueprints. I have to put the translated stuff right away in the blueprint, like:
The text was updated successfully, but these errors were encountered: