How to add custom text ?! needs help

Hi, Many thanks for this gallery script, after several years with other scripts I have recently moved my gallery (www.galerie-obrazy.cz) using this one.

For many daysI have been digging around here for some particular info, I finally gave up as I could not find what' am looking for.

=========
I want to ad some extra text in the menu /sidebar (-it wont be stored on the DB)
e.g.: ''links' -that is linked to my link exchange folder/sub domain and I need the language to switch according:

What have I done trying to achieve that?! I opened the zenphoto.po file and added my custom text.
msgid "Links"
msgstr "Lien",
and the <?php echo gettext("Links"); ?> at the desired place in my theme,
- unfortunately it seems that I am totally wrong as it does not work .

Any help on how to do that properly would be much appreciated
Once again a million thanks for the script.

Comments

  • acrylian Administrator, Developer
    Please read http://www.zenphoto.org/2008/05/translating-tutorial/ for info about how translations work.

    Note that there is no current Czech translation.
  • Thanks, it is not about translation!
    and I dont need translation, for the czech there is a translation already

    I just want to add "custom text " but cant get it to work.
    Thanks you for your help.
  • acrylian Administrator, Developer
    If you don't need translations you neither need to change the .po-file nor do you need the gettext() statement.
    Just add the echo where you want the text to appear, which that is depends on the theme you are using (which you don't tell).
  • Hello, I am sorry if I am bothering a bit
    I am using a custom theme on http://www.galerie-obrazy.cz

    I will try make myself a little clearer.

    In the sidebar menu, I want to add my own 'custom text'
    example: for Links french = 'lien' gr='whateveitis'
    I have added all custom text in the proper file zenphoto.po
    in my theme I tried to use gettext('Links');

    ---unfortunately things does not work
    the language translation does not change, when I select other lang, as it seems I am doing it totaly wrong.
  • acrylian Administrator, Developer
    Now you are contradicting your own statement. Again, please read the translation tutorial. You have to update all translation files with your additional strings to get this to work.

    I have added all custom text in the proper file zenphoto.po
    in my theme I tried to use gettext('Links');
    So then you have surely followed the instructions for separate theme translations as described on the already mentiond tutorial.
  • I seems to be drunk even before new year,
    yeah, exactly, and from the start I did that
    Okay, I will try to see why it is not getting the correct translation now!
  • Oh! now the gettext() is working:
    thanks for your time and help!
Sign In or Register to comment.