We found that moment extension for language is deprecated, so this is solution for you to translate datepicker and datetimepicker to your language.
The example you see here is for Italian, so please make sure to use the names and abbreviations in Portuguese when you access the file.
Add this code in file under the comments "Apply datetimepicker" in file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.funcs.js around line 147:
moment.locale('it', {
months : ["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dezember"],
monthsShort : ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic"],
weekdaysMin : ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
week : {
dow : 1 // Monday is the first day of the week
}});
And also, around line 160 add " locale: 'it' ", so that segment looks like this:
Then scroll down to around line 196, and add another instance of " locale: 'it' " to the datetimepicker so it looks like this:
Do not forget to add a comma ( , ) after " useCurrent: false " (see screenshots above). If you forget that, this will not work.
You have to add a line of code in file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 1006:
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
Hi,
Although the site is configured with the default language in Portuguese, the calendar is in English. How can you translate it?
Hello fullwiz29
Thank you for your purchase.
The calendar is being pulled from our code.
We found that moment extension for language is deprecated, so this is solution for you to translate datepicker and datetimepicker to your language.
The example you see here is for Italian, so please make sure to use the names and abbreviations in Portuguese when you access the file.
Add this code in file under the comments "Apply datetimepicker" in file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.funcs.js around line 147:
And also, around line 160 add " locale: 'it' ", so that segment looks like this:
Then scroll down to around line 196, and add another instance of " locale: 'it' " to the datetimepicker so it looks like this:
Do not forget to add a comma ( , ) after " useCurrent: false " (see screenshots above). If you forget that, this will not work.
You have to add a line of code in file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 1006:
So it looks like this:
Please take a look at how it looks on my end after applying these changes:
Please let me know if you were able to achieve the same results.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, I tried but it doesn't work :(
Hi, Matteo
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
We will respond on your ticket https://tmsplugins.ticksy.com/ticket/3061031/ and we will go forward from there. Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables