Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar - Literal vs. Label Field


Go to End


1465 Views

Avatar
t00thy

Community Member, 31 Posts

23 June 2011 at 1:19am

Edited: 23/06/2011 1:20am

Hi,

I have problem with Czech diacritics (ěščřžýáíé).

In CalendarEvent.php i have

164	new LiteralField('wrapper2','<div id="Form_EditForm_DailyInterval_Wrapper">'),
165		new FieldGroup(
166			new LabelField($name = "every1", $title = _t("CalendarEvent.EVERY","Every ")),
167			new DropdownField('DailyInterval', '', self::map_interval()),
168			new LabelField($name = "days",$title = _t("CalendarEvent.DAYS"," day(s)"))
169		),

The czech translation of Every is "Každý".

When I have LabelField on line 166, I have in CMS "Každý"
When I change it to LiteralField, I have normal "Každý".

I set language for all website to cs_CZ translation and I have not any problem i whole site. Only in LabelField.

Have anybody some idea what can do that?