WordPress.org

Ready to get started?Download WordPress

Forums

NextGen Gallery Powertags
[resolved] Tags in other language (11 posts)

  1. J-Skip
    Member
    Posted 1 year ago #

    Hi. Thx for a great plugin.
    It works fine, but when i change tags to something on my language (i'm russian), it gives me only one message "picturelist is empty". It's some kind of a charset problem i guess. But in nextgen-gallery-powertags.php file if i change all_word "All" to "Все" (i'ts all on russian), it works just fine. Any ideas how to fix it? Or you can only insert tags in english?

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

  2. sardbaba
    Member
    Plugin Author

    Posted 1 year ago #

    Hi J-Skip, you're welcome.

    Please, check the "Translation notes" in the main plugin page.

    If you have downloaded the last plugin version, you will find a folder named "languages" in which you can find the italian version (.po file).

    If you duplicate this file adding the russian language code (ru_RU? i dunno) at the end, instead of the italian one (it_IT), and change the italian translations with the russian ones, I can add your language to the folder.

    Thanks

  3. J-Skip
    Member
    Posted 1 year ago #

    Yes i have last plugin version. Did all you have said with .po file. It works for (All, All Tags etc.). But when i enter my own tag on galley images page. Nothing happens, it's like there is no tag (picture doesn't display). It's a problem with cyrillic font i guess.

    Sry for my bad english.
    Thanks

  4. sardbaba
    Member
    Plugin Author

    Posted 1 year ago #

    Uhmmm yep it could be a problem with the cyrillic characters, I should verify this. If you send your .po file to my mail address (info@mauromascia.com) I'll try to investigate.

    No problem for your english, also mine is far away to be really good ;)

  5. J-Skip
    Member
    Posted 1 year ago #

    Done.
    Check your e-mail whenever you are free. There also is a read_me file in it. With an example.

    Ty for your help.

  6. sardbaba
    Member
    Plugin Author

    Posted 1 year ago #

    Ok I found where is the problem...
    I created a tag using "любые" and this word in the wp_terms table becomes '%d0%bb%d1%8e%d0%b1%d1%8b%d0%b5'.

    The problem is that before getting the picture IDs, I use this function:
    $sluglist = str_replace("%", "%%", $sluglist);
    to solve other problems, see this issue: http://code.google.com/p/nextgen-gallery/issues/detail?id=416 (this code comes from the original NextGen Gallery code).
    But replacing "%" with "%%" changes the "cleaned" cyrillic word into '%%d0%%bb%%d1%%8e%%d0%%b1%%d1%%8b%%d0%%b5', doubling the % symbol.

    So, '%%d0%%bb%%d1%%8e%%d0%%b1%%d1%%8b%%d0%%b5' is different from '%d0%bb%d1%8e%d0%b1%d1%8b%d0%b5' and you got "Picture list is empty".

    Now, I'm sure that removing the string replace code solves your issues but I'm not sure if this causes issues in all the other languages...

  7. J-Skip
    Member
    Posted 1 year ago #

    If i remove this line it kinda works, i can see images in "All" section and i can see cyrillic tags.
    But when i press on them i still got the same message "picturelist is empty".
    P.S. latin tags work fine.

  8. sardbaba
    Member
    Plugin Author

    Posted 1 year ago #

    Ummm this is pretty strange, checked right now and it works like a charm, both latin and cyrillic, with or without permalinks.

    Please double check it.

    Do you have an access on the database? If yes, can you please check the wp_terms table and see if the word "Любые" in the name column becomes "%d0%bb%d1%8e%d0%b1%d1%8b%d0%b5" in the slug column?

    It could be a problem with the database collation (mine is set to "latin_swedish_ci" for example).

  9. J-Skip
    Member
    Posted 1 year ago #

    Strange.

    I have deleted all tags, made new ones. Deactivated and activated your plugin. And now it's working. With or without this line:
    $sluglist = str_replace("%", "%%", $sluglist);
    Both in latin and cyrillic. Dunno what was it. Did you remove str_replace when checked?

    Anyway, thanks for the fast support and useful plugin. I'll let you know if something goes wrong.

    With respect, J-Skip.

  10. sardbaba
    Member
    Plugin Author

    Posted 1 year ago #

    lol nop, str_replace is not removed and no plugin changes... so... mystery of faith... ehehehehe
    I mark this as resolved, feel free to re-open if it doesn't work anymore.

    You are welcome, cheers!

  11. catdogua
    Member
    Posted 6 months ago #

    Hi. I have tha same problem.
    Last version of plugin.
    http://catdogua.tk/gallery/
    http://catdogua.tk/ngg_tag/девушка/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic