Install Russian language in prestashop 1.6. Installation and Russification of Prestashop. Transferring Prestashop to hosting. Preparing to Install PrestaShop on Live Hosting

PrestaShop 1.6.1.12 - full Russian translation(including translation of tabs)

Hidden content. You must be a registered member to view.

Click to Expand ...


03/31/17. Updated! Pump over. Bugs fixed. Added missing files to mails / ru.
    • Back office tabs are being updated.
    • The word "Email" has been replaced by "E-mail", "E-mail", "Letter".
    • All variations of the word "Carrier" are replaced with "Transport company", "Delivery method", "Delivery method", "Delivery".
    • Removed all unnecessary, including the translation of modules in the template folder (that is, only the kernel is updated, regardless of the template).
PrestaShop 1.6.1.10 - Ukrainian translation


Also, you can add this file to the folder: / your_site / translations

SpoilerTarget "\u003e Spoiler: Old version of the header

Translation of Prestashop and its modules.

Translations for 1.6:
PrestaShop ™ 1.6.0.11 - full Russian translation (Suitable for earlier versions too)

SpoilerTarget "\u003e Spoiler: Old version of the header

Requires a careful selection of the engine for managing the product range, orders, working with a warehouse, basket, etc. Now it is not necessary to reinvent the wheel, as there are many free scripts for creating a functional online store - Prestashop, OpenCart, Magento, Virtuemart and others.

Prestashop has become one of the most popular and downloaded engines in recent years. This is a French CMS that is constantly evolving, replenished with new templates and modules, has a high degree of integration with various ERP systems and demonstrates the growth of its fans.

Where to download the engine?

The commercial focus on Prestashop starts with finding the engine distribution kit, template and their russification. This article will focus on just these points. You can download the latest distribution kit on the official website of the developers, which provides decent support and consultation on the script. In this article, we will consider installing Prestashop version 1.5.2, which is virtually the same as installing any other version.

Installing Prestashop

So, step by step instructions for installing Prestashop.

  • 1. The first thing to do is download the Prestashop distribution from the official website - see the link above.
  • 2. There are two types of CMS installation:
    • installation on a local server (on your computer);
    • installation on hosting.

    Let's consider the first case.

  • Before installing the engine, in this case, you need to install virtual hosting on your machine. To make my life easier, I recommend setting yourself a so-called Gentleman's Kit - Denwer... You can download it on the website - http: \\\\ denwer.ru. This set includes everything you need to run CMS - Apache, MySQL, phpMyAdmin, SSL.
  • 3. If you did everything correctly, then virtual hosting will appear on a virtual disk z: /... Next, you will need to go to the directory / home and in it we create a folder with the desired name, which will be the address of our site.

  • 4. We create a database (DB) for our future online store. The database is mandatory, since in addition to information about goods and orders, the database stores various system information and content of the CMS itself.




  • On the local server, the default server name is localhost, username is root, no password is set. The name of our database is myshop_bd. The base prefix is \u200b\u200bneeded mainly if you will use one base for several sites.
  • Select the type of installation and enter the mailing address.

Installing Prestashop on hosting

Installing Prestashop on hosting is not much different from installing in Denver. In this case, the creation of the database is performed on the hosting in phpMyAdmin or using the hosting control panel.

To transfer Prestashop to hosting, you need an archive of the existing CMS distribution and a database dump, which can be done using the MySQL exporters in phpMyAdmin.

We upload the site archive to the root directory of your hosting, and import the database dump using phpMyAdmin tools into the newly created database on the hosting.

Define (’DB_NAME’, ‘base name’); define (’DB_SERVER’, ’localhost’); define (’DB_USER’, ‘DB user’); define ('DB_PASSWD', 'DB password');

Russification Prestashop

In the latest versions, the localization of Prestashop is quite elaborate. In fact, the entire engine - front - and back - office is Russified.

The first thing to do is go to the administrative panel in the menu Localization. Here we import the required localization package. In the place with the package, the language, currency, units of measure are imported.

On the configuration tab, mark the desired default language - Russianand country. You can also specify the currency, time zone, and designations for different units of measure.

After that in the menu Localization\u003e Languages make sure that the Russian language appears and it is activated.

The changes also affected the back office. To see them, just go to the admin panel.

If you are not satisfied with the translation of any words, or some part of the engine has not been translated, you can correct or set your translation in the menu Localization\u003e Tranlations.

The Prestashop community is constantly evolving and responds quickly to user feedback. It is very easy to perform a language update. To do this, go to the menu Localization\u003e Tranlations, on the tab Add / Update Translation select Russian and press the button.

Localization updates are also constantly posted in the public domain on the site - http://www.prestashop.com/en/translations. There you can find localizations for virtually all common languages \u200b\u200band import the language manually.

I hope that I have opened all the questions regarding the installation of Prestashop, the transfer of the engine to the hosting and its localization. If you have any questions or comments, I will be glad to listen.

Join the blog and follow the latest news! And lastly, a video on the topic.

Before considering the localization of native modules in PrastaShop 1.6, let's look at how localization is usually arranged in other CMS. Most often, each language is presented in the form of separate files, which the author of the module fills in independently. Usually, files are presented in the form of ini-files or something similar, where the value is assigned to the code variables (this approach is typical for Joomla). There can also be xml files. Or the files can be php constructs, for example, like localization in OpenCart. In especially perverted variations, localization can be stored in the database (inconvenient and slows down the CMS).

No matter how the files look, their translation by the module author is a manual filling and creation of files. And this is the usual pattern. Its advantages are simplicity and ease. The main disadvantage is that many ordinary users far from programming languages \u200b\u200bsimply cannot correctly cope with editing the translation (somewhere the quotes will not be closed, somewhere the separator will not be put, and so on), which leads either to output errors (for example, squares or codes instead of phrases), or to temporary module breakdown.

Support for module localization in PrestaShop 1.6

In this sense, PrestaShop 1.6 has a rather interesting approach to automating localization support for several languages, while ordinary users can easily create localizations for their languages. Localization files are still used here, but it is not recommended to compose them manually and it is somewhat pointless. Firstly, this is a very difficult and routine task (file names and MD5 hash of each phrase are used), so mistakes can be made. Secondly, the built-in standard PrestaShop tool makes this task much easier and easier (including ordinary users who do not need to know anything about your module at all).

Example of translation from Cron support module (Standard PrestaShop 1.6 package):

cronjobs_"] \u003d" Cron Job Manager "; $ _MODULE ["<{cronjobs}prestashop>cronjobs_"] \u003d" Manage store automation tasks from a single interface. "; $ _MODULE ["<{cronjobs}prestashop>cronjobs_"] \u003d" Please enable the PHP cURL extension to use this module. "; $ _MODULE ["<{cronjobs}prestashop>cronjobs_"] \u003d" Cron jobs "; $ _MODULE ["<{cronjobs}prestashop>cronjobs_"] \u003d" Create new job "; ....

What is the essence of the PrestaShop localization mechanism and how does the whole process work? To provide a possible translation, it is enough to use only the built-in functions for outputting phrases:

In php this is:

// For the main module file and back office controllers $ this-\u003e l ("My comment"); // For front office controllers $ this-\u003e module-\u003e l ("My comment");

In the Smarty template, these are:

(l s \u003d "My Comment" mod \u003d "mymodule")

It is important to note several points at once (spelled out in the PrestaShop documentation):

1. All phrases must be in Latin, otherwise there may be errors in localization. By the way, these same phrases are the default value (in the absence of translation files), which allows you to get rid of php errors like "Warning" / "Notice:" and from the output of codes. In other words, no matter how many languages \u200b\u200byou have, the module will open everywhere.

2. Absolutely all texts and parameters (mod for Smarty is a parameter where the name of your module is indicated) must be enclosed in single quotes. Otherwise, the localization tool will not find the phrase. In addition, there is one interesting point. In Smarty, if you use double quotes for the mod parameter, then the phrases are included in the general list of translation phrases, and not in the module phrases. If you use single quotes, then the module is defined correctly and, accordingly, the phrases themselves. In this case, an error with double quotes for the text itself (parameter s) is detected only by their validator (while the translation itself is carried out correctly).

It is worth noting that if the first point is partly clear - there are no problems with encoding, then the second was rather introduced to simplify all the points associated with alternating single and double quotes. Nevertheless, the second point is still controversial, since if you write modules for other systems, then it is very inconvenient, especially considering that the Smarty engine itself normally reacts to single and double quotes.

But, coming back. If you adhere to these constructions in all your php files and Smarty templates, then all further translation will not require you to make any edits to the files, they will be generated by the PrestaShop 1.6 tool.

It is worth knowing that all translation files are placed in the "translations" directory of your module (or in templates, if you have several templates and a different translation is planned for each), and the name of each file is formed as "% language code% .php" (for example , ru.php for Russian and so on). By the way, all translation phrases inside files are wrapped in single quotes.

Translation (localization) of custom modules in PrestaShop 1.6

Now, let's see how the translation (localization) of our own modules in PrestaShop 1.6 is carried out in stages:

0. First, make sure that the "max_input_vars" parameter in php.ini is set to at least 3000 items (or better, at once, to 10000, so as not to ask this question again). Otherwise, when opening the translation, the page will fall out with errors. Unfortunately, all phrases for translations are displayed at once on one page (in the standard package for templates they are about 1900 +/-; the usual php limit on the number of parameters is 1000). As such, there is no way to see the translation of a single module only.

1. Open the admin panel. Then in the left menu, expand the "Localization" item and select the "Translations" item.

2. In the window that appears, select the "Type of translation" field as "Translations of installed modules", the "Select template" field as "Core (regardless of the template)" (then translation files will be created directly in the directory with your module), and then in in the "Select language" field, select the desired language. Finally, click the "Change" button.

Note: Only those languages \u200b\u200bare displayed whose translations are installed in PrestaShop 1.6 itself, so if you want to support any additional languages, they must first be installed in the store.

3. A window will open listing all installed modules and all translations inside the files of each module. You just have to fill in the fields of the module you need and use the buttons "Save and stay" / "Save". Please note that your module (regardless of name) will be at the very bottom. Or use the standard search on the page.

Note: Please note that single quotes must be escaped with a forward slash. For example, Vasya walked in a place called \\ "Edge \\" and was glad of it.

We have previously published a tutorial on. In this post you will find an updated tutorial on installing PrestaShop, this time version 1.6 on a real hosting Beget.ru. This hosting has a 30 day trial period - this will give you the opportunity to try out PrestaShop without paying for hosting. We tried to make the lesson detailed enough with a lot of pictures.

The PrestaShop script is free and can be downloaded from the downloads page: http://www.prestashop.com/en/download on the official website.

On the download page, you need to enter your E-mail, one of the five descriptions that characterizes you most fully and just click on the blue "Download now" button.

You can download the latest version of PrestaShop from our website by going to the page.

With Russification in PrestaShop, everything is very good now. At the time of the next release, the russification is almost ready, the installation menu already has a built-in russification. And after installation on the hosting, the program automatically downloads Russian localization. But if necessary, the PrestaShop russification can be downloaded from the page: http://www.prestashop.com/en/translations

You just need to click “Download” opposite the line with the Russian flag to download the Russification for the latest version of PrestaShop.

There is also an opportunity to download Russification for earlier versions. At the time of this writing, Russification for vrsia 1.6 is 99% ready. This is a very good result - you can use it. If necessary, you can add a translation from the PrestaShop admin panel yourself - there is a special translation module. Very convenient by the way.

After all the downloads, you should have two files with archives on your computer:

  • prestashop_1.6.1.4.zip is an archive with a script
  • ru.gzip is an archive with russification (you probably won't need it)

Registration on hosting Beget.ru

In our tutorial, we will describe the installation of the PrestaShop script on the hosting http://beget.ru/. We chose this hosting for several reasons. Firstly, it has a free trial period - this will allow you to install PrestaShop right now, while reading the lesson, without paying for hosting; secondly, this hosting supports all scripts of online stores.

If you install on a different hosting, it's okay. The general plan of actions for installation is unified. It's just that the menu items in the hosting control panel may differ.

Let's start installing. Now we will register for the hosting and use a free test account. We will be provided with full hosting for 30 days, plus a third-level domain name for experimentation. After 30 days, if you do not pay for hosting, you will lose access to your website and account.

Go to hosting: http://beget.ru/. We choose the "Start" tariff. If you decide to stay on this hosting in the future, then the tariff can be changed at any time.

Installing PrestaShop Fig. 3 (click to enlarge)

A message about the selected tariff and a button "Next" will appear. We press it and get to the registration page on the hosting.

Installing PrestaShop Fig. 2 (click to enlarge)

We fill in all the fields on the form and click "Register an account". You will then be asked to receive and enter a code to confirm your registration. After entering the code, we observe a window informing about the progress of creating an account for several seconds.

The next window will be a window with a login and password for accessing the hosting control panel.

Login and password will be assigned to you automatically. This information will also be sent to you by letter to the mailbox you specified during registration. To enter the hosting control panel, click the "Go to control panel" link and see this panel.

The left panel of the control panel is informational. In it you can see the current balance, the number of sites, the size of the occupied disk space. In this panel, we see that your current balance is 0, but this is enough for 30 days. Registration is complete, we are proceeding with the installation.

Preparing to Install PrestaShop on Live Hosting

Before installing PrestaShop on a real hosting, you need to perform preparatory operations: you need to create a database on the hosting and upload script files to the hosting.

Let's create a database. We select the MySQL item in the hosting control panel.

To create a database, you need to enter your username and password. The password can be generated. After the username and password are invented, click the Create button.

That's all - the database has been created. We see it in the list of bases in the same window.

Now you need to remember the data for accessing the database, it is better to write it down in a notebook.

  • Host address: Localhost
  • Database name: This will consist of the username plus the database name you entered. In our example, this is: mailrusc_baza1.
  • Database username: It is not displayed in this window. By default, it is the same as the database name. In our example, this is: mailrusc_baza1.
  • Password: the one that you entered or generated.

The database has been created, we have memorized the access data. Move on.

Now you will need to unpack the "prestashop_1.6.1.4.zip" archive because the script files are placed in the "prestashop" folder inside the archive. We need to rebuild the archive in such a way that it immediately contains script files, and not script files in the folder. To do this, unpack the "prestashop_1.6.1.4.zip" archive, go to the "prestashop" folder, select all the files and add them to the new archive. We will load the script as an archive. We do this for the reason that there are a lot of files in the distribution kit and it will take a very long time to download all files. Therefore, it is faster to upload one archive to the hosting and then unpack it there.

We do not touch the archive with russification "ru.gzip" yet. We will fill it in after installation, if necessary.

You can upload the archive with the PrestaShop script to the hosting in two ways: via the hosting file manager and via FTP. The first method is more convenient, but at low Internet speed it may not work. The second method will work on low communication channels, but it will require the installation of a special program: FTP manager on your computer.

In this tutorial, we will look at a way to upload through a hosting file manager. In the hosting control panel, select the "File Manager" item:

Having entered the file manager, we will see one single folder "public_html".

In this folder and gently we upload the archive with the script. To do this, you need to open it, remove the stub index file from it and click the "Upload files" button:

In the window that opens, select Brouse and specify the path to the file with the PrestaShop distribution on your computer. After that, put a checkmark in front of the selected file and click "Download":

Next, close the download window, right-click on the downloaded archive and select "Unpack archive".

Directly installation

All the preparatory steps have been done and you can proceed directly to installing Prestashop. We drive in your domain name in the browser and follow the steps of the installation wizard.

Step 1. Selecting the installation language.

The Russian language will be automatically selected:

We press forward.

Step 2. License agreements.

Check the box that we agree.

Step 3. Checking the compatibility of your hosting and PrestaShop.

If your hosting meets all the PrestaShop requirements, then you will see only one message: Your system is completely ready to install PrestaShop!

Step 4. Store information.

You will need to enter your store name, admin login and password, line of business in order for PrestaShop to prepare the system for you in the best way.

Step 5. Entering information for connecting to the database.

In this step, you need to enter the name and password for the database that you did earlier. In the field "Database login" you also need to enter the name of the database (they are the same on Beget hosting). We do not touch the rest of the fields.

Step 6. Installation

You don't need to do anything here. Just watching the runner.

Step 7. After installation.

After the installation is complete, you will be advised to delete the Install folder. You can do this through the hosting file manager.

You will also see two buttons to go to the admin panel and to go to the storefront. Go to the admin area and remember the path. It will look like this: http://domen.ru/admin231oxclpt. Using it, you will always enter the admin panel of your online store.