This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
SharePoint Grid Column Headers/Buttons/Labels #79
Labels
help wanted
Issues that have not been solved and community contributions are requested to resolve the issue.
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?
The text was updated successfully, but these errors were encountered: