WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Customize language (6 posts)

  1. ritaszabo77
    Member
    Posted 12 months ago #

    Hi, I would like to edit a title called 'Show as slideshow' to my language. It is shown at my gallery page, on top of the images. Where do I edit that?
    Thank you for your help.
    Regards,
    Rita

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Charles Frees-Melvin
    Member
    Posted 12 months ago #

    You can create a localization .mo and .po in the /lang file that matches the language of your wordpress install. Looks like German is the only one in there now but you can add any language you need. The .pot file is in the /lang folder and software like Poedit is great.

  3. ritaszabo77
    Member
    Posted 12 months ago #

    Hello Charles, thanks for your attention.
    Apparently Poedit only runs on Unix and Windows, but I'M on a Mac.
    Is it not possible to edit the code itself? But there are so many .php files when I click on 'Edit' this gallery extention, I can't figure which one to choose.
    If I examine the page source, I find it there like this:
    <div class="ngg-galleryoverview" id="ngg-gallery-1-18">

    <!-- Slideshow link -->
    <div class="slideshowlink">

    [Show as slideshow]

    </div>

    Do you have any idea?
    Many thanks,
    Rita

  4. Charles Frees-Melvin
    Member
    Posted 12 months ago #

    Poedit does work on OSX, I use it for the Canadian English version of WordPress and my plugins. http://www.poedit.net/download.php#osx

    According to the .pot file line you are looking for is on line 170 of admin/install.php

    #: ../admin/install.php:170
    msgid "[Show as slideshow]"
    msgstr ""

    It is never a good idea to rewrite a plugin as you would need to fix it after every update.

  5. ritaszabo77
    Member
    Posted 12 months ago #

    I see. I only need it now to show a customer, just as a visual. I tried to edit that line you mentioned, but that didn't change the text of that link. Never mind, I'll go the proper way. Thank you for the advice, I have now downloaded the Poedit, and dig my head in! :)
    Cheers,
    Rita

  6. ritaszabo77
    Member
    Posted 12 months ago #

    What a great software! I found what you mentioned, and replaced the text I wanted.
    But it now saves my file as a .po file. Do I save it with my language, and load it back to th e lang folder? And if yes, how do I load that content into my website?
    Sorry about the load of questions, I couldn't find any help about this on the Poedit website.
    Rita

Reply

You must log in to post.

About this Plugin

About this Topic