Jump to content

[GUIDE] Recurring problems when translating


Recommended Posts

If some translation are not saved when you save them all, there must be a configuration problem of your server.

 

Some variables may be misconfigured:

 

I. max_input_vars (Since php 5.3.9 - value by default: 1000)

 

post-231560-0-17459700-1349428189_thumb.png

 

Update this value on your .htaccess file:

php_value max_input_vars 10000

 

 

If you don't use the Apache server (for instance, if you run PHP as a CGI binary), or if you have an internal server error 500, you must recursively update this value in your php.ini:

max_input_vars 10000

 

If you use Suhosin, you must update on your php.ini with the following values:

max_input_vars = 10000
suhosin.post.max_vars = 10000
suhosin.request.max_vars = 10000

 

 

II. max_name_length and max_varname_length (When you use Suhosin - value by default: 64)

 

If you use Suhosin, it is possible that some strings are not saved.

 

For instance, when you translate your PrestaShop 1.5 front-office:

 

post-231560-0-96534400-1349428183_thumb.png

 

These strings are not translated because the "name" attribute of their fields contains more than 64 characters:

<input type="text" value="" name="order-address-multishipping-products_b669d5bfee7c83844d00c007ef74cd2a" style="width: 450px;background:#FBB">

 

To fix this problem, you must recursively update in your php.ini file with the following values:

suhosin.post.max_name_length = 150
suhosin.request.max_varname_length = 150

 

 

Note: Every time you edit your php.ini, do not forget to restart your server.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...