problem whit resources

12 posts, 0 answers
  1. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 13 Apr 2010 Link to this post

    My Unique customer ID is: WT370784

    I create app local resources for my page using visual studio:
    WebMeetingScheduler.aspx.resx <-. default
    WebMeetingScheduler.aspx.pt.resx <- for my languange

    <%@ Page Language="C#" MasterPageFile="~/Office/Office.Master" StylesheetTheme="OfficeSkin" 
        AutoEventWireup="true" ValidateRequest="false" Codebehind="WebMeetingScheduler.aspx.cs" 
        Inherits="MeetingPointOffice.Office.WebMeetingScheduler" meta:resourcekey="PageResource1" UICulture="auto" 
        Culture="auto" %> 

    The options "auto" don't have any impact in the RadScheduler control. is this correct?

    So i add Culture="Portuguese (Portugal)" in my code:
    <telerik:RadScheduler ID="scheduler" runat="server" 
                    CustomAttributeNames="MeetingID,MeetingStateID,UserID,Subject,Description" 
                    Skin="Outlook" 
                    OnFormCreated="scheduler_FormCreated" 
                    OnClientAppointmentMoveStart="OnClientAppointmenMoveStartHandler" 
                    OnClientAppointmentResizeStart="OnClientAppointmentResizeStartHandler"   
                    OnFormCreating="scheduler_FormCreating"   
                    OnAppointmentDelete="scheduler_AppointmentDelete"   
                    OnAppointmentDataBound="scheduler_AppointmentDataBound"   
                      
                    Culture="Portuguese (Portugal)" 
                    meta:resourcekey="schedulerResource1" > 

    I start to see Portuguese language in my page, but Not everything is translated
    a1.jpg show that Today, OK, Cancel are not translated
    a2.jpg show the hours in a bat format, should be 11, 12, 13, 14, 15, 16, 17 etc

    can you help me?
    Best Regards.
  2. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 14 Apr 2010 Link to this post

    Hello again

    first problem (see a2.jpg) I workaround whit this code in page load:

    protected void Page_Load(object sender, EventArgs e)  
            {  
                // Read current browser Culture  
                System.Globalization.CultureInfo currCulture = System.Globalization.CultureInfo.CurrentCulture;  
                // Set scheduler Culture   
                scheduler.Culture = currCulture;  
                // read format from resource file  
                scheduler.HoursPanelTimeFormat = MasterPage.GetMsgFromResource("schedulerResource1.HoursPanelTimeFormat");  
            } 

    But second problem i still can not resolve (see a1.jpg)

    can you help me?
    Best Regards.
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Apr 2010 Link to this post

    Hi Miguel,

    Please, review the following topic on localization:
    http://www.telerik.com/help/aspnet-ajax/schedule_localizationtranslatingstrings.html

    Let us know if you have further questions or concerns.

    Greetings,
    Peter
    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.
  4. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 16 Apr 2010 Link to this post

    Note:
    I've read this topic before coming to the forum with difficulties
    I still can not put part of the calendar on my contry language
    see a1.jpg


    can you help me?
    Best Regards.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Apr 2010 Link to this post


    I see what you mean. Sorry for the misunderstanding. Just like RadScheduler, not all labels in RadCalendar are automatically localized by the Culture property for RadScheduler or the CulturInfo propertyu for RadCalendar. However, you can easily access the popup calendar for RadScheduler and set its properties. Here is how:
    protected void RadScheduler1_PreRender(object sender, EventArgs e)
       {
           RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
           popupCalendar.FastNavigationSettings.TodayButtonCaption = "[today]";
           popupCalendar.FastNavigationSettings.OkButtonCaption = "[ok]";
           popupCalendar.FastNavigationSettings.CancelButtonCaption = "[cancel]";
       }

    http://www.telerik.com/help/aspnet-ajax/how-to-access-embedded-raddatepicker-on-server-side.html


    Best wishes,
    Peter
    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.
  6. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 16 Apr 2010 Link to this post

    thanks! It works!

    Now I have exactly the same problem with my RadCalendar controls
    using the same solution I can´t put it working

    this.MyCalendar.Calendar.FastNavigationSettings.TodayButtonCaption = "xpto"
    I try to put in page PreRender and Page_Load but
    in the browser always appears the default values caption calendar buttons. Today, OK Cancel

    can you help?
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 19 Apr 2010 Link to this post

    Hello Miguel,

    I tried the following and it worked as expected:

    protected void Page_Load(object sender, EventArgs e)
       {
           RadCalendar1.FastNavigationSettings.OkButtonCaption = "[ok]";
       }

    <telerik:RadCalendar ID="RadCalendar1" runat="server" >
       </telerik:RadCalendar>

    What could be different in your case.


    All the best,
    Peter
    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.
  8. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 19 Apr 2010 Link to this post

     

     

    Note I don't have:

    RadCalendar1.FastNavigationSettings.OkButtonCaption = "[ok]"; 

    I have

    this.StartDate.Calendar.FastNavigationSettings.TodayButtonCaption = "xpto";

    My code:

    <telerik:RadDatePicker ID="StartDate" runat="server" 
             Width="83px" 
             Skin="Office2007"   
             meta:resourcekey="StartDateResource1">  
        <DatePopupButton Visible="true" runat="server" /> 
        <DateInput ID="DateInput1" runat="server" EmptyMessage=""  /> 
    </telerik:RadDatePicker> 

    Can you help me?

  9. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 20 Apr 2010 Link to this post

    Hello Miguel,

    Indeed, placing the code in the Page_Load event handler should bring you to the desired result. I used your code in the attached demo and the Today button text was properly localized on my side.

    Chek it out and let me know if I missed something from your logic out.

    Regards,
    Iana
    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.
  10. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 20 Apr 2010 Link to this post

    Hello,
    My version is older.

    I'am using VS 2005 with Rad Controls Q3 2008


    I see the problem in this version.
    Can you help?
  11. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 21 Apr 2010 Link to this post

    Hello Miguel,

    Attached is the sample modified so it runs under .NET 2.0 and uses the RadControls for ASP.NET AJAX Q3 2008 version. However the Today button is still displaying the expected text on my side (you can see the attached image for a reference).

    Greetings,
    Iana
    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.
  12. Miguel Nazario
    Miguel Nazario avatar
    15 posts
    Member since:
    Mar 2010

    Posted 21 Apr 2010 Link to this post

    Thank you very much!

    I finally discovered the problem.


    Thank you very much!
    Thank you very much!
    Thank you very much!
    Thank you very much! ...Googolplex Times!


Back to Top