Forum

Thread tagged as: Question, Problem, Gallery

Using Multilingual solution 2 und Gallery Add-On

Just hit a snag.

Gallery uses a slug for the Albums. Works perfect until you swap the language.

What is the workaround?

Matthew Owen

Matthew Owen 0 points

  • 4 years ago

Reasonably solved with following code on album.php

<?php 
                if(perch_get('s')) {

                    // Output the large images
                    perch_gallery_album_images(perch_get('s'), array(
                       'template'   =>'d_list_image.html'
                    ));

                    // Output the small images used for navigation
                    perch_gallery_album_images(perch_get('s'), array(
                       'template'   =>'d_nav_image.html',
                    ));
                }

                else {
                        perch_gallery_albums(array(
                        'template'=>'d_album-image.html',
                        'image'=>true
                        ));
                    }

                ?>