• Resolved Aleksandr

    (@sshurick)


    As you can see from this screenshot, I’ve translated ‘continue reading’ string in Loco Translate: https://yadi.sk/i/ydz7HvlWPXfIZw
    But on archive page it’s still in English: https://yadi.sk/i/ntXSFlDg9RLDxg

    It seems to me that the bug is in line 58 of template-parts/content.php:

    		}else{
    			the_excerpt();
    			echo '<a class="continue-reading" href="' . esc_url( get_permalink() ) . '" rel="bookmark">'.esc_html__('Continue Reading','eight-paper').'</a>';
    		}

    When I hardcode my translation it works

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

    (@sshurick)

    Same with “Previous/Next” in the end of the post

    Theme Author 8Degree Themes

    (@8degreethemes)

    Hi There,

    For Continue reading your screenshot suggests you also have %s field on translation which is not matching to our translation text.
    Use only “Continue Reading” as esc_html__('Continue Reading','eight-paper') that is the only part inside traslation box.

    For Previous/Next it seems whole text need to be added on translation like this:

    <span class="meta-nav">&larr;</span> Previous
    Next <span class="meta-nav">&rarr;</span>

    and translate the prev and next.

    So basically you need to add 3 translation string on Loco translation like:
    1. Continue Reading => translation_text
    2. <span class="meta-nav">&larr;</span> Previous => <span class="meta-nav">&larr;</span> translation_text
    3. Next <span class="meta-nav">&rarr;</span> => translation_text <span class="meta-nav">&rarr;</span>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme translation’ is closed to new replies.