[CLOSED] [#87] ext:Calendar: Saturday abbreviation showed as 'S&a' and should be 'Sáb'

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] [#87] ext:Calendar: Saturday abbreviation showed as 'S&a' and should be 'Sáb'

    Hi

    In ext:CalendarPanel, Saturday abbreviation showed as 'S&a' and should be 'Sáb' (week and month view mode):

    Attachment 4021
    Last edited by Daniil; Mar 14, 2013 at 8:36 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Confirmed. Also there is a lot of other similar problems.

    We have reported it to Sencha.
    http://www.sencha.com/forum/showthread.php?191439

    For now, please correct the names manually.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
     
        <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    
        <script type="text/javascript">
            Ext.onReady(function () {
                Ext.Date.dayNames = ["Domingo", "Segunda", "Ter&ccedil;a", "Quarta", "Quinta", "Sexta", "S&aacute;bado"];
                Ext.Date.monthNames = ["Janeiro", "Fevereiro", "Mar&ccedil;o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
            });
        </script>
    </head>
    <body>
        <ext:ResourceManager runat="server" Locale="pt-BR" />
        <ext:Viewport runat="server" Layout="fit">
            <Items>
                <ext:CalendarPanel runat="server">
                    <EventStore runat="server" />
                </ext:CalendarPanel>
            </Items>
        </ext:Viewport>
    </body>
    </html>
  3. #3
    Hi Daniil

    Don't works...

    The problem occurs only to 'S&a' string... In the abbreviation of weekdays only, in Week view and Month view.
  4. #4
    Did you correct its name?
  5. #5
    Yes... What property that I have change?

    S&a should be Sáb (abbreviation of Saturday)
  6. #6
    There is the "dayNames" in my example. You should correct it.
    Ext.Date.dayNames = ["Domingo", "Segunda", "Ter&ccedil;a", "Quarta", "Quinta", "Sexta", "S&aacute;bado"];
    Also, there is the "monthNames" that you could correct as well to avoid errors in the future.
  7. #7
    Hi Daniil...

    DayNames and Monthnames of your code are corrects...

    In 'Day view', weekday label is showed correct: Sábado (Saturday).
    Attachment 4025


    In 'Month view' and 'Week View', the label is showed incorrect. Just when the weekday label is abbreviated.
    Click image for larger version. 

Name:	CalendarPanel 7.png 
Views:	56 
Size:	5.9 KB 
ID:	4026

    Attachment 4027
  8. #8
    Is this
    "S&aacute;bado"
    correct?
  9. #9
    Hum... I understand... the routine that get weekday name abbreviated not consider a html tag for accentuation.

    I must replace the html tag accentuation:

    Ext.Date.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
    Replaces in my code and works fine in IE and Firefox...
  10. #10
    Opened an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/87

    Could you confirm you still need to use the override?
Page 1 of 2 12 LastLast

Similar Threads

  1. GridPanel data isnt showed
    By voldamirin in forum 1.x Help
    Replies: 1
    Last Post: Aug 04, 2010, 12:24 PM
  2. [CLOSED] Icon is not showed with the ActiveItem using CycleButton
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 05, 2010, 4:45 AM
  3. [CLOSED] .SWF aninimation is not showed using FlashComponent
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 25, 2010, 2:38 PM
  4. [CLOSED] How to remove the ComboBox firs item that it is showed by default?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 27, 2010, 8:09 AM
  5. Replies: 2
    Last Post: Jan 26, 2010, 12:54 PM

Posting Permissions