Localization of designer control not reflecting changes

Posted by: sstoecker on 14 September 2020, 7:01 am EST

    • Post Options:
    • Link

    Posted 14 September 2020, 7:01 am EST - Updated 30 September 2022, 7:59 am EST

    I followed the instructions on https://www.grapecity.com/activereports/docs/v14/online/localize-activereports-resources.html, and was able to compile a localized DLL for German. I then put the de-DE folder under the Debug folder of my application as described in the post and debugged the application:

    However, the German tool tip text is not appearing on the icon as I expected it would:

    I used a decompiler to examine the DLL, and confirmed that the ToolbarTooltip_ToggleSiderbar resource entry is in German (I only changed on so far to test):

    When this didn’t work, I put it into the GAC, but this didn’t work either.

    I put this code in the constructor of my WPF page constructor before the InitializeComponents() method as well:

    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“de-DE”);

    What step am I missing?

  • Posted 14 September 2020, 7:16 pm EST

    Hello,

    Have you done the following step:

    Add verification entry for the assembly by running following command:

    sn.exe -Vr “ja\GrapeCity.ActiveReports.Design.Win.resources.dll”.

    Also, please do not rebuild the program after pasting the language sub folder in debug folder.

    Hope it helps.

    Thanks,

    Mohit

  • Posted 14 September 2020, 9:37 pm EST

    Yes, I had ran the following sn.exe command:

    sn.exe -Vr "de-DE\GrapeCity.ActiveReports.Viewer.Wpf.resources.dll"
    

    I got the confirmation response:

    Verification entry added for assembly ‘GrapeCity.ActiveReports.Viewer.Wpf.resources,CC4967777C49A3FF’

    To be safe, I went through the whole process again, creating a new DLL and then copying the latest localized version of GrapeCity.ActiveReports.Viewer.Wpf.resources.dll to the Debug\de-DE folder and NOT building, I got the same result - the “Toggle Siderbar” tooltip appears in English instead of German.

    Oh, and here is what my constructor looks like:

    public ReportsPage()

    {

    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“de-DE”);

    InitializeComponent();



    }

    Any other steps I should be doing? Do I need to reference this DLL somehow in my application? I had assumed some internal ActiveReports method was looking for localized DLLs, but I’m not really sure how that part of it works.

  • Posted 15 September 2020, 7:47 pm EST

    Hello,

    Could you please make sure that version mentioned in “Localize.bat” and version “GrapeCity.ActiveReports.Viewer.Wpf.dll” is same or not.

    Thanks,

    Mohit

  • Posted 15 September 2020, 10:26 pm EST - Updated 30 September 2022, 7:59 am EST

    It looks like they are the same. The Localize.bat:

    :BUILD
    set ProgramFilesNormal=%ProgramFiles%
    set PublicKey=..\..\publickey.snk
    set Version=14.0.19213.0
    

    The File version of the GrapeCity.ActiveReports.Viewer.Wpf.resources.dll file:

    Thank you,

    Scott

  • Posted 15 September 2020, 10:29 pm EST

    Hello,

    I meant the version of "“GrapeCity.ActiveReports.Viewer.Wpf.dll” in your application not, “GrapeCity.ActiveReports.Viewer.Wpf.resources.dll”

    Thanks,

    Mohit

  • Posted 16 September 2020, 1:37 am EST

    Ah, the version for that file is 13.2.18250.0.

  • Posted 16 September 2020, 2:55 am EST

    Hello,

    Could you please make sure that which version are you using right now, AR14 or AR13.

    For AR13, You need to choose the localization files from the following folder;

    C:\Program Files (x86)\GrapeCity\ActiveReports 13\Localization

    and follow the steps as given here;

    https://help.grapecity.com/activereports/webhelp/AR13/webframe.html#LocalizeActiveReportsResources.html

    Thanks,

    Mohit

  • Posted 16 September 2020, 7:00 am EST

    I went through the steps using using AR 13, though I am getting the same results - the file is compiled successfully, I sign it, put in in the Debug\de-DE folder, and add a line to change the CurrentUICulture, but the buttons in the viewer (Zoom In, Zoom Out, etc.) are still in English.

    Is there a sample AR 13 WPF project available that I can use as a base to see if I can get it working without all of the project code?

  • Posted 16 September 2020, 6:36 pm EST

    Hello,

    Please check with the latest build of AR13:

    http://cdn.grapecity.com/ActiveReports/AR13/hotfixes/ActiveReports-v13.3.18814.0.msi

    Also, you can find the base sample at the following location;

    \Documents\GrapeCity Samples\ActiveReports 13\Desktop\WPFViewer\C#

    Hope it helps.

    Thanks,

    Mohit

  • Posted 17 September 2020, 4:12 am EST

    I upgraded to the latest version.18814, though I still get the same results.

    Would you happen to know which DLL / method loads the localized resources file? Would GrapeCity.ActiveReports.Viewer.Wpf.dll do that. I’m looking to nail down which area is causing the issue to help m track it down.

  • Posted 17 September 2020, 6:13 pm EST

    Hello,

    I have replied you at the following case:

    https://supportone.componentone.com/casedetail/462698

    Please reply to Supportone case to avoid the confusion.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels