Localization not working on a Schedule control.

Hi there,

I have a Schedule control which I'm trying to change the language and localization to Spanish (es-ES), currently using Essential Studio v15.4.0.17.

In my Master Page I have added the necessary js files (as stated here and here), like this:

<%: Scripts.Render("~/Scripts/ej/ej.web.all.min.js")%>
<%: Scripts.Render("~/Scripts/ej/i18n/ej.culture.es-ES.min.js") %>
<%: Scripts.Render("~/Scripts/ej/l10n/ej.localetexts.es-ES.min.js" ) %>

and my Schedule control (on a child/content page) looks like this:

              <ej:Schedule ID="Schedule1" DataSourceID="DataSourceAppointments" runat="server"
                    Locale="es-ES" ClientIDMode="Static" TimeMode="Hour12" ShowAllDayRow="false" AppointmentWindowOpen="onAppointmentOpen"
                    AllowDelete="true" ShowTimeZoneFields="false" OnServerAppointmentCreated="Schedule1_ServerAppointmentCreated"
                    OnServerAppointmentDeleted="Schedule1_ServerAppointmentDeleted" OnServerAppointmentEdited="Schedule1_ServerAppointmentEdited" 
                    OnServerDragStop="Schedule1_ServerDragStop" OnServerResizeStop="Schedule1_ServerResizeStop" CurrentView="day" CellHeight="30px"
                    Views="Day,Week,Month,Agenda" FirstDayOfWeek="Monday" ShowAppointmentNavigator="false" IsResponsive="true" Height="703px" ShowCurrentTimeIndicator="false">
                    
                    <AppointmentSettings Id="Id" Subject="Subject" AllDay="IsAllDay" StartTime="StartTime"
                        EndTime="EndTime" Description="Description" Recurrence="IsRecurrence"
                        RecurrenceRule="RecurrenceRule" ApplyTimeOffset="false" />
                </ej:Schedule>

However text such as months, days and text related to localization is not getting translated to Spanish:



Now, there is some text that is being translated like "Topic" ("Tema") or "Start Time" ("Hora de Inicio") however this is the effect of <%: Scripts.Render("~/Scripts/ej/l10n/ej.localetexts.es-ES.min.js" ) %> but the effect of <%: Scripts.Render("~/Scripts/ej/i18n/ej.culture.es-ES.min.js") %> is not working.

I already made sure it is not something reated to the Web Browser language. Even changed the localization to es-ES in the web.config of the project.
Not matter what I try I can't make it work.

A little help is highly appreciated.

I'm attaching my master page and the content page that has the Schedule control 

Attachment: ScheduleLocaleError_a26d7df7.rar

7 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team February 8, 2018 03:50 PM UTC

Hi Pablo, 
 
Thank you for contacting Syncfusion support. 
 
We suspect that Spanish (es-ES) culture file is missing in your project which could be the cause for the issue. We have prepared the sample for your reference which can be download from the below location. 
 
Note: Kindly ensure that no script error occurs in console window. 
 
Regards, 
Karthigeyan 
 



PA Pablo Avendano Rosales February 8, 2018 07:34 PM UTC

Hi Syncfusion,

By checking the example you provided me I was able to fix the issue, it turned out to be this lines on my web.config:

  <appSettings>
    <add key="LoadEJResourcesFromAssembly" value="true" />
    <add key="EJResources" value="jsrender:true;themes:true;js" />
  </appSettings>

When I removed this from my web.config the globalization started working properly.


KK Karthigeyan Krishnamurthi Syncfusion Team February 9, 2018 04:06 AM UTC

Hi Pablo, 
 
We are happy that our solution has resolved your issue. 
 
Regards, 
Karthigeyan 



JO Jorge replied to Pablo Avendano Rosales January 29, 2021 06:25 PM UTC

Hi, 

I did it all but it still not showing calendar with correct names in portuguese.. and I´d like to show 24h times

Source schedule is at hotelaria/AgendaFusion.aspx

Btw I´m also sending attached D:\AplicWEB-Projetos\hotelaria\WebHotelaria\Scripts\ej\l10n\ej.localetexts.pt-BR.min.js corrected.. 
and D:\AplicWEB-Projetos\hotelaria\WebHotelaria\Scripts\ej\i18n\ej.culture.pt-BR.min.js


HB Hareesh Balasubramanian Syncfusion Team February 2, 2021 10:40 AM UTC

Hi Jorge, 
  
Thanks for the update. 
  
We have validated your shared sample at our end and in that, you have wrongly mentioned that locale property in inside the AppointmentSettings’s tag that could be the reason for the reported problem and for the same, we have modified your shared sample using locale property of the Scheduler, which can be downloaded from the following link. 
  
  
        <ej:Schedule ClientIDMode="Static" runat="server" ID="Schedule1" CurrentDate="6/5/2017" CurrentView="Week" Locale="pt-BR" Width="100%"> 
            <AppointmentSettings Id="Id" Subject="Subject" AllDay="AllDay" StartTime="StartTime" EndTime="EndTime" Description="Description" Recurrence="Recurrence" RecurrenceRule="RecurrenceRule" /> 
        </ej:Schedule> 
  
Kindly try the above solution and get back to us if you need any further assistance. 
  
We will happy to assist you. 
  
Regards, 
Hareesh 



JO Jorge February 11, 2021 12:13 AM UTC

sorry I made a mistake I posted my source code in open area can you delete all my sources from this post ?


VD Vinitha Devi Murugan Syncfusion Team February 11, 2021 11:59 AM UTC

Hi Jorge, 

Thanks for your update. 

As per your request, we deleted your source code and attachments from this post. 

Regards, 
Vinitha  


Loader.
Up arrow icon