• Resolved lassial358

    (@lassial358)


    Using Tiny 2.2.0

    under template-tags.php
    in ‘tinyframework_new_excerpt_more’ there’s
    “…read more”

    string that does not translate, doesn’t seem to support localization. Is this intentional?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    At least in version I have it is translated. Function in template-tags.php is:

    function tinyframework_new_excerpt_more() {
    	$link = sprintf( ' <a href="%1$s" class="more-link">%2$s</a>',
    		esc_url( get_permalink( get_the_ID() ) ),
    		/* translators: %s: Name of current post */
    		sprintf( __( '...continue reading<span class="screen-reader-text"> "%s"</span>', 'tinyframework' ), esc_html( get_the_title( get_the_ID() ) ) )
    		);
    	return $link;
    }
    add_filter( 'excerpt_more', 'tinyframework_new_excerpt_more' );
    endif;

    And POT file entry:

    #. translators: %s: Name of current post
    #: inc/template-tags.php:512 inc/template-tags.php:539
    #, php-format
    msgid "...continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
    msgstr ""

    Can you confirm your beta has same strings? Thank you!

    I believe the POT that is generated from GlotPress is of older version, so that would explain it.

    I’m slowly finishing 2.2.0, so I will ship it with updated strings.

    Thread Starter lassial358

    (@lassial358)

    You’re right, the POT file from GlotPress is different, which probably explains the difference.

    Seems that I didn’t quite grasp the way you translate the strings, but this is irrelevant if it starts working after the future update!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘String missing from localization?’ is closed to new replies.