Title: Date translation
Last modified: August 21, 2016

---

# Date translation

 *  Resolved [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [12 years ago](https://wordpress.org/support/topic/date-translation-1/)
 * Hello!
    I need the date in italian, 5 Maggio 2014 instead of 5 May 2014. The 
   backend is in italian, but i couldn’t find reference to months names searching
   in the plugin folder…
 * [https://wordpress.org/plugins/nomad-world-map/](https://wordpress.org/plugins/nomad-world-map/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [12 years ago](https://wordpress.org/support/topic/date-translation-1/#post-4881257)
 * 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](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [12 years ago](https://wordpress.org/support/topic/date-translation-1/#post-4881260)
 * yes, it seems set to italian..
 * `define('WPLANG', 'it_IT');`
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [12 years ago](https://wordpress.org/support/topic/date-translation-1/#post-4881262)
 * 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](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [12 years ago](https://wordpress.org/support/topic/date-translation-1/#post-4881263)
 * You’re so kind! Weekend is sacred, enjoy it! :=)
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881269)
 * 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.
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881270)
 * btw, the dates that are not being translated are for custom posts, or blog posts?
 *  Thread Starter [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881285)
 * The site is here ( [http://mammamiporti.com/](http://mammamiporti.com/) )
    As
   you can see the date is in italian ( 20 MAG [Maggio = May]2014 ). Instead in 
   this test page ( [http://mammamiporti.com/mappa/](http://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!
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881286)
 * 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](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881287)
 * Yes, it did the magic!
    Thanks a lot! (should i mark this as resolved?)
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881288)
 * 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.

 * ![](https://ps.w.org/nomad-world-map/assets/icon-256x256.jpg?rev=984088)
 * [Nomad World Map](https://wordpress.org/plugins/nomad-world-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nomad-world-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nomad-world-map/)
 * [Active Topics](https://wordpress.org/support/plugin/nomad-world-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nomad-world-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nomad-world-map/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)

 * 10 replies
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/date-translation-1/#post-4881288)
 * Status: resolved