samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Fix for qtranslate #443

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install qtranslate plug in Version 2.5.24 and nextgen Version 1.9.0RC1 
2. Create gallery, add description with translation-tags, e. g. 
[:de]testDE[:en]testEN
3. Create page with [album id=x template=extend]
4. Open page.

What is the expected output?
- See description in choosen language (testDE)

What do you see instead?
Whole description field: [:de]testDE[:en]testEN

What version of the product are you using? On what operating system?
See top

Please provide any additional information below.
Fix for this, change in nggfunctions.php following line:
==== OLD ===
        // description can contain HTML tags
        $galleries[$key]->galdesc = html_entity_decode ( stripslashes($galleries[$key]->galdesc) ) ;

        // i18n
        $galleries[$key]->title = html_entity_decode ( nggGallery::i18n( stripslashes($galleries[$key]->title) ) ) ;

==== NEW ===
       // description can contain HTML tags
        $galleries[$key]->galdesc = html_entity_decode ( nggGallery::i18n( stripslashes($galleries[$key]->galdesc) ) ) ;

        // i18n
        $galleries[$key]->title = html_entity_decode ( nggGallery::i18n( stripslashes($galleries[$key]->title) ) ) ;

Original issue reported on code.google.com by g.ri...@scuba-israel-reisen.de on 23 Nov 2011 at 5:06

GoogleCodeExporter commented 8 years ago
THX, fixed in r1032

Original comment by alex.cologne on 27 Nov 2011 at 9:46