ZenphotoCMS Forum
what's the matter with PrintAlbumMenu - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: what's the matter with PrintAlbumMenu (/thread-7910.html)



what's the matter with PrintAlbumMenu - vincent3569 - 2010-11-29

hello

there is something I don't understand with PrintAlbumMenu.

in my theme, I wrote :
``

with that, PrintAlbumMenu displays "Gallery Index" but there is no translation.

so, I wrote
``

with that, there is no display of the translated value of "Gallery Index".

I have done some debug the translated value of "Gallery Index" disapears in the call of printAlbumMenuJump().
So, the following test in printAlbumMenuJump() is always false
if(!empty($indexname)) { [...] }

Is there a bug with this plugin ?
Thank for you help




what's the matter with PrintAlbumMenu - acrylian - 2010-11-30

Seems to me that you set the parameter wrong:
printAlbumMenu('jump', NULL, '', '', '', '', '', gettext('Gallery Index'));
should be
printAlbumMenu('jump', NULL, '', '', '', '', gettext('Gallery Index'));
It's the 7th parameter not the 8th.

Besides that I found indeed a bug in the jump variant but that has nothing to do with this actually.




what's the matter with PrintAlbumMenu - vincent3569 - 2010-12-02

oups, i did a mistake !!
thanks for you help :-)