Hy everyone,
I just put phoca gallery on my website and I'm usin falang for multilanguage module. I have some text in phoca that I want to translate so I installed falang-phoca plugin (to translate categorioes), but my problem is that I don't have text in categories, I have text in "Phoca Gallery>Control panel>Options>Categories View Description" and that text doesn't apear in the ones I can translate in falang. I also tried DirectPHP (i thout to get url of the site and check if it is /en/index or other and the with if choose what to display) it seemed to work with other articles but didn't with this one. does anybody have an idea how to work this out?
thanx in advance
Translation
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Translation
Hi, unfortunately, I don't have any experiences with falang, did you use this plugin:
https://www.phoca.cz/download/category/1 ... -component (falang)?
Jan
https://www.phoca.cz/download/category/1 ... -component (falang)?
Jan
If you find Phoca extensions useful, please support the project
-
vilim
- Phoca Newbie

- Posts: 4
- Joined: 13 Sep 2012, 12:17
Re: Translation
hi, yes that's the plugin I used, but it didn't give me an option to translate what i want. Jan, as you are a phoca hero do you maybe know a way how to put php code in phoca category description, I can put it in my articles but in phoca it gets erased, is there maybe some securitiy php on/off switch in phoca that I could turn off. tnx
-
vilim
- Phoca Newbie

- Posts: 4
- Joined: 13 Sep 2012, 12:17
Re: Translation
one more thing.
to explain, my gallery looks like this:
category 2012(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2011(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2010(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)) etc...
i found out if i put all this in one big category like this
big category(
category 2012(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2011(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2010(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)) etc...
)
and then in the menu link I choose category image view and then i can translate, but the problem is that the "category" link now doesent have an image but folder image, i supose it's because in it are not pictures but other subcategores, can this be set to show pictures that are in subcategories.
I hope you understood what i ment
tanks a lot if you can help
to explain, my gallery looks like this:
category 2012(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2011(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2010(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)) etc...
i found out if i put all this in one big category like this
big category(
category 2012(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2011(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)),
category 2010(subcategory event1 (pictures), event 2 (pictures), event 3 (pictures)) etc...
)
and then in the menu link I choose category image view and then i can translate, but the problem is that the "category" link now doesent have an image but folder image, i supose it's because in it are not pictures but other subcategores, can this be set to show pictures that are in subcategories.
I hope you understood what i ment
tanks a lot if you can help
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Translation
Hi, for exmaple for description area in Category View, see:
https://www.phoca.cz/documents/16-joomla ... t-articles
or see to not erased some code from description:
go to:
administrator\components\com_phocagallery\models\forms\phocagalleryimg.xml
and change from:
to:
Jan
https://www.phoca.cz/documents/16-joomla ... t-articles
or see to not erased some code from description:
go to:
administrator\components\com_phocagallery\models\forms\phocagalleryimg.xml
and change from:
Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAGALLERY_FIELD_DESCRIPTION_LABEL" filter="safehtml" description="COM_PHOCAGALLERY_FIELD_DESCRIPTION_DESC" />to:
Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCAGALLERY_FIELD_DESCRIPTION_LABEL" filter="raw" description="COM_PHOCAGALLERY_FIELD_DESCRIPTION_DESC" />If you find Phoca extensions useful, please support the project