Problems adding new localization file

4 posts, 1 answers
  1. Fredrik
    Fredrik avatar
    58 posts
    Member since:
    Mar 2013

    Posted 10 Apr 2013 Link to this post

    Hello!

    I want my gridview to use a localization file for norwegain, and i basicly just copied an english one into the project(project/Resources/Localization/no-NO.resx) and edited the english text out with norwegian.
    and have followed the following steps:

    Adding Localization Resources for the Report Viewer

    1. Add a new RESX resource file to the main project of the application. Name the newly-created RESX file according to the naming convention described above.
    2. In the Property Inspector specify the following properties for the resource file:
      1. Build Action: "Embedded Resource"
      2. Copy to Output Directory: "Copy if newer" or "Copy always"
    3. Open the RESX resource file in the Visual Studio Resource Editor. Enter the required resource strings to translate the Report Viewer to the desired language.
    4. Unload the project by right clicking on it and selecting "Unload Project"
    5. Right click on the project again and select "Edit MyProject.csproj"
    6. Locate the SupportedCultures tag and add the supported cultures (there is no need to specify the neutral culture):
      CopyXML
      <SupportedCultures>
          no;NO
      </SupportedCultures>
    7. Reload and build the project
    8. Repeat steps from 1 to 3 for each desired translation of the Report Viewer. Steps 4 to 7 can be performed at the end only once.
    9. Compile and run the project. When viewing a Telerik Report, the Report Viewer should be translated according to the current UI culture.

    I have then on my grid view xaml set the Language property in to "no"
    but the gridview still display english text while i run the application

    what have i done wrong?

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Apr 2013 Link to this post

    Hello,

    You talk about ReportViewer but you have opened the thread for the RadGridView. Would you please clarify what control do you use?
     

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Fredrik
    Fredrik avatar
    58 posts
    Member since:
    Mar 2013

    Posted 10 Apr 2013 Link to this post

    This problem involves the RadGridview.
    the ReportViewer thread i linked from was the only place where i could find documentation to replace the resx file
  4. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Apr 2013 Link to this post

    Hello,

    Thank you for clarifying.

    You can check the section
    "Localization using ResourceManager" in this help article for a reference. 

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top