how to make a translation of a website with the new open cart theme

6
How to make a How to make a translation of a translation of a website with the new Open Cart website with the new Open Cart theme installed theme installed Some practical pieces of advice Some practical pieces of advice

Upload: tonytemplates

Post on 11-May-2015

582 views

Category:

Technology


0 download

DESCRIPTION

This presentation show how to translate your website with the new Open Cart theme installed. It was created on the base of blog post - http://tonytemplates.com/blog/?p=364

TRANSCRIPT

Page 1: How to make a translation of a website with the new Open Cart theme

How to make aHow to make a translation of a website translation of a website with the new Open Cart theme installedwith the new Open Cart theme installed

Some practical pieces of adviceSome practical pieces of advice

Page 2: How to make a translation of a website with the new Open Cart theme

The most common task you usually face with after installation of The most common task you usually face with after installation of some new theme on your website is the translation of the whole some new theme on your website is the translation of the whole

site and particularly your theme. site and particularly your theme.

First of all, for sure, you should find translation package of default Open Cart First of all, for sure, you should find translation package of default Open Cart template on your language. You can find it here - template on your language. You can find it here - http://www.opencart.com/index.php?route=extension/extensionhttp://www.opencart.com/index.php?route=extension/extension. Here you need . Here you need to enter version of your default Open Cart and language. Download your to enter version of your default Open Cart and language. Download your package and upload all files to your site.package and upload all files to your site.

Only after all files are uploaded you can start to make settings in the admin Only after all files are uploaded you can start to make settings in the admin panel.panel.

As usual you can see settings directly in the extension page or in the As usual you can see settings directly in the extension page or in the documentation as for each language package (see screen below). documentation as for each language package (see screen below).

Page 3: How to make a translation of a website with the new Open Cart theme

All these changes are to be done in the admin -> System -> Localization -All these changes are to be done in the admin -> System -> Localization -> Languages. Click “Insert” button and write all parameters just as in the > Languages. Click “Insert” button and write all parameters just as in the

documentation (see screen below).documentation (see screen below).

Page 4: How to make a translation of a website with the new Open Cart theme

In the case you downloaded a language package with translation of front In the case you downloaded a language package with translation of front end and admin panel, you can set your own language in the admin panel. end and admin panel, you can set your own language in the admin panel.

Do this in System -> Settings -> Local. Your required language can be Do this in System -> Settings -> Local. Your required language can be selected from the dropdown list (see screen below).selected from the dropdown list (see screen below).

Page 5: How to make a translation of a website with the new Open Cart theme

All default texts are translated to this moment. All default texts are translated to this moment. But as for texts that are added by developers in a new theme But as for texts that are added by developers in a new theme

additionally, they are not translated. So, you have to do this manually. additionally, they are not translated. So, you have to do this manually.

You should open folder: \catalog\language\english\ In your theme files. All You should open folder: \catalog\language\english\ In your theme files. All files that you see there need to be copied in folder with other new files that you see there need to be copied in folder with other new

language installed – \catalog\language\your_new_language\. For example, language installed – \catalog\language\your_new_language\. For example, for German: for German:

Page 6: How to make a translation of a website with the new Open Cart theme

You can translate all these files prior to uploading.You can translate all these files prior to uploading.

Create the folder \catalog\language\de_DE, copy all files from \catalog\language\english\ there. Create the folder \catalog\language\de_DE, copy all files from \catalog\language\english\ there. After that translate them and upload to your site. After that translate them and upload to your site.

To translate language constants: open file, for example, \catalog\language\english\common\To translate language constants: open file, for example, \catalog\language\english\common\header.php. All constants you see in view of: $_['text_home'] = ‘Home’; header.php. All constants you see in view of: $_['text_home'] = ‘Home’;

Don’t touch left part of equal sign, you should change only words in right part of constants. So, Don’t touch left part of equal sign, you should change only words in right part of constants. So, you can change the word Home to your own translation.you can change the word Home to your own translation.

Some themes, such as \catalog\language\english\common\header.php, \catalog\language\Some themes, such as \catalog\language\english\common\header.php, \catalog\language\english\common\footer.php etc, do not change files from default OpenCart theme. They may english\common\footer.php etc, do not change files from default OpenCart theme. They may contain only folder \catalog\language\english\module to translation. This makes your translation contain only folder \catalog\language\english\module to translation. This makes your translation process easier and more quick. process easier and more quick.

The source - The source - http://tonytemplates.com/blog/?p=364http://tonytemplates.com/blog/?p=364