Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi @mskogly,

    You can translate the ‘Load More’ text adding a .mo file for your language (see here). The current .pot for WP Tiles is not up to date, so you’d need to generate your own first. (My bad, it’s on the snag list though!)

    Alternatively, you can use the filter wp_tiles_load_more_text. For example:

    add_filter( 'wp_tiles_load_more_text', function( $load_more ) {
        return 'Legg Mer';
    } );

    Cheers,
    Mike

    Thread Starter mskogly

    (@mskogly)

    Thanks Mike! Let me know if you need help translating to Norwegian. [email protected]

    Thread Starter mskogly

    (@mskogly)

    Hm, this is interesting. I testet the add_filter method on my site, and it worked great. https://pappmaskin.no/2015/03/olbrygging/

    But when I tried at work, on a childtheme, it didn’t. Tried both in functions on child and after that on the master theme, but no sigar. It might be some strange weirdness with varnish-caching, but I don’t think so.

    Will try the .mo method instead, just wanted to let you know.

    Plugin Author Mike Martel

    (@mike_cowobo)

    Ok, thanks for letting me know. Are you on the latest version of WP Tiles on the site at work? I only added the filter for Load More recently. Alternatively, a way to break through most varnish caches is to add a random query string at the end of a url. It’s a good way to test. (eg. https://mysite.com/?r=123123867 )

    Cheers,
    Mike

    mgasion

    (@mgasion)

    Hi Mike,

    Thanks for your plugin, it’s awesome!
    Only a question, I’m using two languages in my website. How can I add the filter for wp_tiles_load_more_text, different for each language?

    I’m sorry but I’ve tried with the .mo edition and not worked ??

    Thanks in advance,
    M.

    LSJLSJ

    (@lsjlsj)

    Hi.

    I need to translate the “LOAD MORE” too.
    I’m new at editing in WP.

    How and where do I add the:
    add_filter( ‘wp_tiles_load_more_text’, function( $load_more ) {
    return ‘Legg Mer’;
    } );

    Thank you guys!
    BR from Copenhagen

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translation of "Load more"’ is closed to new replies.