Need help to display a form in french...

User 2843094 Photo


Registered User
1 post

Hi. My form is on a french site so:
    I would like to have the date picker to display dates and calendar month name in French
    I would like to have validation messages like «This field is required.» in french.

I have tried to edit exported files like jquery.ui.datepicker.js, jquery.validate.js with no results

I have replaced the date field with a text field in the actual form http://cote-est-a-kamouraska.com/soumission/
Attachments:
User 187934 Photo


Senior Advisor
20,190 posts

Hi Philippe,
Is this what your looking for?
http://ericrohloff.com/coffeecup/ccforum/formbuilder/coffeecup-forms/datepicker/custom-lang/datepicker-custom-lang/datepicker-custom-lang/datepicker-custom-lang-french.html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,454 posts

Looks like that page cannot be found any more...

I'm not sure how you can translate the days and months in the date picker, Philippe, but you can make a field required and under 'Friendly hint' you can write what you want to appear in French.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,190 posts

Thanks Inger. Not sure what happen to the link when I copied and pasted.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,454 posts

I think it was cut off somewhere...

Well, You are showing the result. Do you have the instructions somewhere too? I would be interested as well, I operate websites in 4 languages :cool:
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,190 posts

I was able to paste this code into an html element.
My datepicker is named date1 and an ID of item1_date_1

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>

<script type="text/javascript">
var jQ = $.noConflict(true);
jQ(function() {

jQ("#item1_date_1").datepicker();

});
/* French for the jQuery UI date picker plugin. */
( function( factory ) {
factory( jQ.datepicker );

}( function( datepicker ) {

datepicker.regional['fr'] = {
closeText: 'Fermer',
prevText: '&#x3c;Préc',
nextText: 'Suiv&#x3e;',
currentText: 'Aujourd\'hui',
monthNames: ['Janvier','Fevrier','Mars','Avril','Mai','Juin',
'Juillet','Aout','Septembre','Octobre','Novembre','Decembre'],
monthNamesShort: ['Jan','Fev','Mar','Avr','Mai','Jun',
'Jul','Aou','Sep','Oct','Nov','Dec'],
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
weekHeader: 'Sm',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: '',
minDate: 0,
maxDate: '+12M +0D',
numberOfMonths: 1,
showButtonPanel: true
};
jQ.datepicker.setDefaults(jQ.datepicker.regional['fr']);

} ) );
</script>

You can see it working on S-drive here.
http://progrower.coffeecup.com/forms/da … stom-lang/

You should be able to change the needed variables to other languages as needed. I have one in Portuguese.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,454 posts

Great, thanks!
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.