translate calendar

How to translate calendar days and months in ChronoForms 7.

Overview

The calendar translation method from CF6 does not work in CF7, and adding a new language directly to the core file risks being overwritten during updates.
Add your translation array to the specified locale file, but to prevent overwrites during updates, you should create a custom override or language file instead of modifying the core file directly.

Answered
ChronoForms v7
St StefaNovak 28 Dec, 2023
how to translate days and months in the calendar into English in chronoforms 7
St StefaNovak 01 Jan, 2024
the solution for chronoforms 6 does not work here (https://www.chronoengine.com/faqs/chronoforms/chronoforms6/calendar-settings)
St StefaNovak 03 Jan, 2024
how can I translate the months in the calendar?
St StefaNovak 04 Jan, 2024
since I didn't get any information from support, I looked for it myself. Translations are in /administrator/components/com_chronoforms7/chronoforms/views/field_calendar/behaviors/field_calendar_locale/field_calendar_locale_output.php

Here I can replace for example Russian with the required translation.

But I don't know how to add another language and how to make it so that the file doesn't get overwritten when reinstalling or updating.

Can support advise me this time since I'm paying for it?
Max_admin Max_admin 04 Jan, 2024
Answer
at that file you can find the translation array, just add your own:

'it' => [
			'days' => ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
			"fulldays" => ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
			'months' => ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
			'monthsshort' => ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', "Dic"],
		],
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
St StefaNovak 06 Jan, 2024
When I add another item in that field, it doesn't appear in the arministration as an option, I have to overwrite some existing language.
And how do I make sure that this is not overwritten when updating chronoforms?
This topic is locked and no more replies can be posted.