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

problem whit resources

11 Answers 156 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Miguel Nazario
Top achievements
Rank 1
Miguel Nazario asked on 13 Apr 2010, 04:47 PM
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.

11 Answers, 1 is accepted

Sort by
0
Miguel Nazario
Top achievements
Rank 1
answered on 14 Apr 2010, 12:17 PM
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.
0
Peter
Telerik team
answered on 14 Apr 2010, 05:44 PM
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.
0
Miguel Nazario
Top achievements
Rank 1
answered on 16 Apr 2010, 10:40 AM
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.
0
Peter
Telerik team
answered on 16 Apr 2010, 04:24 PM

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.
0
Miguel Nazario
Top achievements
Rank 1
answered on 16 Apr 2010, 06:41 PM

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?
0
Peter
Telerik team
answered on 19 Apr 2010, 04:54 PM
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.
0
Miguel Nazario
Top achievements
Rank 1
answered on 19 Apr 2010, 06:39 PM
 

 

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?

0
Iana Tsolova
Telerik team
answered on 20 Apr 2010, 12:28 PM
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.
0
Miguel Nazario
Top achievements
Rank 1
answered on 20 Apr 2010, 06:51 PM
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?
0
Iana Tsolova
Telerik team
answered on 21 Apr 2010, 01:16 PM
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.
0
Miguel Nazario
Top achievements
Rank 1
answered on 21 Apr 2010, 03:48 PM
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!


Tags
Scheduler
Asked by
Miguel Nazario
Top achievements
Rank 1
Answers by
Miguel Nazario
Top achievements
Rank 1
Peter
Telerik team
Iana Tsolova
Telerik team
Share this question
or