-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Localization not work in the customization widget template #17269
Comments
I guess the PO identifiers don't match for the admin template. @hishamco perhaps you can chime in? |
If those are custom localization resources you need to define them in PO files, try to add |
I will try to follow the reproduced steps and check |
@gaojianzhuang how do you inject or display the search widget in your layout, unfortunately, I didn't use the built-in search form before, but I could figure out the localization issue once the search box shows up |
Describe the bug
I have enabled all the culture, localization-related features, and search forms. When I used the built-in search form widget in the layout, the localization worked well when I switched to a different language. But if I created a customization widget template in the backend. The localization would not work anymore when I changed the language.
Orchard Core version
orchardcore 2.1.0
To Reproduce
Expected behavior
The localization should work well if I use the widget template created in the backend.
zh-CN:
en-US:
It seems like the "{{ "Enter your search term(s)" | t }}" code does not work in the template data.
Logs and screenshots
zh-CN:
en-US
The text was updated successfully, but these errors were encountered: