Does that mean I have to translate myself or is there some functionality where I basically set a culture property or something and the GridView strings are for example in German instead of English?
26 Answers, 1 is accepted
So far RadGridView supports English, German and French. In order to use one of those predefined languages, you have to set: LocalizationManager.DefaultCulture If you want to use other languages, you will need to create your own CustomLocalizationManager as it is shown in our site.
Kind regards,Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
When I set
Telerik.Windows.Controls.LocalizationManager.DefaultCulture = new CultureInfo("de-DE");
my GridView still has english text.
Are there any extra resource DLLs that I'm missing? In the assembly folder there exists a "de" folder which contains a Telerik.Windows.Controls.resources.dll file. Is that enough?
What am I doing wrong?
Based on your feedback, we have found that German Resources for the GridView are missing from the default build. We are going to correct this for the upcoming service pack in a few days. Meanwhile, let me offer you the following workaround:
1. Unload your project from Visual Studio and then edit it - you need to correct the following line:
<SupportedCultures>de;de-DE</SupportedCultures> .
Then after saving it, reload your project.
2. Go to App.xaml.cs and add the following lines to the method for Startup:
3. Add the Resource DE.resx in the project.
I am sending you a sample project. And for more information about creating a Build that Targets a Specific Culture, you may use as a reference the following tutorial.
Please excuse us for the inconvenience. I have updated your Telerik point.
Greetings,Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
you state: 1. Unload your project from Visual Studio and then edit it - you need to correct the following line:
<SupportedCultures>de;de-DE</SupportedCultures> .
Which file do I need to edit?
you state: 3. Add the Resource DE.resx in the project
I am using a buid from 2009 - can I use this resx-File, too? Is this the one located in the sample.project?
Thanks for your help already in advance.
Michael Lutz
BITsoft
You can find detailed information about setting up the language for RadControls in our online documentation.
As for the Resource file included in the sample project - there is no problem to use it. However, it includes the translated strings in German only for RadGridView. In case you need the Resource file for all RadControls, you can update to some of our latest versions, where you will find them all.
I hope that helps. If you need any further assistance, please do not hesitate to get back to us.
Maya
the Telerik team
thank you for your fast reply. I am using VB.NET and WPF (not Silverlight) and I am still struggeling around in order to include the German ressources. So far I tried to follow the instructions as outlined in your silverlight / C# Sample. I assume that the process is similar to wpf / vb.net. However - after unloading the project and reopening it I inserted the below listed XAML code into the <PropertyGroup> Tags:
<
SupportedCultures
>de;de-DE</
SupportedCultures
>
I translated the C# code into VB.NET but I was could not find any intellisense or method or property associated with "LocalizationManager". Is this something propriate to RadGridView?
I did include the file DE.resx which I extracted from your sample application.
However - I am in need to switch within my application the language of my application; preferable without starting it again. How can I accamplish this?
Thank you for your help in advance.
best regards,
Michael Lutz
BITsoft
When localizing your application for WPF, all you need to do is to set the CurrentCulture in App.xaml.cs:
Private Sub Application_Startup(ByVal sender As Object, ByVal e As StartupEventArgs)
Thread.CurrentThread.CurrentCulture = New CultureInfo("de")
Thread.CurrentThread.CurrentUICulture = New CultureInfo("de")
End Sub
However, you need to add a reference to the Resource file for the language you want - in this case towards German. You can find those files together with the other binaries of RadControls.
Furthermore, if you insist on using the Resource file in the project attached in this forum thread - DE.resx, you can set the DefaultResouceManager like follows:
LocalizationManager.DefaultResourceManager = DE.ResourceManager
Regards,
Maya
the Telerik team
I am stucked since I do not have any idea where to find the DefaultResourceManager. As I mentioned I am missing the class LocalizationManager. Are we talking about some fance namespace which is only available within the latest version of the RadControls for WPF? I am using a build from 2009.
thanks for some more explaination.
Michael Lutz
BITsoft
The LocalizationManager is in the assembly Telerik.Windows.Controls. Thus in order to be able to work with it, you need to add a reference:
using Telerik.Windows.Controls;
It is available in our latest versions as well as in those from 2009.
Best wishes,
Maya
the Telerik team
the namespace Telerik.Windows.Contols gives me nothing similuar as the LocationManager. I find a ThemeManager and a StyleManager. But definately no LocationManager. As mentioned I am sticked (legacy issues) to RadControls WPF Q1 2009. Any idea?
best regards,
Michael Lutz
BITsoft
I am sending you a sample project with our assemblies for WPF - Q1 2009, so that you can use it as a reference.
Maya
the Telerik team
my assemblies are dated from April 2009. Yours are newer so I assume that this is the reason why I am missing the LocalizationManager. I replaced my assemblies with your newer ones but still I am missing the Intellisense for LocalizationManager. Is there anything else to do besides simple copy your files and override the older ones?
best regards,
Michael Lutz
You can upgrade to one of our next versions, in case it is most appropriate for you - to the one I have sent with the project or better - to some of our newest ones.
As for the intellisense, there is no obvious reason for missing it even with the assemblies from the sample application and unfortunately, I could be of no further assistance so far.
I believe that in any case it is recommended to upgrade to our latest version of RadControls - Q2 2010 as we have introduced many new features and fixes.
Maya
the Telerik team
thank you for your patience and your assistence. Unfortunately the project where I am using this later version is a "closed" project. If it would be one of my own project I would upgrade immediately. But in this case I am forced to stick with what I got.
So for this project I leave the localization of the RadGridView filter- and search function out.
best regards,
Michael Lutz
BITsoft
Hello,
I want to translate the gridview in french and I see that french and german are supported by default.
If I put this code Telerik.Windows.Controls.LocalizationManager.DefaultCulture = new CultureInfo("de-DE"); my grid is in german.
But if I put this code Telerik.Windows.Controls.LocalizationManager.DefaultCulture = new CultureInfo("fr-FR"); my grid stays in english.
Is there something wrong ? (perhaps the culture code ?)
I use the Q2 2010.
Thanks in advance.
Patrick
Thanks to you we have encountered the absence of the Resource file for the French translation. We immediately included it and it will be available in the release next week.
Please excuse us for the inconvenience caused. I have updated your Telerik points accordingly.
Sincerely yours,
Maya
the Telerik team
I know I am not in the right forum (as I am using the WinForm controls), but my problem is the same: Is there a german localisation for the win form controls (GridView, scheduler, etc.)?
I have tried to find this LocalisationManager class, but can't find it.
Thanks in advance,
Bernd
Hi ,
Good evening.
currently i am using telerik wpf libraries(2014.2.0279.40version) for my WPF application.now this is the time to implement localization in our project. We have Rad grid and some controls using in the application.
I have a doubt to localize the rad grid filter options.
Attached the screen shot of list of libraries what i have in my solution.
please guide me to implement in a way where there will not be more impact on existing work.
and let me know do i need to add any more libraries to localize the rad grid and other control inbuilt text/labels.
Thanks,
Sai
Good evening.
currently i am using telerik wpf libraries(2014.2.0279.40version) for my WPF application.now this is the time to implement localization in our project. We have Rad grid and some controls using in the application.
I have a doubt to localize the rad grid filter options.
Attached the screen shot of list of libraries what i have in my solution.
please guide me to implement in a way where there will not be more impact on existing work.
and let me know do i need to add any more libraries to localize the rad grid and other control inbuilt text/labels.
Thanks,
Sai
In order to localize your you need to add the satellite assemblies as well. You can find these separate files in the corresponding folder together with the other binaries in your local installation. Please check our online documentation for a reference.
Regards,
Yoan
Telerik by Progress
Hi,
Thanks for the details response.
As per the telerik forums i understand that telerik wpf controls will support only attached list of languages.
If i am running my application other than those languages.how it ll behave?
And currently i am using 2014.2.0279.40version-libraries. And i didn't the other assemblies in the same version. If i use other version of sattelite assemblies still controls localization will support?
And in the earlier query i have attached the image of list of assemblies what i am having right now.
Thanks in advnace
Sai
If you want to translate your controls to a language different from the default available ones, you will need to create a custom LocalizationManager. Please check the Localization Using Custom Localization Manager section of this help article. Using a custom LocalizationManager does not depend on control's version, so I think this approach will be suitable for you.
Regards,
Yoan
Telerik by Progress
Thank you Yoan.
I able ti implement localization with resource manager approach successfully.
Hi Yoan,
I able ti implement localisation with resource manager approach successfully.
But i found one of the text is not been translated due to key is not available. i have attached the screen shot(gridview) of the gridvew and keys which will use for translation. But for "aA" i didn't find any key to provide translated text through resx file.
And after doing localisation some of the label lenght got increaded in the radgrid filter window. text is not fitting in the window.edges are getting cut at end.
please take the screen shot (filterwidth) of the filter window and suggest me how to increase the width of the filter window to display all the text in all the languages.
This string is not localized. Actually, this button is part of our StringFilterEditor control. Here is its template:
<
ControlTemplate
x:Key
=
"StringFilterEditorTemplate"
TargetType
=
"filteringEditors:StringFilterEditor"
>
<
Grid
MinWidth
=
"100"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBox
Text
=
"{Binding Text, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
VerticalAlignment
=
"Stretch"
telerik:TextBoxBehavior.UpdateTextOnEnter
=
"True"
telerik:TextBoxBehavior.SelectAllOnGotFocus
=
"True"
/>
<
telerik:RadToggleButton
Grid.Column
=
"1"
MinWidth
=
"20"
IsChecked
=
"{Binding IsCaseSensitive, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
Visibility
=
"{Binding MatchCaseVisibility, RelativeSource={RelativeSource TemplatedParent}}"
FontSize
=
"{Binding FontSize,RelativeSource={RelativeSource TemplatedParent}}"
Content
=
"aA"
Margin
=
"2,0,0,0"
>
<
ToolTipService.ToolTip
>
<
ToolTip
telerik:LocalizationManager.ResourceKey
=
"GridViewFilterMatchCase"
/>
</
ToolTipService.ToolTip
>
</
telerik:RadToggleButton
>
</
Grid
>
</
ControlTemplate
>
<
Style
x:Key
=
"StringFilterEditorStyle"
TargetType
=
"filteringEditors:StringFilterEditor"
>
<
Setter
Property
=
"Template"
Value
=
"{StaticResource StringFilterEditorTemplate}"
/>
<
Setter
Property
=
"IsTabStop"
Value
=
"False"
/>
<
Setter
Property
=
"SnapsToDevicePixels"
Value
=
"True"
/>
</
Style
>
You can easily localize it by replacing the content of the RadToggleButton with custom localizable string like so:
<
telerik:RadToggleButton
Grid.Column
=
"1"
MinWidth
=
"20"
IsChecked
=
"{Binding IsCaseSensitive, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
Visibility
=
"{Binding MatchCaseVisibility, RelativeSource={RelativeSource TemplatedParent}}"
FontSize
=
"{Binding FontSize,RelativeSource={RelativeSource TemplatedParent}}"
telerik:LocalizationManager.ResourceKey
=
"GridViewFilter_aA"
Margin
=
"2,0,0,0"
>
Then you can translate this string using your custom localization manager:
case "GridViewFilter_aA":
return "test";
}
return base.GetStringOverride(key);
As for the other question - you can set a simple style for increasing the width of the FilteringControl:
<
Style
TargetType
=
"telerik:FilteringControl"
>
<
Setter
Property
=
"MinWidth"
Value
=
"300"
/>
</
Style
>
I hope this helps.
Regards,
Yoan
Telerik by Progress
Thank you yoan.
I able to fix the width issue.
i will try to localise the "aA" and will let you know if i face any difficulty to do this.