WordPress.org

Ready to get started?Download WordPress

Forums

MF Gig Calendar
[resolved] How to change language? (9 posts)

  1. battelli
    Member
    Posted 1 year ago #

    Every thing is ok I've found PL file with translation but can't make it work. How can I change language?

    http://wordpress.org/extend/plugins/mf-gig-calendar/

  2. Matthew Fries
    Member
    Plugin Author

    Posted 1 year ago #

    battelli - As of 0.9.6 the dates will now display in the language of your WordPress installation. I've also got the localization stuff ready to go and will add any translations as they come in.

  3. battelli
    Member
    Posted 1 year ago #

    ok can I set it by hand? I've instaled English wordpress then put a translation to PL. Now WordPress is in my language but MF Gig stayed English.

  4. Matthew Fries
    Member
    Plugin Author

    Posted 1 year ago #

    Hey battelli - The dates should now be appearing in Polish for you. Correct?? The rest of the plugin is setup now to use a your language as well, but Polish doesn't exist yet since I don't speak any! Feel like contributing?

  5. battelli
    Member
    Posted 1 year ago #

    if I'm right MF Gig Calendar use Datepicker? There is a file in PL language there. Soo tell me in what file can I edit to make it Polish Calendar.

  6. Matthew Fries
    Member
    Plugin Author

    Posted 1 year ago #

    Oh! I will automate that for the plugin in the next version. For now (if you can't wait) you can make a quick edit yourself to this file:

    mf-gig-calendar/mf-gig-calendar.php

    Just add the link to the .js file that contains your language - put it between lines 209-210:

    echo '<script type="text/javascript" src="' . $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/datepicker-4.0.2/jquery.datepick.js"></script>';
    echo '';

    Add a line between the two so it looks like this and loads your PL language:

    echo '<script type="text/javascript" src="' . $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/datepicker-4.0.2/jquery.datepick.js"></script>';
    echo '<script type="text/javascript" src="' . $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/datepicker-4.0.2/jquery.datepick-pl.js"></script>';
    echo '';

    Hope that's clear.
    Matthew

  7. battelli
    Member
    Posted 1 year ago #

    Genius :-) Works just fine. I was trying that but I wasn't adding new line. I was editing existing. Now I know why you are the boss! Thank you a lot! I'll support your calendar. If you need any translations for PL I'm at your service.

  8. Matthew Fries
    Member
    Plugin Author

    Posted 1 year ago #

    Well - not genius, but thanks! I'd love the help with the translation. The necessary .pot file should be included in the 0.9.6.1 version of the plugin. Here's instructions on how it all works with a tool called poEdit - if you really want to help:

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

    I've never done this before, so...

    After I add a translation created using poEdit, the new language would apply to all the text in the plugin - both what you see in the Admin area and what visitors see on your site.

    Contact me through my website if you want to help.
    http://www.matthewfries.com/contact

  9. Matthew Fries
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.