Dnn.platform: Translation Roles in PersonaBar

Created on 7 Nov 2019  路  6Comments  路  Source: dnnsoftware/Dnn.Platform

Description of bug

When translating the PersonaBar Roles page in a Multilanguage platform (or just any other language then English), the Title is not included.
So all files are translated but the title is not affected.
See issue on forum here: https://dnncommunity.org/forums/aft/509#1956

Steps to reproduce

List the steps to reproduce the behavior:

  1. Go to 'Roles'
  2. Look at the Title, this is not in the translated language.

Current result

The current result is that no matter what translation file you translate, the Roles title will not be affected by it.

Expected result

That it will change the Title according to the translated files.

Screenshots

75462419_2530318380379785_7823374738884919296_n

Affected version

DNN 9.3.2
I have not tested the lower DNN 9 versions.

Affected browser

Every browser as the issue is not related to the browser you use.

AE > PersonaBar Ext > Roles.Web Medium Medium Bug

All 6 comments

I tested this and to me this seems like a bug.

For the Users part of the PB the localization is here:
DesktopModules\Admin\Dnn.PersonaBar\Modules\Dnn.Users\App_LocalResources\Users.resx

If I change the text to:

< data name="nav_Users.Text" xml:space="preserve">
< value>Users-x< /value>
< /data>

The PB shows Users-X (after an app pool restart)in the "PB menu" and the header of the "Page" itself.

When I do the same for Roles:

< data name="nav_Roles.Text" xml:space="preserve">
< value>Roles-x< /value>
< /data>

In DesktopModules\Admin\Dnn.PersonaBar\Modules\Dnn.Roles\App_LocalResources\Roles.resx

Only the text in the PB menu changes and not the header in the actual edit screen.
So IMO this is a bug.

You can check if "static text is localizable by the setting in web.config

<add key="ShowMissingKeys" value="true" />

I am not sure if this setting works for the PB _(ooohhh, how I do not like the PB_ :-( )

(you are not allowed to say you don't like the PB :p) ;-)

@Timo-Breumelhof I am not saying it, I am writing it :-)

@EPTamminga even worse.. ;-)

I have not tested the lower DNN 9 versions

Well, what's important is to test the higher versions :)

Also, you you spoke french then it would simply be the same word in english and french and you would have no problem :P

But all kidding aside, yeah, there is a bug, the code here looks for Roles instead of nav_Roles.Text and the resource file does not have a Roles key, so it just displays the key.

Was this page helpful?
0 / 5 - 0 ratings