German RadMessageBox, RadTreeView, RadCalenar and RadDateTimePicker

Thread is closed for posting
7 posts, 0 answers
  1. 64FD8F1C-ADB1-452E-BE18-8C4C07001663
    64FD8F1C-ADB1-452E-BE18-8C4C07001663 avatar
    127 posts
    Member since:
    Feb 2008

    Posted 26 Nov 2009 Link to this post

    Requirements

    RadControls version 2009.3 1103
    .NET version 2.0
    Visual Studio version 2008
    programming language C#

    PROJECT DESCRIPTION

    This project contains German localization providers for the Telerik RadMessageBox and RadTreeView for the Q3'09 - Release. The project also shows how to localize the RadCalenadar and the RadDateTimePicker.

    The demo project shows a RadCalendar, a RadDateTimePicker, a RadTreeView and some RadButtons for the RadMessageBox with the German localization.

    Usage: Put the following lines of code in the constructor of your form:

                // Initialize Calendar  
                this.radCalendar1.ShowFooter = true;  
                this.radCalendar1.ShowHeader = true;  
                this.radCalendar1.ShowColumnHeaders = true;  
                this.radCalendar1.ShowNavigationButtons = true;  
                this.radCalendar1.ShowFastNavigationButtons = true;  
                this.radCalendar1.DayNameFormat = Telerik.WinControls.UI.DayNameFormat.FirstTwoLetters;  
                this.radCalendar1.AllowSelect = true;  
                this.radCalendar1.AllowMultipleSelect = true;  
                this.radCalendar1.AllowViewSelector = true;  
                this.radCalendar1.ShowRowHeaders = true;  
                this.radCalendar1.AllowRowHeaderSelectors = true;  
                this.radCalendar1.FastNavigationStep = 3;  
     
                // Localize Calendar   
                this.radCalendar1.Culture = new System.Globalization.CultureInfo( "de-DE" );  
                this.radCalendar1.TodayButton.Text = "Heute";  
                this.radCalendar1.ClearButton.Text = "Löschen";  
                this.radCalendar1.NavigationNextToolTip = "nächster Monat";  
                this.radCalendar1.NavigationPrevToolTip = "vorheriger Monat";  
                this.radCalendar1.FastNavigationNextToolTip = String.Format( "nächste {0} Monate"this.radCalendar1.FastNavigationStep );  
                this.radCalendar1.FastNavigationPrevToolTip = String.Format( "vorherige {0} Monate" , this.radCalendar1.FastNavigationStep );  
     
                // Localize DateTimePicker              
                this.radDateTimePicker1.Culture = new System.Globalization.CultureInfo( "de-DE" );  
                RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior( ) as RadDateTimePickerCalendar;  
                RadCalendar calendar = calendarBehavior.Calendar as RadCalendar;  
                calendar.FastNavigationStep = 3;  
                calendar.DayNameFormat = Telerik.WinControls.UI.DayNameFormat.FirstTwoLetters;  
                calendar.NavigationNextToolTip = "nächster Monat";  
                calendar.NavigationPrevToolTip = "vorheriger Monat";  
                calendar.FastNavigationNextToolTip = String.Format( "nächste {0} Monate" , calendar.FastNavigationStep );  
                calendar.FastNavigationPrevToolTip = String.Format( "vorherige {0} Monate" , calendar.FastNavigationStep );  
                  
                // Localize MessageBox  
                RadMessageLocalizationProvider.CurrentProvider = new GermanRadMessageBoxLocalization( );  
     
                // Initalize TreeView  
                this.radTreeView1.AllowDefaultContextMenu = true;  
                this.radTreeView1.AllowAddNewInContextMenu = true;  
                this.radTreeView1.AllowDeleteInContextMenu = true;  
                this.radTreeView1.AllowDragDrop = true;  
                this.radTreeView1.AllowEdit = true;  
     
                // Localize TreeView  
                RadTreeViewLocalizationProvider.CurrentProvider = new GermanTreeViewLocalizationProvider( );  
     

     


  2. 907A8354-5E2E-4F69-95E6-B00F38D8C271
    907A8354-5E2E-4F69-95E6-B00F38D8C271 avatar
    1805 posts
    Member since:
    Jan 2017

    Posted 01 Dec 2009 Link to this post

    Hi Ramius,

    Thank you for sharing your German localization providers with the community.

    I am adding 1300 Telerik points to your account.

    Regards,

    Nikolay
    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.
  3. 64FD8F1C-ADB1-452E-BE18-8C4C07001663
    64FD8F1C-ADB1-452E-BE18-8C4C07001663 avatar
    127 posts
    Member since:
    Feb 2008

    Posted 02 Dec 2009 Link to this post

    Hi Nikolay,

    thank you for the points.

    Regards,

    Ramius

  4. 1A7DAD28-B97E-45B3-8228-65115F78576E
    1A7DAD28-B97E-45B3-8228-65115F78576E avatar
    10 posts
    Member since:
    Feb 2010

    Posted 19 Feb 2010 Link to this post

    Thanks for the sourcecode!
    I just posted a small project that uses your translations in a "generic" mode (automatic switch between languages)
  5. BF67FA93-B6E1-4208-B36E-1AC6D1CED13E
    BF67FA93-B6E1-4208-B36E-1AC6D1CED13E avatar
    20 posts
    Member since:
    Jan 2010

    Posted 12 Mar 2010 Link to this post

    Hello,
    I'm looking for a way to localize (in french) a RadDateTimePicker.
    I found the quick method : change control's properties in ASPX code.
    <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Culture="French (France)" DatePopupButton-ToolTip="Ouvrir le calendrier" TimePopupButton-ToolTip="Ouvrir la liste des heures"></telerik:RadDateTimePicker> 
    And it's like the above code-behind method...

    But I think it's not very reusable :( I don't want to copy-paste the same strings on all my RadDateTimePicker controls!
    Is it possible to localize several controls accross a web application?
    Something in App_GlobalResources like the RadEditor maybe?
    Thanks.
  6. 907A8354-5E2E-4F69-95E6-B00F38D8C271
    907A8354-5E2E-4F69-95E6-B00F38D8C271 avatar
    1805 posts
    Member since:
    Jan 2017

    Posted 12 Mar 2010 Link to this post

    Hi OL,

    Thank you for contacting us.

    I would kindly ask you to post your questions in the appropriate forum/code library sections since the current thread concerns RadControls for WinForms, but not RadControls for ASP.NET. This will allow those who may be interested in your question to find the answer more easily.

    Thank you for your understanding.

    Sincerely yours,
    Nikolay
    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.
  7. BF67FA93-B6E1-4208-B36E-1AC6D1CED13E
    BF67FA93-B6E1-4208-B36E-1AC6D1CED13E avatar
    20 posts
    Member since:
    Jan 2010

    Posted 12 Mar 2010 Link to this post

    Sorry, I didn't see this thread was about Winfoms.
    I'm posting my question on the ASP.NET Ajax forum...
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.