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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


2064 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?