How to make a translation of a website with the new OpenCart theme installed

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

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

First of all, for sure, you should find translation package of default OpenCart template on your language. It can be find on the official website – http://www.opencart.com/index.php?route=extension/extension. Here you need to enter version of your default OpenCart and language. Download your package and upload all files to your site.
Only after all files are uploaded you can start to make settings in the admin panel.

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

 extention page

Screen 1.

All these changes are to be done in the admin -> System -> Localization -> Languages. Click “Insert” button and write all parameters just as in the documentation (see screen № 2).

Screen 2.

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. Do this in System -> Settings -> Local. Your required language can be selected from the dropdown list (see screen № 3).

setting of the language in the admin panel

Screen 3. 

All default texts are translated to this moment. 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.

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 language installed – \catalog\language\your_new_language\.

For example, for German:

 

Screen 4.

 

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

To translate language constants: open file, for example,  \catalog\language\english\common\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, you can change the word Home to your own translation.

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 contain only folder \catalog\language\english\module to translation. This makes your translation process easier and more quick.

 

This entry was posted in Learning sessions and tagged , . Bookmark the permalink.

4 Responses to How to make a translation of a website with the new OpenCart theme installed

  1. Taxi Resort says:

    How to translate the admin menu?

    • admin says:

      Hello.
      You should pay your attention to the following part of this article “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. Do this in System -> Settings -> Local. Your required language can be selected from the dropdown list (see screen № 3).”

      Best regards,
      Tonytemplates team

  2. Ivan says:

    I’m using shopcart theme, and I’ve done everything written here – I can see my languages dropdown list and language tabs, but how to display language options on the front end of my opencart website (when a visitor comes to my site, they can not choose a language)?
    How can I make a language option display on the front end of my website?

    • admin says:

      Hello Ivan.
      The article was written in concern with the default OpenCart template. If you use some custom theme, you can change the functionality of some blocks. So you should ask the theme’s developers about functionality of that custom theme. We can just advise to check if your new installed language has “Enable” status. You can check it here “Localisation -> Languages” in admin panel.
      Best regards,
      Tonytemplates team

Leave a Reply

Your email address will not be published. Required fields are marked *