Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hello,
I am using Vantage 2.6.9 and I am trying to change the language of a few strings visible on the website. I tried to change them in vantage.pot, but they do not change on the website. An example:
#: 404.php:42 msgid "Try looking in the monthly archives." msgstr ""
But if I go in 404.php and change the following:
$archive_content = '' . __( 'Try looking in the monthly archives.', 'vantage' ) . ' ';
it works. Or is this meant to work this way?
Thank you.
I tried to change both msgid and msgstr at a time, but nothing changes unless I edit the actual .php file.
Hi Andrei,
Vantage.pot is the template file. This file isn’t directly used for translation and is instead used by translations. You’ll need to edit your languages po file. For instructions on editing/creating language files, please refer to this article.
Alternatively, you could use Loco Translate which will prevent the need for editing files directly.
Once installed, please navigate to WP AdminLoco TranslateThemes. Search for Vantage Premium and open it by clicking the theme name.
Select the relevant language (must match what you’ve set WordPress to use) and filter (1 in the image) for the text you wish to translate and then select the exact source text. Click the bottom-most textarea (2) and write your translation. Then click Save (3). How does that look?
Please note that the above image is used purely for direction.