Thanks for using Woffice! If you have any issue or question, feel free to open a ticket at https://woffice.io/support/

Translating the Date time picker as of WOffice 4

By default, the date time picker within projects is rendered in English language. Here is a sample screenshot on this:

 

In order to translate it, you will need to now add the code below within the functions.php file of your child theme:

 

/** * Carry out the datepicker translation by overriding the English one */ function woffice_calendar_translation() { $data = ' /* * Calendar translation */ jQuery.datetimepicker.setLocale("de");'; wp_add_inline_script( 'woffice-projects', $data,'before'); } add_action('wp_enqueue_scripts', 'woffice_calendar_translation',100);

As seen in line 9 above, we have the locale set to “de” within the code which is the German translation. You can alter this to your locale. Here is a list of the supported languages: https://xdsoft.net/jqplugins/datetimepicker/#lang .

Below is a sample output of the above code translation:

 

If you have any issue or question, feel free to open a ticket at https://woffice.io/support/