Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Hrohh

    (@hrohh)

    also, it would be nice, if load_plugin_textdomain accept wp-content/languages/plugins folder

    EDIT: sorry, it is ok, it works

    • This reply was modified 7 years, 3 months ago by Hrohh.
    Plugin Author EverPress

    (@everpress)

    Hi!

    Thanks for the feedback!

    You can translate the plugin here: https://translate.www.ads-software.com/projects/wp-plugins/mailster-live

    Thread Starter Hrohh

    (@hrohh)

    there is bad textdomain

    mailster_live
    should be
    mailster-live

    for example in views/metabox.php #24

    Thread Starter Hrohh

    (@hrohh)

    in mailster-live.php

    add_meta_box( ‘mailster_live’, ‘Live!’, array( &$this, ‘metabox’ ), ‘newsletter’, ‘normal’, ‘high’ );

    should be

    add_meta_box( ‘mailster_live’, __( ‘Live!’, ‘mailster-live’ ), array( &$this, ‘metabox’ ), ‘newsletter’, ‘normal’, ‘high’ );

    Thread Starter Hrohh

    (@hrohh)

    another idea is in date_i18n, i dont know how it can be done, but wordpress provide _n function for that

    %s sec ago
    %s secs ago

    Plugin Author EverPress

    (@everpress)

    Hi!

    Thanks, I’ll update the plugin asap.

    The problem with sec and secs is that we can’t rely on the PHP function _n as this is done in JavaScript. Certain languages have multiple forms for that singluar and plural.

    Regards,
    Xaver

    Thread Starter Hrohh

    (@hrohh)

    Ok thanks for info.
    I imported czech translation to glotpress. Thanks

    Thread Starter Hrohh

    (@hrohh)

    last thing

    mailster( ‘dashboard’ )->register_meta_box( ‘live’, __( ‘Live!’, ‘mailster’ ), array( &$this, ‘metabox’ ), ‘side’ );

    should be

    mailster( ‘dashboard’ )->register_meta_box( ‘live’, __( ‘Live!’, ‘mailster-live’ ), array( &$this, ‘metabox’ ), ‘side’ );

    or not? ??

    thx

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘i18n’ is closed to new replies.