Translating the X-theme

Hi,

I am unable to make the translation files work for this sentense:
Permalink to: "%s"

My translation:
Linkki kirjoitukseen: ”%s”

How could I translate it? Otherwise my finnish dictionary-files fi.po and fi.mo are working ok but this i am unable to translate. You can see it here: http://route24.fi/

Hey,

This article ought to help you: https://theme.co/apex/forum/t/setup-translation/61

@Kankkunen I don’t know if you have the translation ni child theme like me but i got it working with this:

function custom_text_translate($translated) {
$translated = str_ireplace(‘Permalink to:’, ‘Linkki:’, $translated);
return $translated;
}
add_filter(‘gettext’, ‘custom_text_translate’ );

This to child themes functions.php

1 Like

Thanks @Hapanjero !

Thank you for your contribution @Hapanjero