Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

SharePoint Grid Column Headers/Buttons/Labels #79

Open
jliberta opened this issue Sep 13, 2018 · 1 comment
Open

SharePoint Grid Column Headers/Buttons/Labels #79

jliberta opened this issue Sep 13, 2018 · 1 comment
Labels
help wanted Issues that have not been solved and community contributions are requested to resolve the issue.

Comments

@jliberta
Copy link
Contributor

Hi,

We've recently come across translation issues when displaying SharePoint grids on our multilingual portal. Depending on what language you are using when SharePointGridExtensions.cs is executed for the first time, every subsequent page visit that executes a method in this class does not refresh the resource strings if you are browsing in another language.

To do this I set a breakpoint at line 42 which gets the column name for the Modified attribute on the files. On the first visit in French, the line of code retrieves the French string. On the second visit in English the breakpoint does not hit and the variable does not get updated to contain the English string so it displays the French translation.

I noticed that by commenting out line 42 and placing it in public static IHtmlString SharePointGrid method as follows:
string DefaultModifiedColumnTitle = ResourceManager.GetString("Default_Modified_Column_Title");

Then it solves the problem because the variable gets refreshed all the time.

Is there any reason why these resource strings are being defined as private static readonly string?

@amervitz
Copy link
Contributor

I haven't looked into this but what you're describing sounds like it's probably a bug and the variables in question don't need to be static readonly. If you would like to submit a PR, it would help in further efforts to address this issue.

@amervitz amervitz added the help wanted Issues that have not been solved and community contributions are requested to resolve the issue. label Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Issues that have not been solved and community contributions are requested to resolve the issue.
Projects
None yet
Development

No branches or pull requests

2 participants