• I am using this brilliant plugin to build a grid view category and using the more feature.

    I noticed the “Continue reading” in the bottom of each post is not localized so I added the line in .pot, translated and generated the .mo with poedit and put it in the folder plugins/list-category-posts/languages

    However, that doesn’t work. Afterwards,I tried to translate several other items and none of them work.

    I am a little bit confusing as the code seems okay and I did everything just like what I did with other plugins, and only lcp doesnt work…

    Please help and give me some advice, thanks!

    —some info and codes—
    ./list-category-posts/list_cat_posts.php:
    load_plugin_textdomain( 'list-category-posts', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    ./list-category-posts/include/CatList.php:
    $lcp_more = __('Continue reading →', 'list-category-posts');

    ./list-category-posts/languages/list-category-posts_zh_CN.po:

    #: CatList.php:
    msgid "Continue reading →"
    msgstr "继续阅读→"

    https://wordpress.org/plugins/list-category-posts/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    I’ll check this out, I’ve added an issue on GitHub to work on this soon. Thanks!

    Plugin Author Fernando Briano

    (@fernandobt)

    I added the load_plugin_textdomain code to the included CatList.php file to see if this fixes the issue. I’ll update a new version soon, please check it out and let me know if it works for you.

    Thanks!

    Plugin Author Fernando Briano

    (@fernandobt)

    victorzl is this still an issue for you?
    Thanks!

    Thread Starter victorzl

    (@victorzl)

    sorry for the delay…
    I updated to the latest version 0.50.3 and upload the zh_cn po and mo, but the “Continue reading” is still there…
    Not sure why it doesn’t work…

    Plugin Author Fernando Briano

    (@fernandobt)

    victorzl, I’m releasing a new version soon. Version 0.51 should fix this. Please check it out, update your translation and if you want to contribute your translation to the plugin, that would be great!

    Cheers,

    Thread Starter victorzl

    (@victorzl)

    Hi Fernandobt, as I tested, the translation works for es_ES but not for zh_CN.
    I sent the po and mo files to you via email. Please check if there is any problem in those files. Thanks!

    Plugin Author Fernando Briano

    (@fernandobt)

    victorzl I didn’t get the e-mail. You can find my e-mail address in the plugin’s code: list_cat_posts.php.

    Thread Starter victorzl

    (@victorzl)

    yes, i sent it to that email address, and didn’t get a reject/undelivered message.
    maybe it goes to junk or trash bin…
    the title of the email is
    “RE: [WordPress.org Forums] localization doesnt work‏”

    I tried again with high priority, hope that works.

    Plugin Author Fernando Briano

    (@fernandobt)

    Got it, I’ll check it out and get back to you later. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘localization doesn't work’ is closed to new replies.