• Resolved oksanaar

    (@oksanaar)


    Hi there,

    First, thanks for the wonderful plugin! It really saved me so much time.

    Secondly, I am using the Twenty Thirteen theme in Ukrainian, and I’m pretty bad at php. I can’t figure out how to localize the ‘Read more’ button. Where should I change it in the plugin to make it in my language?

    Thank you so much. I would really appreciate it, if you could help me with this.

    Oksana

    https://wordpress.org/plugins/content-views-query-and-display-post-page/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi,
    You will have to generate .po file from Content views plugin (use Poedit), set language as uk_UA, and put translate text for “Read more” string.
    Then generate .mo file from .po file.

    If you are Premium user, I will do it for free.

    Thanks

    I tried to do that
    But the pot file doesn’t have the string Read More in it. So I cannot translate it.

    Greetings,
    Jonathan

    Plugin Author Content Views

    (@pt-guy)

    I will generate .po file in next version. So you guys can translate.

    Thanks. When will that be?

    Plugin Author Content Views

    (@pt-guy)

    Maybe next some hours.
    Thanks

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    I’ve released version 1.2.2 which includes translation file for your needs.

    Thanks! I can’t see the update notification in my website, but that will soon come.

    OK. I get this warning message:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/vanramsh/public_html/wp-content/themes/bizznis/header.php:11) in /home/vanramsh/public_html/wp-content/plugins/content-views-query-and-display-post-page/includes/functions.php on line 414

    And where do I put the translated .mo file?
    I have the Dutch one, so the file name needs to be content-views-nl_NL.mo?
    Or just nl_NL.mo?
    Do I put it into the languages folder in my theme? Or in plugins?

    Both aren’t working, by the way…

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    I’ve release a new version 1.2.3 to fix warning.

    about translation, you have to put .mo file to ‘languages’ folder in plugin folder, should name it as ‘content-views-nl_NL.mo’. Then change language of WordPress site to ‘nl_NL’ in wp-config.php file.

    Thanks. The warning is gone.

    I have created a content-views-nl_NL.mo and put it into this folder
    wp-content/plugins/content-views-query-and-display-post-page/languages.

    I also have put nl_NL in wp-config.php.

    But that doesn’t work.

    Would it not be better (because of conflicts with upgrades) that the .mo file will be placed in wp-content/plugins/languages/plugins?
    In that way the .mo file will not be overwritten when there is an update.

    Greetings,
    Jonathan

    Plugin Author Content Views

    (@pt-guy)

    Hi Jonathan,
    a new version 1.2.4 of Content Views plugin has been released.
    in this version, plugin will load translation file from “/wp-content/languages/content-views” folder. So you can put translation file content-views-nl_NL.mo, content-views-nl_NL.po here.
    Thanks

    Thanks. That worked!

    Thread Starter oksanaar

    (@oksanaar)

    Hey guys!

    Thanks for the details. I must be pretty stupid actually, but originally nothing worked πŸ™‚

    THEN I figured out the issue. Just for the future, I’m posting it here. Ukrainian language files should be called content-views-uk.mo, and not content-views-uk_UA.mo

    Beats me why πŸ™‚ BUt it worked.

    Thanks a lot for prompt response!
    Oksana

    Plugin Author Content Views

    (@pt-guy)

    Hi Oksana,
    I’ve tried to translate to Ukrainian with ‘uk_UA’ postfix. It works well.
    Please make sure that in wp-config.php file you set:
    define('WPLANG', 'uk_UA');

    Hi, PT Guy.

    I have translated it (mo/po), but with each upgrade I lost them. What I’m doing wrong?

    Thanks you,
    Gabriel.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Translating 'Read More'’ is closed to new replies.