I solve this problem by modifying translate.php file. I just modify function getModuleTranslation() and instead of
$language = Context::getContext()->language;
I add
if(isset($_GET['lang']) AND $_GET['controller']=='AdminTranslations'){
$language_iso = $_GET['lang'];
$language_id = Language::getIdByIso($language_iso);
$language = new Language($language_id);
}else{
$language = Context::getContext()->language;
}
And now it is working.
Hi,
I have problém with my Prestashop 1.6.1.1 with translations. And the problem is that when I want to save my translation second language which in my case is english then every english translation is rewrite with default language in my case czech. So I am not able to translate my shop. When I upload language file to my theme manually and then go to translations page to translate something and save it then all english is rewrite.
Can you someone help me with this?
Thanks
Michal
Vzhledem k tomu, že ten modul je dost starý, tak tam byla použita stará struktura obrázků. Opravil jsem to a když ten modul znovu nainstaluješ, mělo by ti to PDF vygenerovat.
cataloguePDF.zip
Když prostě přidáš nový stav objednávek tak to nepomůže? Případně si můžeš někde nainstalovat čistou verzi Prestashopu a jenom si v phpmyadminu exportovat všechny tabulky kde jsou stavy objednávek a importovat je do e-shopu, potom by ti to mělo určitě fungovat.
Nainstaluj si někde čistou verzi PS1.6.1 a potom vezmi data z tabulek:
ps_tab
ps_tab_advice
ps_tab_lang
ps_tab_module_preference
u stávající databáze ty tabulky vyprázdni a naimportuj tam data z čisté instalace. Myslím, že by to mělo pomoc a mělo by se poté zobrazovat klasické admin menu.