Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matthew Fries

    (@brewermfnyc)

    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.

    Thread Starter battelli

    (@battelli)

    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.

    Plugin Author Matthew Fries

    (@brewermfnyc)

    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?

    Thread Starter battelli

    (@battelli)

    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.

    Plugin Author Matthew Fries

    (@brewermfnyc)

    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

    Thread Starter battelli

    (@battelli)

    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.

    Plugin Author Matthew Fries

    (@brewermfnyc)

    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:

    https://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.
    https://www.matthewfries.com/contact

    Plugin Author Matthew Fries

    (@brewermfnyc)

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: MF Gig Calendar] How to change language?’ is closed to new replies.