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 8 years, 10 months ago by
Hrohh.
Hi!
Thanks for the feedback!
You can translate the plugin here: https://translate.ww.wp.xz.cn/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
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