DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Rolename localization

 16 Replies
 3 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
New Around Here
Posts: 12
New Around Here

    I am working on making the (System/Core) role names localizable. That is: Administrators/Registered Users/etc can be shown in the lnaguage of the logged in user. This could include the description as well. My question is this: shall we make the system rolename description non-editable AND put in a little bit more effort in providing a proper description/explanation of what the role does? Currently the description is not very helpful for system roles (the description of Registered Users is "Registered Users", duh). So I think a bit of love in this part is overdue.

    Growing Member
    Posts: 115
    Growing Member
      I want to be helpful, but I am not sure it's worth the effort, Peter.
      We've been using the Roles across multiple language sites for 18 years and never found it an issue, to my knowledge nobody has asked.
      Also changing role names across languages will make support more difficult.
      If you start getting people to change there role name to whatever they want, it even starts to get crazier for support. I know there is the language pride and people shouting it can't be understood if the roles are not in their language, but truth be said, that is not true.

      Growing Member
      Posts: 115
      Growing Member

        Waste you time on doing an Editor provider for Quill. :-) Unless you're getting paid for the role change.... if so jump in and do it. :-)

        Veteran Member
        Posts: 546
        Veteran Member
          AFAIR the system rolenames are currently localizable via static localization (sharedResources.resx: AllUsers.text, UnauthenticatedUsers.Text and Superuser.text). However, this does noit cover portal roles, which can only be edited in the Database - and some code may rely on the name instead of ID in database table "Portals". some other roles had been added (like unverified users and new contentManager roles), without option to localize and IMO it would be helpful to provide a mechanism for localizing all of them.
          Growing Member
          Posts: 63
          Growing Member
            Posted By Peter Donker on 10/2/2024 12:18 PM

            I am working on making the (System/Core) role names localizable. That is: Administrators/Registered Users/etc can be shown in the lnaguage of the logged in user. This could include the description as well. My question is this: shall we make the system rolename description non-editable AND put in a little bit more effort in providing a proper description/explanation of what the role does? Currently the description is not very helpful for system roles (the description of Registered Users is "Registered Users", duh). So I think a bit of love in this part is overdue.

            Yes,  System Role Desription for a Resource file right?
            It shows on hover as a Title (PB > Pages > Security)

            BTW, the importance of this depends very much on how you use DNN.
            Some of us don't allow users to create pages for instance.
            If you do, I can assure you that for instance "All Users" (which is what Peter already worked on) is a serious issue (Admins think it's "All DNN Users")

            See: https://dnncommunity.org/forums/aft/5254

             

             

            Advanced Member
            Posts: 244
            Advanced Member
              Posted By Peter Donker on 10/2/2024 4:18 AM

              I am working on making the (System/Core) role names localizable. That is: Administrators/Registered Users/etc can be shown in the lnaguage of the logged in user. This could include the description as well. My question is this: shall we make the system rolename description non-editable AND put in a little bit more effort in providing a proper description/explanation of what the role does? Currently the description is not very helpful for system roles (the description of Registered Users is "Registered Users", duh). So I think a bit of love in this part is overdue.

              Peter, I don't have any problems or complaints about the current status quo but, I don't think having the role names localizable it's a bad idea. This sort of efforts could help out new users to digest the DNN beast more easily (having a proper description for each role it's also a good idea). My two cents.

               

              Veteran Member
              Posts: 1179
              Veteran Member
                Posted By Marco Alvarado on 10/7/2024 11:58 PM
                Posted By Peter Donker on 10/2/2024 4:18 AM

                [...]

                Peter, I don't have any problems or complaints about the current status quo but, I don't think having the role names localizable it's a bad idea. This sort of efforts could help out new users to digest the DNN beast more easily (having a proper description for each role it's also a good idea). My two cents.

                Agree - but maybe it's enough to be able to localize the description. There are many extension out there that rely on something like

                RoleController.GetRoleByName(0, "Administrators");

                Happy DNNing!
                Michael

                Michael Tobisch
                DNN★MVP

                DNN Connect
                Veteran Member
                Posts: 546
                Veteran Member
                  Posted By Michael Tobisch on 10/8/2024 11:45 AM

                  There are many extension out there that rely on something like

                  RoleController.GetRoleByName(0, "Administrators");

                  Although this is the wrong method to retrieve system Roles like Administrators and Registered Users role, it might be best to add a "LocalizedRoleName" property.

                   

                   

                  Veteran Member
                  Posts: 1179
                  Veteran Member
                    Posted By Sebastian Leupold on 10/8/2024 12:25 PM
                    Posted By Michael Tobisch on 10/8/2024 11:45 AM

                    There are many extension out there that rely on something like

                    RoleController.GetRoleByName(0, "Administrators");

                    Although this is the wrong method to retrieve system Roles like Administrators and Registered Users role, it might be best to add a "LocalizedRoleName" property.

                    Sorry, but what's wrong with it?

                    Happy DNNing!
                    Michael

                     

                    Michael Tobisch
                    DNN★MVP

                    DNN Connect
                    Veteran Member
                    Posts: 1173
                    Veteran Member
                      Posted By Sebastian Leupold on 10/8/2024 12:25 PM
                      Posted By Michael Tobisch on 10/8/2024 11:45 AM

                      There are many extension out there that rely on something like

                      RoleController.GetRoleByName(0, "Administrators");

                      Although this is the wrong method to retrieve system Roles like Administrators and Registered Users role, it might be best to add a "LocalizedRoleName" property.

                       

                       

                      Agreed.

                       

                      Page 1 of 212 > >>

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved