I am new to wordpress and I am encountering a problem with translation from English to Danish. My theme and plugins are in Danish, but on my post page, where it is possible to navigate to my posts, it still says in English ‘Read more’? When I look in the code, I see that I have a plugin called Spicebox, but I don't see how it gets the text value? I've tried using Loco Translate and tried searching for Read more, but it doesn't find anything? Does anyone know how I can get it translated?
Jese Leos
September 19, 2024
Verified user
I have never done this, so all I can do is point you in the right direction. Check that the theme or plugin has localized the "Read More" text - it may have been overlooked by translators. Themes and plugins should have a folder called "languages" that contain the language files used in localization. For plugins this should be <root>\wp-content\plugins\<pluginname> For themes: <root>\wp-content\themes\<themename> Using Spicepress as our example, the language folder would be public_html\wp-content\themes\spicepress\languages on my website. In this folder is a Portable Object Template file (pot). The file contains all the text referenced by the theme, including where in code that reference is made. The "Read More" text is defined in the pot file: #: content-page.php:24 content-single.php:34 content.php:41 content.php:45 #: content.php:53 functions/template-tags.php:53 #: functions/template-tags.php:263 index-news.php:60 #: template/template-page-full-width.php:29 msgid "Read More" msgstr "" Replacing msgstr "" with msgstr "Læs mere" (used google translate) would then cause "Læs mere" to be displayed instead of "Read more". SpiceBox also has a language file. I do not know if that would override the theme's language. WordPress localization documentation