• Translation files are not loaded.
    I found out that this is caused by two problems.

    1. The load_plugin_textdomain( 'recent_posts_with_excerpts', ... should be load_plugin_textdomain( '<strong>recent-posts-with-excerpts</strong>', ...
    And plugin_dir_path(__FILE__) should be plugin_basename(__FILE__) although the original is working in my case.

    2. All like: php _e('Title:', 'recent_posts_with_excerpts') should point to the correct $domain and replaced by php _e('Title:', '<strong>recent-posts-with-excerpts</strong>')

    In .pot is missing: Ignore sticky posts?

    (With a ‘find and replace’ the names of css are changed, so child styles should be changed also then. The ‘-‘ in the function name at the end is not allowed, so this should not be altered.)

    https://wordpress.org/plugins/recent-posts-with-excerpts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Hendrik57

    (@hendrik57)

    Missing translation reference in çategories’.
    Line 208 original:

    <p><label for="<?php echo $this->get_field_id('cat'); ?>"><?php _e('Limit to category:', 'recent_posts_with_excerpts'); ?>
            <?php wp_dropdown_categories(array('name' => $this->get_field_name('cat'), 'show_option_all' => __('None (all categories)'), 'hide_empty'=>0, 'hierarchical'=>1, 'selected'=>$instance['cat'])); ?></label></p>

    Should be:

    <p><label for="<?php echo $this->get_field_id('cat'); ?>"><?php _e('Limit to category:', 'recent-posts-with-excerpts'); ?>
            <?php wp_dropdown_categories(array('name' => $this->get_field_name('cat'), 'show_option_all' => __('None (all categories)', 'recent-posts-with-excerpts'), 'hide_empty'=>0, 'hierarchical'=>1, 'selected'=>$instance['cat'])); ?></label></p>

    Then the option will be translated.

    Thread Starter Hendrik57

    (@hendrik57)

    The is a post named: [resolved] Translate Continue Reading using recent-posts-with-excerpts.

    The problem is not solved there because it could not be reproduced.
    Reproduce through the default settings of WP: Settings, Reading, For each article in the feed display: full text or summary.

    If set to full text, below the plugin ‘more….” there will be the default text ‘Read more’.

    Set this option to ‘display summary’ (exerpt). Then the plugin settings are used. So this is not a translation issue!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translations not loaded, none!’ is closed to new replies.