Our Feature Items: SM Market // SM AutoStore // SP Revo
Shopping cart (0)

How to translate your OpenCart 2.x Extension/Theme?

Rate this item
(1 Vote)
Written by  Sarah
Tuesday, 23 February 2016 15:05
How to translate your OpenCart 2.x Extension/Theme? - 5.0 out of 5 based on 1 vote

This is the second part of the language installation tutorials for Opencart 2.x to guide you to translate your purchased our OpenCart modules and themes into a different language. 

Transalte Opencart Theme/Extension

In this tutorial we will assume that you need to translate an OpenCart Extension/Theme to the Spanish language. For demonstration purposes, we will use the SO Basic Products module as an example. Obviously the procedure is the same for any language.

Requirements

Before installing, please make sure your theme and extension have met the following requirements:

  1. This tutorial made for new or modified installations of OpenCart 2.x
  2. Make sure you have the installation .ZIP of the extension/theme which you need to translate
  3. Make sure that the target language has already installed in your OpenCart 2.x system. Please read this tutorial to install the new language.
  4. (Optional) Basic understanding of HTML

Step-by-step to translate Opencart Extension/Theme:

Step 1: Extracting

First of all, extract your extension installation .ZIP in a new folder. In most cases you will get a folder structure, similar to the image below:

Translate Opencart Theme/Extension

Step 2: Renaming

The folders are need to be changed:

  • upload/admin/language/english
  • upload/catalog/language/english

Important: We have just renamed the above 2 folders. To set the exact new name of the folders, please navigate to your OpenCart admin panel -> System -> Localisation -> Languages -> [Your Language, e.g. Spanish] -> Edit and find the value of the Directory field. In our example this will be "spanish".

Rename both of these folders to the language of your choice. The result should look something like this:

Translate Opencart Theme/Extension

Step 3: Translating

From the previous step you should now have the following folders:

upload/admin/language/spanish and upload/catalog/language/spanish

Now, you should access every file in these two folders and translate the English text to your preference. A single English language entry looks like this:

$_['text_column_left'] = 'Column Left';

The translation of this entry would look like this:

$_['text_column_left'] = 'Columna Izquierda';

Note: Some language entries contain special HTML or wildcard characters like <strong>http://</strong>, %s, <b></b> and others. Don't need to change these special words and translate only the text within these entries.

Step 4: Uploading

It's almost done. What you need to do now is to upload your new folders in your OpenCart installation, making sure to preserve the folder locations.

Note: If you have renamed your admin folder, make sure to upload the new language in your modified admin folder.

  • upload/admin/language/spanish -> /<opencart-root>/<your-admin-folder>/language/spanish
  • upload/catalog/language/spanish -> /<opencart-root>/catalog/language/spanish

You have translated your OpenCart extension. Translating OpenCart theme do the same. If you have any questions or need further assistances, please don't hesitate to let us know via the comments box below. We are happy and ready to help you.

Thanks for reading!

Google+
Joomla TemplatesFree Joomla TemplatesVirtuemart TemplatesK2 TemplatesJoomShopping TemplatesHikaShop TemplatesSobiPro TemplatesOpenCart Themes
Quà Tết Cao Cấp Hộp quà tết Giỏ quà tết Túi quà tết