• On my Dutch website, I use “j F Y” as dateformat for Bucket List and I want the months to be shown in Dutch. But regardless of my nl_NL.po-file (which works fine for translation of my website and other plugins), in Bucket List the months are still shown in English language. How can I change the language of the date format? I’ve searched through the plugin files, but I can’t seem to find it. Thanks for your help.

    https://www.ads-software.com/plugins/bucket-list/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicolas

    (@ncros)

    Hello nicoswa!

    Yes we dont have handle the translation on the shortcode ??
    It’s an error, i’ll make a patch on following days to do that!

    You want to modify it on yourself ?
    If you want to try i think you have to modify :

    • line 79 of bucketlist_shortcodes.php
    • line 80 on bucketlist_widgets.php

    Just add the translation string, for example :
    if ( $displaydate ) $content .= ' <span class="date">' . __($dateFormatted) . '</span>';

    I’m not sure if that will works but something like that !
    Any case, i’ll update the plugin as soon as possible ??

    Best regards,
    Nicolas

    Thread Starter nicoswa

    (@nicoswa)

    Hello Nicolas,

    Thanks for your quick reply. I’ve tried to modify, but your translation string doesn’t seem to work. Now I’ve made a change in line 71 of bucketlist_shortcodes.php:

    $dateFormatted = mysql2date( ‘j F Y’, $task->date_checked );

    That seems to do the job ?? Looking forward to your patch though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change language date format’ is closed to new replies.