Tagged: ,

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #43983
    Anonymous
    Inactive

    How to change the date format on top of the Event Calendar? The default doesn’t look right to me since I’m using Chinese word press. Thanks!

    #50409
    Franky
    Keymaster

    Can you explain what’s wrong with the format? A jpg indicating the thing that’s wrong or so?

    Also, what is your locale in wp-config.php?

    #50410
    Anonymous
    Inactive

    https://www.dropbox.com/s/mr6w1gfmwrzqcoq/ScreenClip.png

    The month is translated into Chinese, but need to followed by “月” after 2013 followed by “年”, such as 2013年4月 or 2013年四月

    locale in wp-config.php, do you mean define(‘WPLANG’, ‘zh_CN’);?

    #50411
    Franky
    Keymaster

    Based on https://github.com/jquery/jquery-ui/commit/a922d4d5b659cb2fac8f5e0d6d875db81595b17b

    there seem to be new versions, so I’ll update this evening and let you try again, ok?

    #50412
    Franky
    Keymaster
    #50413
    Anonymous
    Inactive

    Thank you for your effort Franky!

    I guess I need to replace jquery.ui.datepicker-zh-CN.js and modify eme_events.php?

    #50414
    Anonymous
    Inactive

    Made change to eme_events.php, uploaded jquery.ui.datepicker-zh-CN.js and restarted EME, but it didn’t happen. I don’t know what I missed.

    #50415
    Franky
    Keymaster

    Hmm … I think I misinterpreted your image: this is not a datepicker issue, but a regular calendar issue. Indeed for now I print “$month $year” at the top there. I need to figure out how to let php handle that so it is correctly printed in Chinese (and any other language)

    #50416
    Anonymous
    Inactive

    Thanks Franky. It’s not a rush. It is still understandable. If you can tell me which php, I might be able to do a temp fix for myself.

    #50417
    Franky
    Keymaster

    Well … if I knew that, it would have been in the code already 🙂

    Any suggestion is welcome, but I think the easiest would be to add a format option for the calendar.

    #50418
    Franky
    Keymaster

    Concerning the month names: it’s a WP translation issue, see:

    http://svn.automattic.com/wordpress-i18n/zh_CN/branches/3.3/messages/zh_CN.po

    As you can see there (search for January), the short name of the month (Jan_January_abbreviation) doesn’t contain the character 月, while the full name (January) does contain it. For this you should file a bug report with wordpress.

    Now, for the year suffix and the month following the year, try this change:

    http://plugins.trac.wordpress.org/changeset/696816

    #50419
    Anonymous
    Inactive

    Thanks Franky

    #50420
    Franky
    Keymaster

    For now I changed the code to always show the “full” month name for some locales, see:

    http://plugins.trac.wordpress.org/changeset/697096

    This should completely solve your issue.

    Btw: if you’re willing to help translate EME to Chinese, just let me know!

    #50421
    Anonymous
    Inactive

    Sorry Franky. Didn’t check into this for two days. Sure I would love to help for translation. Just let me know what needs to be done. Send me an email.

    I made change as you mentioned above, but somehow “年” couldn’t show up correctly. Turned into two special characters. Now I just set it as space so at lease the year and month are in the right order. Thanks!

    #50422
    Franky
    Keymaster

    2 special characters? This means either the file is not in UTF-8: I tried it here, and it seemed to work fine. Let me check again.

    For the translation: see http://www.e-dynamics.be/bbpress/topic.php?id=388 , we’re on launchpad now.

    #50423
    Franky
    Keymaster

    Just tried it again here, this is what I have: “2013年 四月”

    Seems ok, no?

    #50424
    Anonymous
    Inactive

    We are having problem with the hosting server so I can’t try it now. I’ll let you know.

    For translation, I didn’t quite get it. Do I need to join the launchpad team to work on it?

    #50425
    Franky
    Keymaster

    Well, yes 🙂

    But if you don’t like that:

    download and install poedit. Then open the po file you want to change, and open as “template file” the eme.pot file. Then you’ll see all strings not (correctly translated). It’s very easy. Once you press save (after you finished editing), poedit compiles the mo file for you, so you can then send me the po and mo file.

    See also

    http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

    and http://codex.wordpress.org/Translating_WordPress

    #50426
    Anonymous
    Inactive

    Still two squares for me. I guess it’s my page? The other Chinese characters are showing all right though.

    #50427
    Franky
    Keymaster

    Make sure the file eme_calendar.php is in UTF-8 character set format and set ‘binary’ if using ftp to upload files.

Viewing 20 posts - 1 through 20 (of 20 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top