WordPress.org

Ready to get started?Download WordPress

Forums

Localizing / Translating Blog Post Date (1 post)

  1. huminuh83
    Member
    Posted 1 year ago #

    I'm currently using the gettext function for translating strings on a wordpress site using po files in many languages. Currently all is working great, except I can't seem to figure out the post date. Mainly having a problem getting the month to translate based on which language the user has selected.

    Here is what I have so far:
    <?php get_the_date(__('F j, Y', 'theme_name')) ?>

    Withe 'theme_name' being the name of my theme. My question is also won't this just format the way the date is displayed and not actually translate the month? Anyone had to do this, I see people online talking about it, but it's mainly only for one language, while I'm translating for many languages based on which cookie they have stored.

Topic Closed

This topic has been closed to new replies.

About this Topic