• Resolved mistvan

    (@mistvan)


    Hello,

    first of all, very nice plugin πŸ™‚

    What about localization of “Related text or Call-To-Action” from admin of your plugin please?

    There is wordpress function for that https://codex.ww.wp.xz.cn/Function_Reference/_2.
    For example $translated = __( 'Read more', 'inline-related-posts' );

    And you need then enable loading of localization files:

    add_action( 'plugins_loaded', 'irp_load_textdomain' );
    function irp_load_textdomain() {
      load_plugin_textdomain( 'irp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    }

    That makes possibility to load then .po/.mo language file what is standard in wordpress and return to $translated variable text Read more localized.

    You can check polylang plugin too. It is very good for translation so you can replace your one input with polylang API and as result in your admin there could be many inputs based on your polylang language setup.

    Many thanks

    Many thanks!

    https://ww.wp.xz.cn/plugins/intelly-related-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor intellywp

    (@intellywp)

    Hi Mistvan,
    thanks a lot for your tip, we’ve glad to say that we have approved your improvement in our last meeting.

    Unfortunately, I can’t say exactly when will be out.
    Thank you again for your suggestion by the entire IntellyWP team!

    Stefan

    Please address this issue on the next upgrade.

    Plugin Contributor intellywp

    (@intellywp)

    Hi Paulovsky,
    thanks again for your suggestion.

    We are working to a next plugin update, unfortunately, I can’t say exactly when it will be available.

    Best regards

    Alex

    • This reply was modified 9 years, 3 months ago by intellywp.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Localization’ is closed to new replies.