printPageListWithNav gettext not appearing on album.php output.

I am using Version 1.4.3.1 with the default theme. The `gettext` is not working/showing on the album.php output page. I have an album with 9 pages, but there isn't any "previous" or "next" hyperlink to read, not even the "»" sign. I can hover the cursor over the place where it should be, there is a hyperlink, I can see the in the html output, but it is just empty. The pagenumbers are visible though.

`gettext` works fine on image.php but here, it doesn't:

`<php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");`

Why? Any hints, solution?

Comments

  • acrylian Administrator, Developer
    Is it the plain default theme without any modifications? Does it work in the Zenpage theme or other included ones? Any error in the server error log?
  • Yes. No and No. But as I disabled, the ".disabled_nav" in the CSS, I saw that index.php would show the previous & next hyperlinks although not needed with only 1 page. So I checked the code and it was different from the one in album.php It works with

    `<?php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »"); ?>`

    But seriously, I don't know why this "Â" is needed. Doesn't seem like a pointer, trigger or anything to me. But now it works.
  • acrylian Administrator, Developer
    The "Â" clearly doesn't belong there and is probably the result of re-saving the file with a wrong encoding with an editor. It should bet UTF-8 no BOM.

    Regarding the prev/next not needed, some theme layouts may want to show a disabled link/button for layout reasons this so you can. if you don't want you can hide it via CSS.
  • Hmm. Ok, thanks could be it. But I edited the .php files directly on the server with WinSCP. The disabling wasn't the issue, I get the visibilty:hidden option, but the pagelist wasn't showing the gettext only pagenumbers.

    Â. Maybe via uploading, wrongful copy&paste or MySQL DB settings. But i don't have any other problems/issues with the German language. I only viewed the German language files once,also via WinSCP. Wondered how they weren't .ini files. I will leave it for now the way it is. Aynway thanks for info.
  • acrylian Administrator, Developer
    Sorry I have no idea and never heard of WinSCP (well, I am on Mac). YOu should in any case use a plain texteditor (but you know that probably).
    I only viewed the German language files once,also via WinSCP. Wondered how they weren't .ini files.
    Of course they are no .ini files as we use gettext for translation of static texts.
Sign In or Register to comment.