WordPress.org

Ready to get started?Download WordPress

Forums

Quick Event Manager
[resolved] Change language date (4 posts)

  1. Guido
    Member
    Posted 1 year ago #

    Hi,

    Date (month) is in English language, I want to change this into my own language.

    How can I localize the date in the php file?

    Guido

    http://wordpress.org/extend/plugins/quick-event-manager/

  2. aerin
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin uses the date() function and extracts the to DMY. There is a php function called setlocale() which I should be able to use. This allows you to set your country code.

    I shall have a play tomorrow. Not sure about adding a drop down or just adding a link to the ISO list of country codes.

    Expect V1.2 very soon

  3. aerin
    Member
    Plugin Author

    Posted 1 year ago #

    I've added the function to my test site but I've only got the en_EN locale installed on my server.

    Guido, can you email me so I can send you the test code to find out if it works locally for you. Email is graham at aerin.co.uk

  4. aerin
    Member
    Plugin Author

    Posted 1 year ago #

    All sorted. The date icon will now display the date in your server locale. If you are in India and use cheap hosting in the USA then you will se US dates. But if you host locally (as you should) then all will be OK.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags