How to translate a WordPress theme?

Detailed Introduction;

HOW TO TRANSLATE A WORDPRESS THEME OR A PLUGIN

Step 1 – Download Poedit

Download this free software; Poedit

Step 2 – Find the po file

The .po file contains all translatable text from a theme. It is located in “languages” folder. Open it with Poedit and translate the texts.

po

The filename of your .po is crucial. Gettext uses the ISO 639 standard for language abbreviations and ISO 3166 for locales. If your translation is written in American English for example, your file name will look like en_US.po. Capitalization is also important here. For a full list of language and country codes, check out these two links:

Gettext language codes

Gettext country codes

Once you save, POEdit by default automatically creates a .mo file alongside your .po file.

Step 3 – Setting Up WordPress

WordPress v4.0 and above

Change the language in the admin settings screen. Settings > general > Site Language.

Screenshot_1


Translating Plugins

Plugin language files are located in “languages” folder. WordPress plugins have an additional naming convention whereby the plugin name is added to the filename:

pluginname-de_DE.po

List of plugin names

Sporty plugin names;

Sporty Fixtures Results Sponsors Plugin -> sportycpttext

Sporty Flex Slider -> sportyflextext

Sporty Shortcodes and Widgets -> sportyshortcodes

Dysania plugin names;

Dysania Grid Gallery -> dysaniagrid

Dysania Shortcodes and Widgets -> dysaniashortcodes

Dysania Sliders -> dysaniasliders

Spider plugin names;

Dysania Grid Gallery -> dysaniagrid

Spider custom post types -> spidercpt

Vets plugin name;

Vets Features -> vetscpt

Build plugin name;

Build Features-> buildcpt

Oriel plugin names;

DvGallery Gallery -> dvgallery

Oriel Features-> orielcpt

Bowl plugin name;

Bowl Features-> bowlcpt

Divergent plugin name;

Divergent features-> divergentcpt

Ombre plugin name;

Ombre features-> ombrecpt

Direwolf plugin name;

Direwolf Features->direwolfcpt

Besocial plugin name;

Besocial Features->besclwpcpt

Besocial Rating System->besocialrating