WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] translation of client side text (10 posts)

  1. Majklas
    Member
    Posted 1 year ago #

    Again, thank You for a great plugin, but where can I find translations of image x of y apart from this:

    /* translation */
    		'help' => __(get_option('jqlb_help_text'), 'jqlb'),
    		'prevLinkTitle' => __('previous image', 'jqlb'),
    		'nextLinkTitle' => __('next image', 'jqlb'),
    		'closeTitle' => __('close image gallery', 'jqlb'),
    		'image' => __('Image ', 'jqlb'),
    		'of' => __(' of ', 'jqlb'),
    		'download' => __('Download', 'jqlb'),
    		'pause' => __('(pause slideshow)', 'jqlb'),
    		'play' => __('(play slideshow)', 'jqlb')

    Yes, I'm running on WPML and it should get locale automatically, but where can I translate those strings not using WPML string translator?

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. shcshc
    Member
    Posted 1 year ago #

    Hi,

    the translations can be found in the folder "translations":

    - there was a type mismatch in the German translation and I found the setting in the file "jqlb-de_DE.po". But when I copy this file back to the server there is no change visible.

    And I have an additional question:

    - I can't add any translations as they refer to a php-file in a specific line. I would like to add "play slideshow" & "pause slideshow". How can I do this?

    Thanks for your help,
    SHC

  3. Niko23
    Member
    Posted 1 year ago #

    Hi,

    I figured out how to edit the .po and .mo files, it is a little bit complicated.
    I have updated the german translation files according to the newest version 1.4.1. You can find them in the .zip file attached below.

    wp-jquery-lightbox-language-de_1.4.1.zip

    Just replace the files in wp-content/plugins/wp-jquery-lightbox/languages/ and it will work fine.

    Hope that will help.

  4. shcshc
    Member
    Posted 1 year ago #

    Hi Niko,

    thanks a lot - that works very well!!!

    SHC

  5. Majklas
    Member
    Posted 1 year ago #

    my locale was wrong, so I can mark this topic as resolved..

  6. Majklas
    Member
    Posted 9 months ago #

    shcshc,
    I forgot to answer you :)
    You must open a *.po file in POEdit and then go to Catalogue -> Properties. Then under Sources Paths delete every line with a red cross button.
    Add a new path with ../ So it will look for php files in directories one level up from your *.po file location.
    Then hit Update button and watch Poedit to find new translations and add them. Now You need only to translate them :)
    save, reupload and refresh Your site :)

  7. Majklas
    Member
    Posted 9 months ago #

    majklas.nereal.us/languages-lt_LT.rar
    update Lithuanian translations, thank You Ulf!

  8. ulfben
    Member
    Plugin Author

    Posted 9 months ago #

    Got it, thanks!

  9. José Luís
    Member
    Posted 9 months ago #

    ulfben, if you want, here's the translation files for pt_BR:
    wp-jquery-lightbox-pt_BR.zip

  10. ulfben
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks a bunch!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic