WordPress.org

Ready to get started?Download WordPress

Forums

Hindi Calendar Support (11 posts)

  1. pankaj
    Member
    Posted 9 years ago #

    Hi Guys
    I am working on l10n of WP for Hindi. I am running across an issue on the rendering of Calendar on the blog's index page. I guess the present logic is to pick the first letter of Days like S for Sunday. IMHO this would fail for languages like Hindi which are based on double byte characters. I guess if we can have something like Sun, Mon, Tues, or even for that matter S, M, T, W in the .pot file these can be transtlated to corresponding names in the target language.
    Thanks and keep up the good work. I will upload hi.po once it is finished.
    Pankaj

  2. pankaj
    Member
    Posted 9 years ago #

    Forgot, You can check the partial Hindi WP at
    http://pnarula.com/wpd/

  3. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    Wow, that is really cool.

  4. fatherofpip
    Member
    Posted 9 years ago #

    sweet :-)

  5. OperaManiac
    Member
    Posted 9 years ago #

    how do u learn to speak such funky hindi! :D
    my hindi is corrupt with english words... :P

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    I dunno how I started writing and speaking like this. Must have picked up from BayArea(http://www.bayarea.com) since there are so much native Hindi speakers around :D
    BTW no one replied back to my original post.
    Pankaj

  7. pankaj
    Member
    Posted 9 years ago #

    Me Again
    It would be great if someone can make get_calendar function in template-functions-general.php i18n. Then I can work my l10n magic on it. Think think this is the relavant code

    echo '<table id="wp-calendar">
    <caption>' . $month[zeroise($thismonth, 2)] . ' ' . date('Y', $unixmonth) . '</caption>
    <thead>
    <tr>';
    foreach ($weekday as $wd) {
    echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">" . substr($wd, 0, $daylength) . '</th>';
    }
    echo '
    </tr>
    </thead>
    <tfoot>
    <tr>';

    It would be great if this could be done before 1.2 beta is out. Which I think might be any time now :D
    Pankaj

  8. carthik
    Member
    Posted 9 years ago #

    pankaj, maybe you can try posting this in the new i18n l10n thread that rboren created to get the devs' attention.
    I think it's a valiant effort, but some of the compound letters appear broken in my browser. Must be a browser problem though, I guess.

  9. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    Pankaj, that code takes the first letter from the day names. What would be the l10n equivilent?

  10. Anonymous
    Unregistered
    Posted 9 years ago #

    Pankaj
    This is anjan. You have to teachme poedit itself. I can't see those translated charcters correctly. What to do. Couldn't find utf-8 or hindi or devnagri option.Where to look for.

  11. pankaj
    Member
    Posted 9 years ago #

    I have taken this to the following thread as suggested
    http://wordpress.org/support/6/4541/
    Pankaj

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags