PDA

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



supera
Mar 28, 2012, 11:26 AM
Hi

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

4021

Daniil
Mar 28, 2012, 1:57 PM
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>

supera
Mar 28, 2012, 2:02 PM
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.

Daniil
Mar 28, 2012, 2:03 PM
Did you correct its name?

supera
Mar 28, 2012, 2:05 PM
Yes... What property that I have change?

S&a should be Sáb (abbreviation of Saturday)

Daniil
Mar 28, 2012, 2:15 PM
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.

supera
Mar 28, 2012, 2:57 PM
Hi Daniil...

DayNames and Monthnames of your code are corrects...

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


In 'Month view' and 'Week View', the label is showed incorrect. Just when the weekday label is abbreviated.
4026

4027

Daniil
Mar 28, 2012, 3:09 PM
Is this

"S&aacute;bado"
correct?

supera
Mar 28, 2012, 4:14 PM
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...

Daniil
Dec 26, 2012, 2:21 PM
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?

supera
Dec 27, 2012, 9:19 AM

supera
Dec 27, 2012, 10:09 AM

Daniil
Dec 27, 2012, 11:45 AM

supera
Dec 27, 2012, 12:01 PM

Daniil
Dec 27, 2012, 12:08 PM
Ok, thank you for the clarification!

Daniil
Dec 27, 2012, 1:47 PM
Sencha opened a bug ticket.

Daniil
Mar 14, 2013, 8:34 AM
It should be fixed in SVN and included to the next release (v2.2).