Page 1 of 1

PrestaShop translation and maximum number of fields

PostPosted: Sat Mar 16, 2013 11:53 pm
by shokinro
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...