Motors Theme Documentation
Theme PageVideo TutorialsChangelogCreate a Ticket
  • Motors - Car Dealer, Rental & Classifieds
  • General
    • System Requirements
    • What's Included In My Purchase
    • Where Is My Purchase Code?
    • Theme License
    • Hosting
    • How to Get Support
    • Feature Request
  • Installation & Activation
    • Motors Installation
    • Common Installation Errors
    • Theme Activation
    • Multiple Websites on One License
    • License Key Deactivation
    • Activation FAQ
  • Getting Started
    • System Status
    • Import The Demo Content
    • Switch Between Different Demos
    • How To Update Motors
  • Theme Options
    • General
    • Top Bar
    • Header
    • Blog Page
    • Shop
    • Typography
    • Socials
    • Footer
    • Custom CSS
    • Custom JS
    • Import/Export
  • Motors Plugin Settings
    • Profile
      • General
      • User
      • Dealer
    • Monetization
    • Pages
    • Google Services
      • Google Maps
      • reCaptcha
    • Import/Export
  • Listing Manager Settings
    • Listing Templates
    • Listing Page Details
      • General
      • Page Layout
      • Loan Calculator
      • Features List
    • Add Listing Form
      • Listing Creation Form
      • Layout Builder
    • Search Results Page
      • General
      • Currency
      • Listing Info Card
    • Search Filters
  • Listing management
    • Custom Fields
      • Custom Field Options
    • Single Listing
    • Listing Manager
      • Options
      • Price
      • Extra Features
      • Images & Videos
      • Location
      • Specifications
      • Other Details
    • Single Listing Templates
    • Sold Listings
    • Import Makes & Models
  • Dealership layout features
    • Dealership Inventory Page
    • Dealership Two Demo: Sell Cars Online
    • Equipment Demo
    • Listing submission form: Sell Your Vehicle
  • Classified layout features
    • Classified Inventory Page
    • Classified Users
    • User/Dealer Settings
    • Pricing Plans
    • Add Listing
    • Pay Per Listing
    • Listing management
    • Paid Featured Listing
  • Car Rental layout features
    • WooCommerce Adjustments
    • Rental Layout Settings
    • Offices
    • Reservation Page
    • Rental Products
      • Product Attributes
      • Car options
    • Pricing system
  • Customization
    • Localization
    • Email Templates
    • Adding Custom Icons
    • WhatsApp Button
    • Hooks & Actions
    • Image Preview Slider
  • Hero Banner
  • Adding Images to Revolution slider
  • How to Set Up the Sidebar
  • Menus
  • Widgets
  • Motors VIN Decoder Integration
  • IMPORT LISTINGS
    • Import Preparation
    • HomeNet Automotive
    • AutoManager
    • Import Custom Inventory
  • Mega Menu
    • Mega Menu Activation
    • Dealership layouts
    • Classified Layouts
  • Content
    • Setting up Content Pages and Posts
    • Dealership & Classified Elements
    • Classified - "Browse by Make" logos
    • WooCommerce shop
    • Blink Search
  • Motors Listing Types
    • Getting Started
    • Add Listing Type
    • Inventory Page
    • Listing Type Categories
    • Add Listing Page
    • Listing Type Settings
    • Search Filters
    • Compare Page
  • MOTORS TRANSLATE
    • Translation Basics
    • Translating Static Strings
  • Deprecated
    • From Customize to Theme Options
    • Subscriptio V3 Update
  • Extra Materials
    • Demos
    • Video Tutorials
    • Facebook Community
  • Changelog
  • Stylemixthemes
  • VIN Decoder Plugin
  • Motors WordPress Plugin
  • Themes
  • Plugins
Powered by GitBook
On this page
  • How to Translate Static Strings Properly?
  • Install Loco Translate
  • Change The Website and WordPress Language
  • Change the site Language
  • Change the WordPress (including plugins) Language
  • Creating the Translation File
  • Translation Process
  • Example
  • Update Translation File

Was this helpful?

Export as PDF
  1. MOTORS TRANSLATE

Translating Static Strings

PreviousTranslation BasicsNextFrom Customize to Theme Options

Last updated 8 months ago

Was this helpful?

How to Translate Static Strings Properly?

Here is a short visualization of how to deal with string translations:

Translating the theme alone is not sufficient; you must also follow this process to translate the bundled plugins. If the bundled plugins are not translated, some words on your site will remain untranslated.

Install Loco Translate

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 websites!

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:

  1. On the opened page, search for Loco Translate, then install and activate it.

Change The Website and WordPress Language

When you change the website and/or WordPress language, the Motor Theme and bundled plugins' 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:

  1. Find the Site Language setting and select the language according to your needs:

  1. Save the changes:

Change the WordPress (including plugins) Language

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

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

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

  1. Update the profile settings:

Creating the Translation File

  1. Open the Loco Translate by following WP Dashboard > Loco Translate > Motors Theme:

In this page you can see the Motors Theme and the list of other bundled plugins. With the help of Loco Translate you can translate any of them.

But in this documentation we will focus theme translation.

  1. On the opened page you can see the list of translated languages. You can edit any of them according to your needs. But now, we gonna learn how to create a new language. So Click on the New Language Button:

If you find the language you need in the list, you can freely edit it. There is no need to create it again.

  1. Select the language that you want to translate to. In case there is no needed language in the list, you can freely use the Custom Language option. Choose the last option (languages/themes/motors-en_US.po) as the location:

for plugins languages/plugins/... as the location;

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

IMPORTANT

It is required to store the translation file in “.../wp-content/languages/themes/” folder to keep translation during the theme updates. So, proceed it carefully.

Translation Process

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

If you cannot find the string that you wanted from the Motors theme, please kindly search for it from bundled plugins that come with the Motors theme.

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.

  1. Search for 'Trade in form' and write 'Trade in (LOCO)' to the translation and save the changes:

That's it ✅, here is the result:

Using this process you can change any static strings in Motors Theme and bundled plugins.

Update Translation File

Stylemixthemes cares about its clients, so we continuously add new and colorful features to our themes and plugins to improve them. That's why it's important to keep your themes and 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 > Themes > Motors and click on the Edit Template button:

  1. Click on the Sync button to start synchronization:

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

The easiest way to translate the theme is by using the plugin.

Use or other related plugins to create multilingual websites.

Translating the theme alone is not sufficient; you must also follow to translate the bundled plugins. If the bundled plugins are not translated, some words on your site will remain untranslated.

Loco Translate
WPML
this process
Static Strings Translation Process
Adding New Plugin from WordPress Dashboard
Installing Loco Translate
General tab of the WordPress Settings
Site Language setting in the General Settings of the website
Saving the changes
Editing Profile
Editing Profile
Profile Language
Update Profile
Creating New Language
Creating a new language
Main Translation Page of the Loco Translate
Trade in Form button in the Single Listing Page
Translating Trade in Form text
Trade in Form button in the Single Listing Page after translation
Motors Theme page in the Loco Translate Plugin
Synchronization
Info message shows what changes were made, saving the changes