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
`
<?php
if($_zp_gallery_page != 'contact.php') {
printCustomPageURL(gettext('Contact us'), 'contact', '', '');
} else {
echo gettext("Contact us");
}
?>
`
from sidebar.php. Maybe that can give a clue to the problem.