Viewing 10 replies - 1 through 10 (of 10 total)
  • Did you set wp itself to Italian in the wp-config.php? It should use the correct date format automatically if you do that.

    Thread Starter eyephone21

    (@eyephone21)

    yes, it seems set to italian..

    define('WPLANG', 'it_IT');

    I have to look into it a bit more, I thought I had fixed this problem in a previous release. I will get back to you on Monday or Tuesday about this. I’m having a long weekend away, so no time for it now.

    Thread Starter eyephone21

    (@eyephone21)

    You’re so kind! Weekend is sacred, enjoy it! :=)

    Are you comfortable editing php files? I found a fix that works fine for me when I change wp to other languages but maybe it’s good idea if you test it as well on your installation. So let me know if you can edit php files, then I will let you know what to change.

    btw, the dates that are not being translated are for custom posts, or blog posts?

    Thread Starter eyephone21

    (@eyephone21)

    The site is here ( https://mammamiporti.com/ )
    As you can see the date is in italian ( 20 MAG [Maggio = May]2014 ).
    Instead in this test page ( https://mammamiporti.com/mappa/ ) it’s in english.

    I’m not a code jedi, but i can do basic edit to php files, let’s try!

    Open the nwm-frontend-functions.php in the includes folder, search for this. Which is inside the ‘nwm_convert_date_format’ function.

    $date = new DateTime( $route_date );
    return $date->format( $date_format );

    And replace it with this:

    return mysql2date( $date_format, $route_date, true );

    Before it works, you will also need to clear the map cache. You can do this by dragging a route item to another position, and back again in the map editor. Or just add a new item and then delete it again. Also clear your browser cache before testing it out.

    Let me know if this fixes it, it did work on my installation.

    Thread Starter eyephone21

    (@eyephone21)

    Yes, it did the magic!
    Thanks a lot!
    (should i mark this as resolved?)

    I will include it in the next release then ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Date translation’ is closed to new replies.