• Resolved Greendroid

    (@greendroid)


    Hi,
    thanks for the great plugin. It works perfectly fine for us!

    One thing:
    On our german site in the paging at the bottom of the post-overview “N?chster” and “Vorheriger” is written.
    To translate “Next page” and “Previous page” correctly in german, this would be “N?chste Seite” and “Vorherige Seite”. Without the “r” at the end of “N?chste” and “Vorherige”.
    Can I change this in my installation or would it be necessary to change the translation from your side?
    Thanks and kind regards
    Greendroid

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    We should be able to filter these with gettext.

    Example: Translating previous and next text from English to Tagalog.

    add_filter( 'gettext', function( $text ) {
        if ( '← Previous' === $text ) {
            return '< Balik';
        }
        if ( 'Next &rarr;' === $text ) {
            return 'Susunod >';
        }
    	
        return $text;
    } );

    You should be able to do the same with German.

    This filter isn’t necessarily for translation. It can also be used to completely remove the text.

    Example: removing next and previous text. (keeping arrows)

    add_filter( 'gettext', function( $text ) {
        if ( '&larr; Previous' === $text ) {
            return '&larr;';
        }
        if ( 'Next &rarr;' === $text ) {
            return '&rarr;';
        }
    	
        return $text;
    } );
    Thread Starter Greendroid

    (@greendroid)

    Hi,
    thanks I got it working ??
    Kind regards
    Greendroid

    Plugin Support Elvin

    (@ejcabquina)

    Nice one. Glad you got it sorted. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Typo in german translation’ is closed to new replies.