Forums

Correct way to create new calendar language - Chronoforms7

ericktb 07 Jul, 2022
Greetings.

I'm trying to enable a new language for chronoforms7 calendar component.

I found out there are two php files under:
/administrator/components/com_chronoforms7/chronoforms/views/field_calendar/behaviors/field_calendar_locale
field_calendar_locale_config.php and
field_calendar_locale_output.php

These files hold internationalization configuration for the calendar. Currently these are the languages available.
 <option value=""><?php el3('Auto'); ?></option>
<option value="en"><?php el3('English'); ?></option>
<option value="de"><?php el3('German'); ?></option>
<option value="it"><?php el3('Italian'); ?></option>
<option value="ru"><?php el3('Russian'); ?></option>
<option value="nl"><?php el3('Dutch'); ?></option>
<option value="fr"><?php el3('French'); ?></option>
<option value="sp"><?php el3('Spanish'); ?></option>
As you can see, there are only a few options and we are trying to use the Portuguese language.

I believe we must change these two php files to include a new language.

That being so, i ask: is this the only option we have for enabling a new language for the calendar component? Isn't there a way to do this with javascript or directly on the form?

Best Regards.
Erick
You need to login to be able to post a reply.