-
Notifications
You must be signed in to change notification settings - Fork 568
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
Some comments to localization #989
Comments
Hi @chlupac nice to see you again, regarding localization there are some features still in progress or not planned yet
|
There were some comments in #967 which I will move here so they are easier to find:
|
We could open a separated issues for each so I can closed it when it's done or we could add a checklist here so it could be easy for tracking Regarding the multitenancy is there already a settings that can stored per tenant, so we can support this feature? |
|
|
Fixed in #990 |
Hi, I want to add Polish translation for oqtane. But I can't see any *.resx files :( Coult you tell me how to do the translations ? |
@TomaszGrzmilas there is a translations repo which was created last week: https://github.com/oqtane/oqtane.translations I believe @hishamco is in the process of setting it up for contributions. |
Hi @TomaszGrzmilas as @sbwalker mentioned a new repo is created, I will try to start publish RESX files there, so people can now what should be localized I was suggested to create a localization extractor tool to simplifiy the process, but if you are ready to contribute in Polish culture,please have a look to oqtane/oqtane.translations#1 so you can start localize your components, controllers .. etc |
@hishamco in order to complete the implementation of Static Localization do you plan on implementing the options described above:
|
This mean we are moving from
Nope, but we should :
This may be a last step because it requires a new tracking for a user profile culture, so we don't need to rely on ASP.NET Localization cookie here to avoid the conflict that may occurs between the site and admin cultures |
You can assign this issue to me, I hope to start with soon |
Thinking back about profile language, the issue that is raise in my mind is even I choose another cookie to track the profile language, @sbwalker how you handled this in DNN before? |
@hishamco DNN is a traditional WebForms application... so every interaction is based on a request to an ASPX page which is then processed by the ASP.NET pipeline. It uses an HTTP Module to set the culture for the current thread:
The Localization class handles the fallback logic for the various levels where the culture can be specified:
All pages inherit from PageBase which contains a property for PageCulture which is accessible to all modules on a page
|
Ya it's a WebForms, I knew DNN from version 3 if I'm not wrong, if we looked to the line https://github.com/dnnsoftware/Dnn.Platform/blob/develop/DNN%20Platform/HttpModules/Localization/LocalizationModule.cs#L53 it set the current cultures, this will affect both front-end and back-end cultures if I'm not wrong |
I believe all of the Localization scenarios above are addressed now. The only thing remaining is populating the localization repo with a full set of RESX files so that people can see what is expected to localize Oqtane. |
That's what expected to be done in upcoming days ... |
@hishamco, great job with localization.
I know than it's work in progress and some of this points are planned or obsolete but:
My recommendation in this topic:
New settings for site:
SupportedLanguages string;
DefaultLanguage string;
ShowSwitcher bool;
.
The text was updated successfully, but these errors were encountered: