Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    The current version of plugin allows only two date formats dd-mm-yyyy and mm-dd-yyyy. If the date’s format is really important to your project, please contact us through our support page, to offer you our custom coding services:

    https://wordpress.dwbooster.com/support

    Hi. Where can I translate date formats?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want use any of available dates formats: dd-mm-yyyy or mm-dd-yyyy, you only should select the date field, and modify the “Date Format” option.

    Now, if you want display the element of datepicker in a different language, for example in French. You should create a new file, with the preferred name (for example 00_datepicker_lang.js), in the “/wp-content/plugins/calculated-fields-form/js/fields-public/” directory, and paste the following code in the file’s content:

    $.datepicker.regional[‘fr’] = {clearText: ‘Effacer’, clearStatus: ”,
    closeText: ‘Fermer’, closeStatus: ‘Fermer sans modifier’,
    prevText: ‘<Préc’, prevStatus: ‘Voir le mois précédent’,
    nextText: ‘Suiv>’, nextStatus: ‘Voir le mois suivant’,
    currentText: ‘Courant’, currentStatus: ‘Voir le mois courant’,
    monthNames: [‘Janvier’,’Février’,’Mars’,’Avril’,’Mai’,’Juin’,
    ‘Juillet’,’Ao?t’,’Septembre’,’Octobre’,’Novembre’,’Décembre’],
    monthNamesShort: [‘Jan’,’Fév’,’Mar’,’Avr’,’Mai’,’Jun’,
    ‘Jul’,’Ao?’,’Sep’,’Oct’,’Nov’,’Déc’],
    monthStatus: ‘Voir un autre mois’, yearStatus: ‘Voir un autre année’,
    weekHeader: ‘Sm’, weekStatus: ”,
    dayNames: [‘Dimanche’,’Lundi’,’Mardi’,’Mercredi’,’Jeudi’,’Vendredi’,’Samedi’],
    dayNamesShort: [‘Dim’,’Lun’,’Mar’,’Mer’,’Jeu’,’Ven’,’Sam’],
    dayNamesMin: [‘Di’,’Lu’,’Ma’,’Me’,’Je’,’Ve’,’Sa’],
    dayStatus: ‘Utiliser DD comme premier jour de la semaine’, dateStatus: ‘Choisir le DD, MM d’,
    dateFormat: ‘dd/mm/yy’, firstDay: 0,
    initStatus: ‘Choisir la date’, isRTL: false};

    $.datepicker.setDefaults($.datepicker.regional[‘fr’]);

    You can create your own language file.

    Best regards.

    I don’t have “fields-public” in js directory.
    I made a new file with this code in russian, but it does not work. I’ve put it in js directory.
    Code:
    $.datepicker.regional[‘ru’] = {clearText: ‘Удалить’, clearStatus: ”,
    closeText: ‘Закрыть’, closeStatus: ‘Fermer sans modifier’,
    prevText: ‘<Пред’, prevStatus: ‘Предыдущий месяц’,
    nextText: ‘След>’, nextStatus: ‘Следующий месяц’,
    currentText: ‘Текущий’, currentStatus: ‘Текущий месяц’,
    monthNames: [‘Январь’,’Февраль’,’Март’,’Апрель’,’Май’,’Июнь’,
    ‘Июль’,’Август’,’Сентябрь’,’Октябрь’,’Ноябрь’,’Декабрь’],
    monthNamesShort: [‘Янв’,’Фев’,’Мар’,’Апр’,’Май’,’Июн’,
    ‘Июл’,’Авг’,’Сен’,’Окт’,’Ноя’,’Дек’],
    monthStatus: ‘Смотреть ещё месяц’, yearStatus: ‘Смотреть ещё год’,
    weekHeader: ‘Sm’, weekStatus: ”,
    dayNames: [‘Воскресенье’,’Понедельник’,’Вторник’,’Среда’,’Четверг’,’Пятница’,’Суббота’],
    dayNamesShort: [‘Вос’,’Пон’,’Вто’,’Сре’,’Чет’,’Пят’,’Суб’],
    dayNamesMin: [‘Вс’,’Пн’,’Вт’,’Ср’,’Чт’,’Пт’,’Сб’],
    dayStatus: ‘Используйте DD как первый день недели’, dateStatus: ‘Выберите ДД/ММ/ГГГГ’,
    dateFormat: ‘дд/мм/гг’, firstDay: 0,
    initStatus: ‘Выберите дату’, isRTL: false};
    $.datepicker.setDefaults($.datepicker.regional[‘ru’]);

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you don’t have the “fields-public” directory in the “/wp-content/plugins/calculated-fields-form/js/fields-public/” location, I recommend you to install the latest plugin update.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing Date Format’ is closed to new replies.