This is a migrated thread and some comments may be shown as answers.

Problems adding new localization file

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 2
Fredrik asked on 10 Apr 2013, 10:02 AM
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?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Apr 2013, 11:58 AM
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.

0
Fredrik
Top achievements
Rank 2
answered on 10 Apr 2013, 12:17 PM
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
0
Accepted
Dimitrina
Telerik team
answered on 10 Apr 2013, 12:20 PM
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.

Tags
GridView
Asked by
Fredrik
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Fredrik
Top achievements
Rank 2
Share this question
or