Member
Member
yanzen   13-01-2013, 12:39
#1

At www.yanzen.de I

  • use a modified zpGgalleriffic theme
  • use menu_manager for my main menu
  • recently switched on a second language (German).

When I am logged in, everything works fine. When I am logged out English is still fine but I experience strange behaviour in German in two places:

a) I get an extra menu item »Neuigkeiten« that is not there in EN
b) At top left instead of my site name I get links »Home« and »Galerie«.

I changed the php a year ago so I would keep the site name instead of links to Home/Gallery – I can't remember exactly what I did though, but again: when logged in, none of this happens when switching languages.

Screenshots are here: http://imgur.com/a/lCBAt#0

Any ideas? Thanks!

Administrator
Administrator
acrylian   13-01-2013, 13:59
#2

a) Even in the EN version there is an menu element news before the gallery one even if it is not show. You have to check the source.

b) Sorry, if it appears there must be a call for it and that would be language independent.

Member
Member
yanzen   13-01-2013, 17:06
#3

Thanks, I'll dig then. Just thought it was puzzling to get two different behaviours depending on logged in status.

Administrator
Administrator
acrylian   13-01-2013, 17:12
#4

Well, you get different display if logged in. Then you generally get unpublished and/or protected items as well by default and if the rights of the user allow.

Junior Member
Junior Member
sinlyn   15-01-2013, 07:33
#5

a) I get an extra menu item »Neuigkeiten« that is not there in EN

WTF

Member
Member
yanzen   15-01-2013, 09:13
#6

The problem with the extra item is different html in DE and EN.

DE:
ul id="thesitetitle"
li
[...]
a href="/news" Neuigkeiten /a
/li
/ul

EN:
ul id="thesitetitle"
[...]
li id="newslist"
a href="/news" News /a
/li
/ul

In EN newslink is enclosed in li#newslist, which in my css has display:none. In German this li is missing, hence the item got displayed.

As I toyed around heavily with the theme's code I can't say whether I broke something or not, but in any case acrylian set me on the right track, thanks.

Member
Member
sbillard   15-01-2013, 19:34
#7

For future note, you can enclose postings of code in peck marks (back ticks) and the forum will display even the html as text.

e.g.

`

[*]
...

`

Member
Member
yanzen   13-03-2013, 14:01
#8

Ok, once again, the problem was the user:

Yesterday I fixed problem b): »At top left instead of my site name I get links »Home« and »Galerie«.«

Somewhere I think I read that in multi lingual mode zenphoto uses main language content if secondary language content is empty, so in options -> gallery I just left the German field for »Gallery title« blank. Turns out once I fill it, problem b) goes away.

Cheers.

Member
Member
vincent3569   13-03-2013, 15:18
#9

hi,
according to me, the main problem is that zpGalleriffic uses some strings which are not translated.
so whatever language used, the string stays as it is (in english, natural language of the theme creator).
if you overwrite the strings with your natural language (german as example), english user will seen the string in this new language.

I have the same issue with zpArdoise and I managed some specific translations with gettext_th (but I haven't do that for all languages)

Administrator
Administrator
acrylian   13-03-2013, 16:16
#10

Also it is heavily JS powered so there might be an issue somewhere if a string is unexpected emtpy.

Did you try an official theme? This is really the first you need to do (besides looking into error logs) if you encounter an issue to make sure it is the theme.

Member
Member
yanzen   13-03-2013, 19:02
#11

Thanks for your replies, I don't know if I understand, though: I just came back to say that and how I fixed it so other people could find it – the issue is gone now and the problem was me.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.