-
Notifications
You must be signed in to change notification settings - Fork 546
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
Add missing localization strings #983
Conversation
since this is still a Draft let me know when I can merge it |
Sure, I'm trying to translate a full installation of Oqtane |
@sbwalker we ready to merge, just 2 or 3 items that I should follow into other separated small PRs:
|
We had a conversation about ModuleMessage previously and I thought we concluded that it could not be localized because it displays dynamic content? Module developers should use the AddModuleMessage() helper method as part of ModuleBase - which passes text to the ModuleInstance component and displays the message. ModuleTitle would not be localized as its sole purpose is to display information from the database - not static content. ModuleInstance is a component that is part of the dynamic page compositing engine. There is some static content that is displayed on various error conditions. |
Ya, we can choose one of two options:
The advantages for first option is all the resource strings will be in one file The advantages for the second option is the Resx files will follow the regular convention, all the resources strings will be in the place where the message are set
Aha, no need
Thanks for clarification |
@hishamco if you consider the fact that Oqtane is a modular framework - and the primary development approach is to create modules EXTERNAL to the framwork - then I don't see how localizing messages inside of ModuleMessage would actually work? If an external module wants to localize their messages then isn't the only solution for localization to be managed outside of ModuleMessage? Maybe I am missing something? |
Good point, so I think localize the strings outside will be better to support both Oqtane Framework & External modules, I think I will change how the logging is localized to follow the same principle Thanks |
So let us merge this, I will push 2 other PRs for |
@hishamco the external module perspective should always be the primary use case we consider |
I'm working to localize Oqtane in Arabic, this PR should fix all the missing localizations strings