PrestaShop translation and maximum number of fields

In this board, we will periodically list various tips and tricks we find that may help in your use of PrestaShop. This will also include tips on the use of Agile modules. If you have a great tip, fix, or workaround for a PrestaShop feature, feel free to post it here...

PrestaShop translation and maximum number of fields

Postby shokinro » Sat Mar 16, 2013 11:53 pm

PrestaShop supports multiple languages, and the store owner has the ability to translate the store into any desired language. The translation can be performed in the back office of the PrestaShop store through the Localization tab -> Translations option.

In many cases, you will encounter the error listed below that will prevent you from using this translation function. It is because most service providers have set a maximum number of fields that can be displayed (and/or edited) in each form. If this is true in your case, you will see a message similar to the following:

Warning! Your PHP configuration limits the maximum number of fields allowed in a form:
2000 for max_input_vars.
Please ask your hosting provider to increase the this limit to 3817 at least. Alternatively, you can edit the translation file manually.


Some service providers allow you to override this configuration setting. If this is true in your case, you can try this.

Create a file named PHP.ini under the root folder of your store, with following as contents:

Code: Select all
max_input_vars = 5000


Then try the Localization->Translations option again.

If you're lucky, this will work for you. Otherwise, it means your service provider configuration does not allow you override the setting for this parameter. In this case, you will have to contact them to change that limit for you.

If your service provider/host cannot make this change for you, you will have to find other means to perform the language translation. In some cases, a developer can do this through code based modifications of the text.

The other way to solve the problem is to create a copy of your Prestashop store on your local computer that you have control of all parameters. And then do the translation at your local computer then copy the language files to your production store.

Hope this helps...
Attachments
trabslation-page-maximum-number-of-fields.png
max number of fields
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Return to Tips and Tricks for PrestaShop and Agile Modules

Who is online

Users browsing this forum: No registered users and 0 guests