I want change DateFormat from DD-MM-YYYY to YYYY-MM-DD. (my DateFormat is example 2017-07-20 18:15)
I want change my Mysql data duration Time row change example: in wpdatatable is Time 91 change to 01:31 (minute, seconds). So in Php gmdate("i:s", $row["duration"]).
I want change language in Datepicker to Hungarian.
the string method will work fine to date format! (DD-MM-YYYY to YYYY-MM-DD Thx! :) Datepicker is still english. The Dateformat is 01-03-2017 21:20 i want Hungarian DatePicker and with 2017-03-01 21:20 date and time format.
And the buttons can i translate? (Clear filters, Print...) - Loco Translate!! :) thx.
just change 'Print' to appropriate text. Similarly you can find text for all other buttons in the code below.
If you don't want to translate directly in code (Because after plugin update translate will be lost) the best and the only option is to use POEdit or any other similar editor. We have write tutorial how you can translate whole plugin. You can find this post in our blog at this link.
If you want to be able to customize all strings from our plugin you can use approach from that blog post.
Hi! :)
I want change DateFormat from DD-MM-YYYY to YYYY-MM-DD. (my DateFormat is example 2017-07-20 18:15)
I want change my Mysql data duration Time row change example: in wpdatatable is Time 91 change to 01:31 (minute, seconds). So in Php gmdate("i:s", $row["duration"]).
I want change language in Datepicker to Hungarian.
How to do it?
Thx! :)
Hi,
the string method will work fine to date format! (DD-MM-YYYY to YYYY-MM-DD Thx! :) Datepicker is still english. The Dateformat is 01-03-2017 21:20 i want Hungarian DatePicker and with 2017-03-01 21:20 date and time format.
And the buttons can i translate? (Clear filters, Print...) - Loco Translate!! :) thx.
Thanks!
Hi koikaam,
Thank you for your purchase.
Unfortunately we do not support that type of date format but as you already see that workaround to change the type to string can help you out.
About the translation:
If you want just to translate mentioned buttons maybe it would be easiest to just hardcode translation in file
../wp-content/plugins/wpdatatables/source/class.wpdatatable.php
around line 2016 you can find
just change 'Print' to appropriate text. Similarly you can find text for all other buttons in the code below.
If you don't want to translate directly in code (Because after plugin update translate will be lost) the best and the only option is to use POEdit or any other similar editor.
We have write tutorial how you can translate whole plugin. You can find this post in our blog at this link.
If you want to be able to customize all strings from our plugin you can use approach from that blog post.
Hope this helps.
Best regards.
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
Hi Bogdan,
thank you for answers. The translation is cool, but the DATEPICKER,DATETIMEPICKER,TIMEPICKER with this solution is'nt translated.
In datatable so:
With this code:
$(document).ready(function(){
$('.XY').datepicker({
language: 'hu',
format: "yyyy-mm-dd"
});
In wpDataTable how to work?
Thank you!
Hi koikaam
This is not possible to achieve with the plugin build in and it require some modification.
I can give you a guide where to look.
First you will need to have this file from the link ( attachment)
Then go to ../wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.funcs.js around line 248 you will find this code:
If you use moment.js the you need to load moment-with-locales.min.js not moment.min.js. Otherwise, your locale: 'hu' will not work.
Then the code should look like this
Best regards.
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
Hi Bogdan,
thank you very much! It's perfect! :)
Best regards.
Hi koikaam,
The pleasure is mine.
Best regards.
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
Hi Bogdan,
I have the same problem and I could not figure it out. I found wdt.funcs.js and added this for Turkish:
There is no moment-with-locales.min.js in any directory and I have no clue what file I should get from the link http://eonasdan.github.io/bootstrap-datetimepicker/Options/
Please help :(
Hi hangworm,
add the
https://github.com/moment/moment/blob/develop/locale/tr.js
to the end the moment.js file. ;)
Best regards.
I added the codes, even deleted everything in moment.js but it doesn't seem to affect the datepicker. It still works in English.
So. The first is moment.js, the second is wdt.funcs.js.
Hi,
i am trying to convert the calender into turkish
i readed everything but SORRY did not understand where wil i paste the moment.js codes
is there a moment.js file in wordpress or in your plugin files
it is ok
thanks :)