Companion Theme Documentation
Theme PageChangelogCreate a Ticket
  • Companion - WordPress Theme for Business Consulting
  • 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
    • Companion Installation
    • Common Installation Errors
    • Theme Activation
    • Multiple Websites on One License
    • License Key Deactivation
    • Activation FAQ
  • Getting Started
    • Import The Demo Content
    • Switch Between Different Demos
    • How To Update Companion
    • System Status
  • Theme Options
    • General
    • Colors
    • Typography
    • Sidebars
    • Archive Pages
    • Post Types
    • Page 404
    • Custom CSS
    • Import/Export
  • Blocks and Content
    • Header
    • Before Footer
    • Footer
    • Menus
    • Setting up Content Pages and Posts
    • Blog page
    • Services
    • Events
    • Cases
    • Portfolio
    • Adding Custom Icons
  • Companion Widgets
    • Accordion
    • Advanced Tabs
    • Advanced Title
    • Blockquote
    • Breadcrumbs
    • Case Banners
    • Cases Grid
    • Charts
    • Circle Text
    • Contact Form 7
    • Contact Info
    • Event List
    • Event Countdown
    • Event Program
    • Featured Content Carousel
    • Footer Menu
    • Icon Box
    • News Grid
    • News List
    • Newsletter
    • Our Services
    • Post Navigation
    • Portfolio
    • Pricing Table
    • Search
    • Services Grid
    • Team Carousel
    • Team Member
    • Testimonials Carousel
    • Upcoming Events
  • Integrations
    • Google Maps
    • Mailchimp
    • WooCommerce
  • Translation & Localization
    • Translation Basics
    • Translation Preparation
    • Theme Translation
    • Translations Update
  • Extra Materials
    • Demos
    • Changelog
  • stylemixthemes
    • Themes
    • Plugins
Powered by GitBook
On this page
  • Install Loco Translate
  • Create Companion Theme Translate File
  1. Translation & Localization

Translation Preparation

PreviousTranslation BasicsNextTheme Translation

Last updated 2 years ago

There are several ways to fill up translations. One of them is using the platform. You can add translation via editing your .po file and at the end, PoEdit generates a .mo file for you. Then you need to upload ready translation files to primordial folder (wp-content/themes/companion/languages/).

The easiest way of translating the theme is by using the plugin. Loco Translate is a free plugin and can be installed from the default repository of WordPress.

Static strings are available in the Companion theme, as well as in such plugins as Companion Configurations, and Companion Elementor Widgets plugins. Therefore, in this manual, we will consider how to translate strings and keep translations up to date in these plugins.

Also, it is possible to translate any other plugin with the help of Loco Translate.

Install Loco Translate

To install the plugin, go to Dashboard and find the Plugins section from the left menu and choose Add New.

You need to search Loco Translate, install it, and activate it on the opened page.

Create Companion Theme Translate File

Go to Loco Translate > Themes and choose Companion. Here you can create your own language to translate the not editable content of the theme. Create a language by clicking New language.

Important!

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

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

You need to prepare for translations installed plugins like Companion Configurations and Companion Elementor Widgets. The process of plugin translation is very similar to the theme.

PoEdit
Loco Translate