Member
Member
slaattnes   2009-10-12, 04:28
#1

I think I found an error. The 404 page does not get translated like the other theme files.

Member
Member
kagutsuchi   2009-10-12, 04:31
#2

What Zenphoto version are you using? The 404 page is translated for me on the nightly build.

Member
Member
slaattnes   2009-10-12, 21:15
#3

I'm using 4528 so I guess it's something I've done. Any suggestions?

Member
Member
kagutsuchi   2009-10-12, 23:02
#4

Out of curiosity I went to your website and tested the 404 page. It is translated for me:

`
Uff da!

Adressen du ba om, eksisterer ikke eller har restriksjoner.

Album: test404
Theme page:
`
I'm not quite sure why you would be having problems.

Member
Member
slaattnes   2009-10-13, 13:01
#5

That text I've written in the 404.php but the search and sidebar is still english (which should get it's text from the language file like the rest of my theme.) It's gettext code is the same as in the other files so I don't see why its not translated: gettext("Search gallery") and so on. There shouldn't be a calling for the gettext/translation file in the document should there?

I also see that 404.php is the only page that doesn't take

`

`
from sidebar.php. Maybe that can give a clue to the problem.

Administrator
Administrator
acrylian   2009-10-13, 13:21
#6

It's a bug .... Look at the first line there is a call to setThemeDomain("zenpage-default"); This needs to be remove as this forces the page to use a separate theme translation (which has other problems as then the main translation would be ignored). This is a leftover from times when the Zenpage plugin and the theme where released independently.

Member
Member
slaattnes   2009-10-13, 20:51
#7

I see it. Hah! I'm blind... The first sentence in the whole text are the problem. Thank you very much:-) What about the missing Contact form URL on the sidebar? I guess the page should be "approved" for sidebar-contact page URL somewhere but I don't have any suggestions. It's not in the contact_form script.

Administrator
Administrator
acrylian   2009-10-14, 08:45
#8

The gettext issue is fixed in the nightly btw.

No idea currently, actually the official zenpage-default 404 page has no sidebar at all, because the 404 page is a little out of context actually (there were some issue with the other functions because of that if I remember correctly).

Thte contact us page is a separate (basically static) theme page named contact.php.

Member
Member
slaattnes   2009-10-16, 22:17
#9
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.