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

Translate filter options from GridView

8 Answers 129 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 22 Dec 2009, 12:10 PM
Hello,

I would like translate the filter options text from GridView, but I canĀ“t, is posible?

Thanks,

Salu2,
Pablo

8 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 22 Dec 2009, 12:49 PM
Hello Pablo,

You can use the approach demonstrated in this demo:
http://demos.telerik.com/silverlight/#GridView/Localization

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Missing User
answered on 22 Dec 2009, 01:16 PM
Thanks!!!
0
Missing User
answered on 30 Dec 2009, 11:48 AM
I am doing that web explaind, but i canĀ“t translate filter option from GridView... WebBrowser display me a silverlight exception bad property...

this is mi code: for spanish class. is the same in your web but i chage for spanish...

namespace Telerik.Windows.Examples.GridView.Localization  
{  
    using System;  
 
 
    /// <summary>  
    ///   A strongly-typed resource class, for looking up localized strings, etc.  
    /// </summary>  
    // This class was auto-generated by the StronglyTypedResourceBuilder  
    // class via a tool like ResGen or Visual Studio.  
    // To add or remove a member, edit your .ResX file then rerun ResGen  
    // with the /str option, or rebuild your VS project.  
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder""2.0.0.0")]  
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]  
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]  
    internal class Spanish  
    {  
 
        private static global::System.Resources.ResourceManager resourceMan;  
 
        private static global::System.Globalization.CultureInfo resourceCulture;  
 
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance""CA1811:AvoidUncalledPrivateCode")]  
        internal Spanish()  
        {  
        }  
 
        /// <summary>  
        ///   Returns the cached ResourceManager instance used by this class.  
        /// </summary>  
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]  
        internal static global::System.Resources.ResourceManager ResourceManager  
        {  
            get 
            {  
                if (object.ReferenceEquals(resourceMan, null))  
                {  
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager(typeof(Spanish));  
                    resourceMan = temp;  
                }  
                return resourceMan;  
            }  
        }  
 
        /// <summary>  
        ///   Overrides the current thread's CurrentUICulture property for all  
        ///   resource lookups using this strongly typed resource class.  
        /// </summary>  
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]  
        internal static global::System.Globalization.CultureInfo Culture  
        {  
            get 
            {  
                return resourceCulture;  
            }  
            set 
            {  
                resourceCulture = value;  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Adresse.  
        /// </summary>  
        internal static string Address  
        {  
            get 
            {  
                return ResourceManager.GetString("Address", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Bool.  
        /// </summary>  
        internal static string Bool  
        {  
            get 
            {  
                return ResourceManager.GetString("Bool", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Stadt.  
        /// </summary>  
        internal static string City  
        {  
            get 
            {  
                return ResourceManager.GetString("City", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Firmenname.  
        /// </summary>  
        internal static string CompanyName  
        {  
            get 
            {  
                return ResourceManager.GetString("CompanyName", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Kontaktperson Name.  
        /// </summary>  
        internal static string ContactName  
        {  
            get 
            {  
                return ResourceManager.GetString("ContactName", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Land.  
        /// </summary>  
        internal static string Country  
        {  
            get 
            {  
                return ResourceManager.GetString("Country", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Kunde ID.  
        /// </summary>  
        internal static string CustomerID  
        {  
            get 
            {  
                return ResourceManager.GetString("CustomerID", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Fax.  
        /// </summary>  
        internal static string Fax  
        {  
            get 
            {  
                return ResourceManager.GetString("Fax", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Filter leeren.  
        /// </summary>  
        internal static string GridViewClearFilter  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewClearFilter", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Filtern.  
        /// </summary>  
        internal static string GridViewFilter  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilter", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Und.  
        /// </summary>  
        internal static string GridViewFilterAnd  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterAnd", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to EnthƤlt.  
        /// </summary>  
        internal static string GridViewFilterContains  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterContains", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Endet mit.  
        /// </summary>  
        internal static string GridViewFilterEndsWith  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterEndsWith", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Enhalten.  
        /// </summary>  
        internal static string GridViewFilterIsContainedIn  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsContainedIn", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Gleich.  
        /// </summary>  
        internal static string GridViewFilterIsEqualTo  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsEqualTo", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to GrĆ¶ĆŸer als.  
        /// </summary>  
        internal static string GridViewFilterIsGreaterThan  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsGreaterThan", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to GrĆ¶ĆŸer oder gleich.  
        /// </summary>  
        internal static string GridViewFilterIsGreaterThanOrEqualTo  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsGreaterThanOrEqualTo", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Kleiner als.  
        /// </summary>  
        internal static string GridViewFilterIsLessThan  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsLessThan", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Kleiner oder gleich.  
        /// </summary>  
        internal static string GridViewFilterIsLessThanOrEqualTo  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsLessThanOrEqualTo", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Ist nicht gleich.  
        /// </summary>  
        internal static string GridViewFilterIsNotEqualTo  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterIsNotEqualTo", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Alles auswƤhlen.  
        /// </summary>  
        internal static string GridViewFilterSelectAll  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterSelectAll", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Zeilen mit dem Wert.  
        /// </summary>  
        internal static string GridViewFilterShowRowsWithValueThat  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterShowRowsWithValueThat", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Beginnt mit.  
        /// </summary>  
        internal static string GridViewFilterStartsWith  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewFilterStartsWith", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Ziehen Sie einen Spaltenkopf auf diese FlƤche, um nach dieser Spalte zu gruppieren..  
        /// </summary>  
        internal static string GridViewGroupPanelText  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewGroupPanelText", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Gruppenkopf.  
        /// </summary>  
        internal static string GridViewGroupPanelTopText  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewGroupPanelTopText", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Gruppiert nach:.  
        /// </summary>  
        internal static string GridViewGroupPanelTopTextGrouped  
        {  
            get 
            {  
                return ResourceManager.GetString("GridViewGroupPanelTopTextGrouped", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Telefon.  
        /// </summary>  
        internal static string Phone  
        {  
            get 
            {  
                return ResourceManager.GetString("Phone", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to PLZ.  
        /// </summary>  
        internal static string PostalCode  
        {  
            get 
            {  
                return ResourceManager.GetString("PostalCode", resourceCulture);  
            }  
        }  
 
        /// <summary>  
        ///   Looks up a localized string similar to Staat.  
        /// </summary>  
        internal static string Region  
        {  
            get 
            {  
                return ResourceManager.GetString("Region", resourceCulture);  
            }  
        }  
    }  


and in mi MainPage:   

LocalizationManager.DefaultResourceManager = Telerik.Windows.Examples.GridView.Localization.Spanish.ResourceManager;

What is the problem?

Salu2,
Pablo
0
Accepted
Missing User
answered on 04 Jan 2010, 05:01 PM
Hello xax_007,

I've tried to reproduce your problem, but unfortunately I was not able to. I'm attaching a sample application that demonstrates how to localize the gridview control with our latest official binaries.
In the resource file I've put some sample values for the filter options like "ClearFilter_SP" for example.
You can just replace them with the actual ones.

Can you please examine the application that I have attached. Maybe I am doing something differently than you and that is why I cannot reproduce the behavior.

Kind regards,

Anastasia
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Missing User
answered on 05 Jan 2010, 08:11 AM
Thanks Anastasia,

This example help me very much.

Salu2,
Pablo
0
Luis
Top achievements
Rank 1
answered on 17 Oct 2014, 10:49 PM
hi, 
I am translating the Spanish filter with a resource file as the example of documentation of Telerik, but I have a problem when the column is empty, how could solve or what would be the key resource?

Thanks,

Luis
0
Dimitrina
Telerik team
answered on 20 Oct 2014, 08:14 AM
Hello Luis,

The key for the [empty] value is: 
GridViewFilterDistinctValueStringEmpty.

Do you still experience any problem after localizing it?

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Luis
Top achievements
Rank 1
answered on 20 Oct 2014, 03:02 PM
no problem , all good.
thank you very much for your help.

Luis.
Tags
Menu
Asked by
Missing User
Answers by
Vlad
Telerik team
Missing User
Missing User
Luis
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or