Country names along with other common text and strings that appear in our plugins (like the “Free” event string) are part of a common library. A common language file is required to act as central repository to hold common texts used in our plugins, it makes the reuse of these text possible and easy to manage.
It means all these texts are part of our common library (and can be found in the tribe-common.pot language file). However, our plugins by default don’t ship with the common mo/po files, which are the actual language files WordPress scans to display translated content.
In this short guide, we are going to show you, with a few steps, how to display the country names according to the language set in your WordPress website.
Language files download and setup
Go to: https://translations.stellarwp.com/glotpress/projects/tribe-common/ and click to choose your preferred language.
At the bottom of the page select the option ‘all current’ and ‘Portable Object Message Catalog (.po/.pot)’ then, click the ‘Export’ button.

Paste the downloaded language files under wp-content\plugins\the-events-calendar\common\lang\ and wp-content\languages\plugins folders.
From your WordPress Dashboard > Plugins > Add New, install and enable the Loco Translate plugin.
Now, proceed to WordPress Dashboard > Loco Translate > Plugins, and click to edit The Events Calendar plugin.
Scroll to the bottom of the page, and after the ‘Additional files found’ section, you should see your downloaded language files. Click to edit the one under the ‘System’ folder, and search for the desired country name, if it is not yet translated, you can add your own translation.

Save your changes and you should be done.
