Translating the X-theme


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 are working ok but this i am unable to translate. You can see it here:


This article ought to help you:

@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