Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Hi.
    The plugin is partially set up for translation, but I’ve been waiting for the first person to express interest in translating before finishing that off.

    I’m managing the translations at https://localise.biz/ I can add the pt-BR locale and invite you as a translator if you like.

    If you prefer to just work in POEdit then you can start from the lang/twitter-api.pot file in the plugin and send me your .po file

    Thread Starter Leandro Dimitrio

    (@leandrodimitrio)

    Sure thing!

    I think we can carry it on through localize.biz… what do you say?

    Plugin Author Tim W

    (@timwhitlock)

    closing this, as we’ve taken the conversation to email.
    If anyone else wants to translate a locale, get in touch ??

    Thread Starter Leandro Dimitrio

    (@leandrodimitrio)

    One thing I had to change manually in latest-tweets.php, in order to have the date displayed according to our local settings, was to use date_i18n.

    In line 60, I changed from:

    $final = apply_filters('latest_tweets_render_tweet', $html, $date, $link );
                if( $final === $html ){
                    $final = '<p class="tweet-text">'.$html.'</p>'.
                             '<p class="tweet-details"><a href="'.$link.'" target="_blank">'.$date.'</a></p>';
                }
                $rendered[] = $final;

    To:

    $final = apply_filters('latest_tweets_render_tweet', $html, $date, $link );
                if( $final === $html ){
    				$newdate = date_i18n("j \d\e F \d\e Y, G:i", strtotime($created_at));
                    $final = '<p class="tweet-text">'.$html.'</p>'.
                             '<p class="tweet-details"><a href="'.$link.'" target="_blank">'.$newdate.'</a></p>';
                }
                $rendered[] = $final;
    Thread Starter Leandro Dimitrio

    (@leandrodimitrio)

    Even better, I changed line 63 from:

    $newdate = date_i18n("j \d\e F \d\e Y, G:i", strtotime($created_at));

    to

    $newdate = date_i18n(get_option('date_format') . ', ' . get_option('time_format'), strtotime($created_at));

    That way, it gets both date and time from WP’s database ??

    Cheers

    Plugin Author Tim W

    (@timwhitlock)

    Thanks for this.
    I’ll merge it in the next time I do a release

    Hey, what about a german translation? I’ve already translated the .po file. Do you have a documentation for translation your Plugin?

    Best regards,
    John

    Plugin Author Tim W

    (@timwhitlock)

    Hi David.
    Thanks for translating the PO file, but somebody did translate it already and this is in release 1.0.8.

    You’re welcome to look it through though. We use https://localise.biz to track the translations. If you register on the site, I’ll add you to the project.

    Thanks.

    Hey Tim,
    thanks for your reply. I’ve updated the Extension, but it seems that there are some missing translations. I also have registered an account for Loco.

    regards,
    john

    Is there a way to translate it to dutch? I have tried the make my own .po and it won’t show it. I only need to translate like ”minutes ago” and hours.
    Thanks

    Plugin Author Tim W

    (@timwhitlock)

    @gameprime you have to compile the PO into an MO file and also add nl to the list of available languages within the plugin code.

    Translations are maintained in Loco. If you register, I’ll add you to my project. Then I can release your translations in the next version of the plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Translating this plugin’ is closed to new replies.