Jump to content

Multilanguage works only partially


Pets

Recommended Posts

Hi,

 

I installed PrestaShop on my domain yesterday and looks snappy. But I want to use the site with multilanguage option, and have difficulties to get it work.

 

I have activated some languages from Tools, and can see the flag next to editable textboxes under Catalog on Attributes, Features, Attachments, Manufacturers and Suppliers. Also the site preview shows flags and texts do change. So all looks fine.

 

Except when creating or editing the catalogs or products themselves, there is no flag. I checked page source, and the call for flag selection is missing on those pages.

 

Pages which have the flag have this next to the textbox

<div class="displayed_flag">

<img src="../img/l/16.jpg" class="pointer" id="language_current_name" onclick="toggleLanguageFlags(this);" alt="" />

</div>

 

while pages without the flag have all the same functions and language definitions, but are missing just the above tag.

 

I'd say Multilanguage is activated, as change of language works in many cases. But I need of course to edit product/catalog names and descriptions in multilanguage as well. One option could be with CSV file, but I'd prefer to get the admin site work.

 

Could there be a property I should modify, or should I just reinstall? I have PrestaShop 1.4.9.0.

 

 

EDIT: After upgrade to 1.5.0.17 language selection works with flag also when editing catalogs and products, so I assume it was a bug on 1.4.9.0.

Edited by Pets (see edit history)
Link to comment
Share on other sites

I'd try re ftping my root files minus install folder...rename your local copy of admin to whatever you have on your remote.

 

 

when you test with languages (language enable level)

  • Check your .htaccess to make sure that prestashop regenerated with your new language(especially for new languages), if not regenerate the .htaccess from the back office...
  • Clear your browser cache and cookies
  • PrestaShop will put a new copy in the .tpl cache when you update a .tpl from the back office translations admin. But if you have doubts turn off smarty cache when

Link to comment
Share on other sites

Thanks for hints, but it seems to be something else.

 

Language change works for Attachments. AdminAttachments.php contains on function displayForm for each text input:

 

$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'cname¤cdescription', 'cdescription');

 

 

For Categories and Products language change doesn't work, and AdminCategories.php does not contain such call to displayFlags. Final evidence is on admin.js which contains this:

// Kept for retrocompatibility only (out of AdminProducts & AdminCategories)

function changeLanguage(field, fieldsString, id_language_new, iso_code)

 

So it would seem that AdminProducts and AdminCategories have a "new" language switch method which does not work for me. Web guides only explain the flag click method, which apparently no longer exists. So how is language switch on category/product admin supposed to work on 1.4.9.0?

Link to comment
Share on other sites

Further update: Only way I found to access localized texts is to change shop's default language in Tools/Languages. Language selected there is then accessed in all text inputs on Categories and Products. But that is by far inconvenient.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...