Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    You should use the code button (not b-quote) to display your code. It’s unreadable now. Can you post it again?

    All themes strings should normally be translatable with the plugin codestyling localization. If you can’t translate it with this plugin, you can ask support to the wp-casa team. If there is an internationalization issue in their theme, I am sure they will want to help you.

    Thread Starter catlai

    (@catlai)

    The coding is:

    function excerpt_read_more_link($output) {
    global $post;
    return $output . 'ID) . '">Read More...';
    }
    add_filter('the_excerpt', 'excerpt_read_more_link');

    I wanna translate that “Read More…” text between Chinese and Eng.

    I’ve try everything, like abstract plugin and wpcasa forum, but no one can solve my problem.

    Thanks anyway!

    Plugin Author Chouby

    (@chouby)

    The string is not internationalized (not translatable).
    The correct way is :

    return $output . 'ID) . '">' . __('Read More...', 'theme_domain');

    You should replace ‘theme_domain’ by the correct string for your theme (look for the function load_theme_texdomain in your theme files to find the right name of your theme text domain)
    Then use the plugin codestyling localization to translate it.

    I recommend doing a child theme to avoid overwriting of your modification at next update. And also submit the correction to the theme author.

    Thread Starter catlai

    (@catlai)

    thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to translate "Read more" at excerpt field’ is closed to new replies.