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

RadGrid language localization

8 Answers 451 Views
Grid
This is a migrated thread and some comments may be shown as answers.
arnaud
Top achievements
Rank 1
arnaud asked on 15 Sep 2008, 01:44 AM
Hi,

I'm currently testing your RadGrid product but so far I did not succeed to make all the filter menus, pager button etc. appear in French.

I tried to set up the <globalization uiCulture="fr" culture="fr-FR"/> in my web config, in the page itself and even in the RadGrid control without success.

I saw some localization files in the App_GlobalResources but it doesn't seem to be for the RadGrid.

Well, could you give me a clue ?

Thank you
Regards,
AB

8 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 15 Sep 2008, 04:06 AM
0
Shinu
Top achievements
Rank 1
answered on 15 Sep 2008, 04:17 AM
Hi George,

You can also have a look at the following help article to get details on localizing Grid messages.
Localizing the grid messages

Thanks
Shinu.
0
arnaud
Top achievements
Rank 1
answered on 15 Sep 2008, 12:50 PM
Thank you both for your answers.

If I understand correctly the situation, all the following translation has to be done by hardcoding the RadGrid control in the code behind ?

- Filter menu
- Command button (ie: edit, delete, update, etc..)
- Text in pager
- Tooltips (header column sorting, etc.)

Everything actually ?

If yes, is there a tip to put this translation somewhere so I don't have to rewrite it everyime I'm using the control ?

Thank You
Regards,
AB
0
Markus
Top achievements
Rank 2
answered on 06 Oct 2008, 07:19 AM
Does someone still have a look on this issue ??

I find it very hard to localize a radgrid, b/c sometimes everything is localized right in the ressource files (two identical pages) and still the messages are not recognized by the control.

Is there a tutorial how to use a global ressource file for the grid?

Imho, having localization stuph in the codebehind class is very very bad practice!

0
Sebastian
Telerik team
answered on 06 Oct 2008, 07:23 AM
Hello Markus,

How to localize the grid elements through resource files you can see from the following article in the product documentation:

http://www.telerik.com/help/aspnet-ajax/grdlocalizationthruresourcefiles.html

Note that for strings that are not dependant from the underlying source data you can use direct declarative reference to the relevant resource file fields (see the bottom section of the topic).

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 2
answered on 06 Oct 2008, 07:36 AM
Hi,

I know this article, but by using that approach I still need to have code for localization in my codebehind class.

I wanted something like:

<telerik:RadGrid ID="rgActionItems" runat="server"
        Skin="Office2007"
        AllowMultiRowEdit="True"
        AllowSorting="True"
        OnNeedDataSource="rgActionItems_NeedDatasource"
        OnDetailTableDataBind="rgActionItems_DetailTableDatabind"
        OnItemDataBound="rgActionItems_ItemDataBound"
        AutoGenerateColumns="False"
        OnPreRender="rgActionItems_TablePreRender"
        OnCustomAggregate="rgActionItems_CustomAggregate"
        meta:resourcekey="rgActionItems">

and in the resourcebundle i have the following entry:

rgActionItems.NoMasterRecordsText    Custom Text



But the custom Text doesn't show up there.
Anyway, on some other pages this approach works. Are there any obstacles that have to be considered?

Thx in advance & kind regards

0
Sebastian
Telerik team
answered on 06 Oct 2008, 08:12 AM
Hello Markus,

Basically, the RadGrid localization through resource files follows the general conventions outlined in this MSDN article:

http://msdn.microsoft.com/en-us/library/fw69ke6f(VS.80).aspx

If you experience issues with some aspects of a particular localization implementation, please submit a working subset of your project, demonstrating the abnormality, attached to a regular support ticket. I will examine it in detail and will get back to you with my findings.
 
Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 2
answered on 06 Oct 2008, 08:17 AM
its rgActionItems.MasterTableView.NoMasterRecordsText and not rgActionItems.NoMasterRecordsText.

Nevermind, my mistake obv.
Tags
Grid
Asked by
arnaud
Top achievements
Rank 1
Answers by
Vladimir
Top achievements
Rank 1
Shinu
Top achievements
Rank 1
arnaud
Top achievements
Rank 1
Markus
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or