Translating Static Strings

The easiest way to translate the plugin is by using the Loco Translate plugin.

Loco Translate is a plugin that allows you to translate your website's content into one language at a time, making it useful for single-language sites. It can not create multilingual websites!

Use WPML or other related plugins to create multilingual websites.

Install Loco Translate

Loco Translate is a free plugin that can be installed from WordPress's default repository.

  1. In the WordPress dashboard go to Plugins>Add New Plugin:

Adding New Plugin from WordPress Dashboard
  1. On the opened page, search for Loco Translate, then install and activate it.

Installing Loco Translate

Change The Website and WordPress Language

When you change the website and/or WordPress language, the Motors interface (plugin's static strings) will also change, as long as it has been translated into your chosen language.

Change the site Language

  1. Open the general settings from the WordPress dashboard: Settings >General

General tab of the WordPress Settings
  1. Find the Site Language setting and select the language according to your needs:

Site Language setting in the General Settings of the website
  1. Save the changes:

Saving the changes

Change the WordPress (including plugins) Language

  1. Go to Edit Profile on the upper-right corner:

Editing Profile

Alternatively, you can also follow WordPress Dashboard > Users > Profile:

Editing Profile
  1. Find the Language setting then choose the one according to your needs:

Profile Language
  1. Update the profile settings:

Update Profile

Creating the Translation File

  1. Open the plugins page in Loco Translate by following Loco Translate > Plugins then choose Motors - Car Dealer, CLassfieds & Listings:

Plugins Page of the Loco Translate
  1. In the opened page click on New Language:

Creating New Language
  1. Choose the language and select the last option (languages/plugin/...) as the location:

Creating a new language

After clicking the Start Translation button, you will be directed to the Loco Translate editor where you can start translating the plugin strings.

Translation Process

The translation process is straightforward. Just write the translation to the designated area and save the changes:

Main Translation Page of the Loco Translate

Some words may start with special symbols like %s, %d, or &ab - these are variables. They can represent anything: a name, number, size, or date. You need to determine what they are from the context.

Do NOT translate them. You can only change the order of them in the sentence.

For instance:

Source text
Translation (Spanish)

Loco Translate

%s commented - "%d" on listing %m

%s comentó - "%d" en el listado %m

On the website

Jane commented - "Nice car" on listing BMW X7

Jane comentó - "Nice Car" en el listado BMW X7

Example

Let's change the text inside the 'TRADE IN FORM' button. We will change it to 'TRADE IN (LOCO)' just for testing.

Trade in Form button in the Single Listing Page
  1. Search for 'Trade in form' and write 'Trade in (LOCO)' to the translation and save the changes:

Translating Trade in Form text

Here is the result:

Trade in Form button in the Single Listing Page after translation

Update Translation File

Stylemixthemes cares about its clients, so we continuously add new and colorful features to our plugins to improve them. That's why it's important to keep your plugins up to date. During updates, new strings will be added or removed. After updating the plugin, you also need to synchronize it in the Loco Translate plugin.

  1. Follow WP Dashboard -> Loco Translate -> Plugins -> Motors - Car Dealer, Classifieds & Dealership and click on the Edit Template button:

Motors Plugin page in the Loco Translate Plugin
  1. Click on the Sync button to start synchronization:

Synchronization
  1. You can see what kind of changes were made. Click on the Save button:

Info message shows what changes were made, saving the changes

Last updated

Was this helpful?