-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
IdServer - Don't use the current language to store the translation of the configuration #670
Comments
I have implemented the following changes in the
The language is no longer determined by the language of the user account used to run the service but by the To support a new language, you can add a record to the |
The Identity Server utilizes the translation and language tables to interpret certain metadata of the Backend entities, such as the Client name or the Configuration Property. The majority of translations featured on the administration website are sourced from the Resources\Global.resx file. I have created a branch named "Ticket693," which illustrates how to update the project to accommodate the "French" language.
|
Thank you for your hard work and look forward to the realization of this function. |
1 Another question is that the "SetDefaultCulture" we configured in "Program.cs" is "en". Why did the language box choose "Chinese" I added instead of English by default when I first visited it? 2 |
Languages are not fully translated due to missing translations. For example :
Normally, the entire content of the website should be translated in the Global.resx. |
I found a branch on your branch called "Ticket693_Move", I downloaded it and ran it, I found that when I changed the "Languages" in "IdServerConfiguration.cs" to what you said: |
Hello :) The modifications made in the Ticket693_Move branch have been merged into the master branch. Even though the documentation has not been published yet, you can find some information here: https://github.com/simpleidserver/SimpleIdServer/blob/master/website/docs/developer/addlanguage.md |
Hello, thank you for your reply.
The first line should be written in a different language's version of English, rather than in another language, as follows: 3、Language not compatible with older versions: Using an older database does not add a new language to the database, you need to add it manually, or use a new database |
I've made some changes in the |
1、Thanks for your changes, the test found that the issue was resolved, but some translations were not included in the global variables: |
It is normal that these translations are not present in the Global resource file because they are stored in the
|
1、Ok, another problem is that the "client name" disappears after switching languages. |
Client name disappearance: It is normal for the client name to disappear when the language is changed because this property is translatable. According to the RFC (https://openid.net/specs/openid-connect-registration-1_0.html#LanguagesAndScripts), the following client properties must be translatable:
You can update the Exception : Database structure : The database structure is MANY to MANY. |
Client name disappearance: |
The client name is incorrect. The issue has been resolved in the master branch. When a client is added, its name will now be stored in the translation table with the correct language. MTLS is not translated. The issue has been addressed in the master branch; however, Mtls and Dpop are not defined as static variables. |
No description provided.
The text was updated successfully, but these errors were encountered: