All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Translation working on all pages except home page…

Status Resolved
Add-on / Version Publisher 3.7.4
Severity
EE Version 6.3.5

Gavin @ JCOGS

Sep 27, 2022

Using a simple language drop-down to switch languages

<li>
            <a href="" class="no-link" data-bs-toggle="dropdown-menu-lang" title="languages">
                <span itemprop="name">{phrase:working_language}</span>
            </a>
            <ul class="submenu">
            {exp:publisher:languages}
                <li menuitem itemscope itemtype="http://schema.org/SiteNavigationElement">
                    <a itemprop="url" href="{switch_language_url}">{long_name}</a>
                </li>
            {/exp:publisher:languages}
            </ul>
<p>        </p>
</li>

Works perfectly on every page we’ve tested it on *except* the home page - which does not appear to be affected by choice (site continues to show default language).
We’ve looked for settings and in docs but so far not found anything that might be the cause.
Any thoughts / ideas would be most valued.

#1

Gavin @ JCOGS

Comment has been marked private.

#2

BoldMinded (Brian)

I’ll have to see what the URL Translations are set to in Publisher. Can you provide screenshots?

#3

Gavin @ JCOGS

Comment has been marked private.

#4

BoldMinded (Brian)

Do you have the language switcher tag inside of a channel:entries tag? Have you tried only the code above in your home page template? Take out everything else, and just put the switcher on the page.

#5

Gavin @ JCOGS

It is within a channel entries tag, so I’ll try moving it - but menu code on all pages is same - so given that it works fine on non-home pages I’m not hopeful that this will change anything.

#6

Gavin @ JCOGS

Well that’s a surprise - it worked!

Bril - thanks very much for helping sort that out. Much appreciated 😊

Login to reply