Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #1295538

    Liebes Team,

    Kurze Erklärung:
    Ich baue gerade auf meiner Testseite ein dreisprachige Website und habe mich entschieden für die Startseite das Portfolio Masornay mit der Tag Darstellung landscape /Portrait zu verwenden. Die Bilder sind verlinkt auf ein Unterseite und nicht auf die Portfolioeinträge.

    Nun zu meinen Problem: Leider wird das Masonary nur in der Stammsprache (deutsch) angezeigt, nicht auf den Seiten der beiden anderen Sprachen (English und ungarisch)? Wie kann ich das lösen.
    Sollte dies nicht lösbar sein gibt es eine andere Möglichkeit die anderen masorygalerien so aussehen zu lassen? Oder ein plugin das sich gut mit enfold versteht und keine grösseren Problem macht?
    Danke schon mal für euere Unterstützung

    und liebe grüsse aus österreich
    monika

    #1296175

    Hi Monika,

    The login details you posted are not working, please check and verify.

    Unknown username. Check again or try your email address.

    Also please let us know how we can reproduce the problem you are having on your actual site.

    Best regards,
    Rikard

    #1296193

    Hi, Rikard
    Oh sorry, here again

    // moved info into the private field

    Thanks
    Best regards,
    monika

    #1297146

    Hi,

    Thank you for the update.

    How did you translate the pages? Did you translate the images to other languages? If the media files are not yet translated, please check the following documentation.

    // https://wpml.org/documentation/getting-started-guide/media-translation/

    Best regards,
    Ismael

    #1297295

    Hi,

    Thank you for your answer. I work with polylang not with wpml. and I don’t quite understand why I should translate the media file when the images are called up via the portfolio gallery (portrait and landscape) .. Unfortunately, my customer does not want to use wpml because it is chargeable
    sorry for me that is not understandable. thanks for your support.

    Thank you and kind regards
    monika

    #1297481

    Hello again,

    I’ve now translated everything. Unfortunately, it doesn’t look like it does on the German home page. What is it now? Thank you for your support
    kind regards
    monika

    #1297531

    Hi,

    The images in the portfolio page of both Magyar and Deutsch languages are displaying properly on our end. (see private field)

    Where and how can we reproduce the issue? If you are using the Polylang plugin, please check the following documentation.

    // https://polylang.pro/doc/working-with-media/

    Best regards,
    Ismael

    #1297545

    Hi,

    The Masonary on the German homepage looks right!

    302 / 5000
    Übersetzungsergebnisse
    The masonary on the hungarian homepage looks wrong here is not sorted night by day or is simply not displayed! This is also the case on the English homepage!

    I would like the Masonary to look like the German start page in all languages (only on the start page)

    Thank you
    Kindregards
    monika

    #1297866

    Hi,

    Thank you for the info.

    Did you adjust the Styling > Size Settings of the masonry element in the hu and en languages? We tried to check it but the login account above is no longer valid. Please provide another account or restore the previous account above.

    Best regards,
    Ismael

    #1298047
    This reply has been marked as private.
    #1298735

    Hi,

    Thank you for the update.

    This is not working correctly because the post tags (landscape, portrait) are automatically translated to something else, so the theme does not recognize them. You may need to set it so that Polylang does not automatically translate the post tags.

    Try this filter in the functions.php file.

    
    // disables the post tag taxonomy translation
    function ava_pll_get_taxonomies_mod( $taxonomies, $is_settings ) {
        unset( $taxonomies['tag'] );
        return $taxonomies;
    }
    add_filter( 'pll_get_taxonomies', 'ava_pll_get_taxonomies_mod', 10, 2 );
    

    For additional info about post tag translations, please try to contact the plugin authors.

    Best regards,
    Ismael

    #1299024
    This reply has been marked as private.
    #1299614

    Hi,

    Thank you for your patience.

    We could also use the avf_ratio_check_by_tag_values filter to adjust the ratio_check_by_tag logic and include the tag translations so that the theme can still return the correct class name.

    Best regards,
    Ismael

    #1299640
    This reply has been marked as private.
    #1299808

    Hi,

    We may need the access to the file server in order to properly test the filter with your installation, which contains the actual tag translations. Please post the FTP details in the private field.

    Best regards,
    Ismael

    #1300509
    This reply has been marked as private.
    #1300751

    Hi,

    We used this code in the functions.php file, but it did not work.

    add_filter('avf_ratio_check_by_tag_values', 'avf_ratio_check_by_tag_values_mod', 10, 1);
    function avf_ratio_check_by_tag_values_mod($tags) {
        $lang = pll_current_language();
    	if($lang == 'hu') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape');
    	if($lang == 'en') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape');
    	if($lang == 'de') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape');
        return $tags;
    }
    

    But then we noticed that the pages are not yet translated including the home page. Please translate the pages first, then set the home page in the Settings > Reading panel. (see private field)

    // https://polylang.pro/doc/define-your-home-page-as-a-static-page/
    // https://polylang.pro/doc/translating-pages-posts-categories-and-tags/

    Best regards,
    Ismael

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.