Get SEO Plugin for 50% of it's price!

Translate osclass theme or plugin

First please understand, that translations are not handled by theme or plugin, but are secured by osclass core. This means, if translation does not work for you, it is not problem of our product, but you have done something wrong. Common mistakes:

  • using .po and .mo files of different products
  • incorrect naming convention of language folder

Introduction

To completely translate your osclass classifieds, you need to translate:

  1. osclass core (oc-content/languages)
  2. current theme (oc-content/themes/{current_theme_name}/languages)
  3. all plugins installed (oc-content/plugins/{plugin_name}/languages)

If you do not translate all of these, you still can see english words on your site. For osclass core translation, you can find translation files in different languages on http://translate.osclass.org/projects.

Never use translation files of one theme for translation of different theme, it cannot work as both themes has different words used !

Now you need program to be able to modify .po file. Note that both .po and .mo files must be translated/updated. If you manually modify just .po file, translation will not work!

Download & install PO Edit - free program to handle translations.

Let's translate

Translation of plugins and themes is same, both has files in same subfolder.

To make it easier, suppose we are going to translate Zara Osclass Theme. It's shortname is zara, that means theme files are located in folder oc-content/themes/zara/ and translation files are located in oc-content/themes/zara/languages.

All products are by default delivered in english, that's short name is en_US. We are going to translate theme from English to German, that's shortname is de_DE.

  1. Download content of oc-content/themes/zara/languages/en_US to your desktop
  2. Open .po file with PO Edit
  3. Translate all strings in this file. When done, save it.
  4. Go to folder oc-content/themes/zara/languages and create here foder de_DE
  5. Into this folder upload modified .po and .mo files
  6. Install German language on your osclass instalation (oc-admin > settings > languages)
  7. Theme is translated and ready to use in German language

If there is something unclear or you need more help, please follow osclass documentation.

We do not provide support on this topic.