WordPress.org

Ready to get started?Download WordPress

Forums

Date Translate
[resolved] How To? (4 posts)

  1. milkydisco
    Member
    Posted 7 months ago #

    Hi, seems like this is the plugin I need, but how do I make it work once I installed and activate the plugin?

    Or where do I put the code to make it work?

    Thanks.

    http://wordpress.org/plugins/date-translate/

  2. Gezim Basha
    Member
    Plugin Author

    Posted 7 months ago #

    Just go to your functions.php file, and inser the following snippet.

    Let's assume you're going to translate the days to English.

    $days = array(Sunday, Monday, Tuesday, Wednesday,Thursday, Friday, Saturday);
    $months = array(January, February, March, April, May, June, July, August, September, October, November, December);
    $months_short = array(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec);
    
    if(function_exists(qnt_date_translate))
        qnt_date_translate($days,$months,$months_short);

    This will do it. Just remember the week starts with Sunday. Let me know if this helps you.

  3. Gezim Basha
    Member
    Plugin Author

    Posted 6 months ago #

    Given that the OP has not replied to this post for a week, I will mark it as resolved, hoping that it has helped him/her. If the problem has persisted, a new post will be welcome.

  4. dgonier
    Member
    Posted 5 months ago #

    Where in the functions.php do I put this!!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.