WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: NextGEN Gallery] Translating Gallery/Album Titles (21 posts)

  1. Arnoud
    Member
    Posted 5 years ago #

    I would like to know how I can translate the gallery titles I use.
    The counter of pictures inside a galllery is nicely translated, the title however not.

    Example:
    In English:
    Airplanes
    25 Photos

    In Dutch:
    Airplanes
    25 Afbeeldingen

    it should be:
    In Dutch:
    Vliegtuigen
    25 Afbeeldingen

    How can I translate the title?
    With the .mo file I use for the rest of my website it's not working.
    The language plugin I use also doesn't translate the title when using language tags [lang_en]Airplanes[/lang_en][lang_nl]Vliegtuigen[/lang_nl]

    Any ideas on this?

  2. bee dudler
    Member
    Posted 5 years ago #

    Hi,
    have you visited this page already?
    http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/languages/

    best regards
    bee

  3. Arnoud
    Member
    Posted 5 years ago #

    Yes I have. And as you can see in my post, the rest of the gallery is translated nicely. (Including the Admin Panel).
    Only the names of my galleries aren't translated.

  4. bee dudler
    Member
    Posted 5 years ago #

    Hi,
    sorry got you wrong. If i get you right this time: The galleries can be named individually by yourself under gallery->manage galler->gallery options and there description what i enter there will be shown in the albums as gallery name.

    best regards bee

  5. Arnoud
    Member
    Posted 5 years ago #

    Just to be clear: I tried adding the names of my galleries to the .mo / .po file as well. Didn't work.
    Looks like the gettext tag for the gallery title's is missing?

  6. Arnoud
    Member
    Posted 5 years ago #

    Hmm... guess I need to be a bit more specific:

    I would like the custom tiles/name of my galleries to be displayed in two languages. Either with a [lang] or through gettext.

  7. Alex Rabe
    Member
    Posted 5 years ago #

    Gallery name / title are currently not GETTEXT enabled, so you can use them only in one language

  8. Arnoud
    Member
    Posted 5 years ago #

    Are there any plans to make them GETTEXT enabled?
    Or even better, [lang] tag compatible?
    (Just like with a blog/page title?)

  9. Arnoud
    Member
    Posted 5 years ago #

    Or is there a good tutorial on how I can do this myself?

  10. Arnoud
    Member
    Posted 5 years ago #

    nggfunctions.php:

    Line 447 & 457:

    .$gallerycontent->title.
    Changed to:
    .__($gallerycontent->title).

    that worked for me.

    I hope you will include it into the next release, so I won't have to update my nggfunctions.php file at that point. :)

  11. alarch
    Member
    Posted 5 years ago #

    I have a related issue to the one raised by Derice. I wish to create bilingual Welsh/English blogs and websites using your (excellent!) plugin together with Language Switcher. I have created incomplete Welsh .mo and .po files and experimented with these. The admin interface is translated OK - but the elements that are displayed to blog users remain in English. In particular [Show picture list] and [Show as slideshow] appear only in English - even though they have been translated in my Welsh .po file. Derice's solution above might be applicable - but I don't know which file to change.

    I have also noticed earlier posts dealing with the issue of "Next>" and "<Prev" in thickbox js files. Am I right in thinking that the only current way of dealing with text that appears in js files is to have one language only - or to have both appear together?

  12. Arnoud
    Member
    Posted 5 years ago #

    It seems that in NextGen 1.02 the titles are (still) not (yet) Gettext enabled.
    Any info on when this will be done?

  13. Alex Rabe
    Member
    Posted 5 years ago #

    You can do that in the templates by yourself

  14. Arnoud
    Member
    Posted 5 years ago #

    What templates are you referring to exactly?

  15. Alex Rabe
    Member
    Posted 5 years ago #

  16. Arnoud
    Member
    Posted 5 years ago #

    Thanks! I'll have a look and see what I can create. :)

  17. johndeere
    Member
    Posted 5 years ago #

    yeah, thanks! i got it working: http://www.prepaid-pakete.org

  18. alarch
    Member
    Posted 5 years ago #

    I have upgraded to the latest versions of NextGen qTranslate and WordPress and Gettext doesn't appear to work in NextGen gallery. I've followed the template approach (created a gallery-qtrans.php in nggallery folder within my active theme folder) - and used the _e() and __() functions wrapped around my image descriptions and alttext. On pre 1 releases of NextGen this approach worked fine, but now these functions don't work at all. Has anyone got Gettext to work with NextGen and qTranslate (or other language switching plugin)?

    I have tried using the old style lang tags: [lang_xx][/lang_xx] and the new style ones: <!--:xx--><!--:--> . Neither work.

  19. alarch
    Member
    Posted 5 years ago #

    Typical - I find the answer straight away after posting. The answer is to use quicktags (e.g. [:en] no closing tag) around the image descriptions and alttext in the Manage Gallery admin area. I'd still like to know why the full tags: <!--:xx--><!--:--> don't work.

  20. Arnoud
    Member
    Posted 5 years ago #

    Thanks for that tag!
    I've been looking all over for that!

    Works for Gallery titles as well! :)

  21. seltzdesign
    Member
    Posted 5 years ago #

    @alarch

    Hello. I just came across this discussion and see that you have some Welsh .mo and .po files.

    I am just in the process of designin a website in wordpress that needs to be in Welsh and English.

    Is there any chance you could provide me with the files? That would safe me lots of work and hassle (i dont speak welsh myself).
    You say they are incomplete, so maybe with combined effort we can get them completed (i know a lot of very good welsh speakers).

    Im also planning on using NextGen so any hints for everything to be smooth would be highly appreciated.

    Thanks in advance !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.