Page 1 of 1
Phoca cart catalogue language
Posted: 13 Apr 2021, 17:51
by lecoq.fr
Hello
I'm looking to create a catalogue for our association (old car spare parts) .
I started to edit the catalog.php file but the language remains in en-GB while Joomla is configured in fr-FR. I forgot something or is it a bug ?
All the other parts of Phoca Cart are correctly displayed in french. (I edit a file fr-FR.com_phocacart.ini to have an almost complete French translation )
thanks for your help
Joomla : 3.9.14
Phoca cart : 3.5.6
Phoca Cart Cart Module 3.5.5
Phoca PDF 3.0.11
Re: Phoca cart catalogue language
Posted: 15 Apr 2021, 11:17
by lecoq.fr
No more problem... this morning ! I don’t understand what happened!
Next bug : the software "multilanguageCK" does not work for the catalog !
Re: Phoca cart catalogue language
Posted: 15 Apr 2021, 16:07
by lecoq.fr
Ok I added a patch on multilanguageCK to test "phocacartcatalogs"
if ($option == 'com_phocacart' && ($view == 'phocacartorderview' || $view == 'phocacartreports' || $view == 'phocacartcatalogs')) {
so now multilanguageCK works well for HTML/Raw files !
I added different CSS for each format on catalog.php . (I can adapt the CSS according to the different formats)
Next problems are with PDF files :
1) The event onAfterRender is not trigged by PhocaPDFRender therefore {} symbols always appear in the title
2) No picture displayed
I continue my investigation...
Re: Phoca cart catalogue language
Posted: 16 Apr 2021, 16:34
by Jan
Hi, thank you for the info, I will add teh catalogs view to next version.
Yes, it is possible that the PDF cannot be active in some events
Jan
Re: Phoca cart catalogue language
Posted: 19 Apr 2021, 12:08
by lecoq.fr
After a few hours of searching I still can’t solve the problem. This is beyond my skills... I'am sure there is a bug, but where ? I will try to copy/paste part of MultilanguagesCK.php (onChangeText() ) on Catalog.php. We’ll see, hope lives!
Re: Phoca cart catalogue language
Posted: 21 Apr 2021, 13:14
by Jan
It doesn't always have to be a bug. It can be even caused by ordering or running the events. It can even happen, that the event to translate the language is running after the event to render the PDF - so the translation plugin has no chance to translate before rendering the PDF
Jan