Announcement

  •  » Extensions
  •  » Language Switch Menubar + Additional Pages

#1 2012-05-23 11:19:08

homebee
Member
2012-05-23
5

Language Switch Menubar + Additional Pages

Hi,

When viewing an additional page, the flags of the "Language Switch Menubar" link to :
"index.php?/additional_page&lang=de_DE"

I'd like them to link to :
"index.php?/page/testPage&lang=de_DE"

What shall I modify to do this ?

Regard, G.


PS: A big thanks to the developers of Piwigo, great tool.


[ Piwigo 2.3.4 ; Language Switch Menubar 2.3.b ]

Offline

 

#2 2012-05-23 14:41:43

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7202

Re: Language Switch Menubar + Additional Pages

With [extension by Piwigo Team] Extended Description a page is multilang

I don't really understand the need


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2012-05-24 04:33:40

homebee
Member
2012-05-23
5

Re: Language Switch Menubar + Additional Pages

Let' rephrase the question :

How can I change the language used from an additional page without leaving that page  ? (building a multilingual site)

I'd like a home page that would look like this :

Code:

[lang=default]
<div style="width:100%;height:50px">
            <a href="index.php?/page/test01&amp;lang=en_UK">
              <img src="language/en_UK/en_UK.jpg" alt="English [UK]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=fr_FR">
              <img src="language/fr_FR/fr_FR.jpg" alt="Français [FR]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=nl_NL">
              <img src="language/nl_NL/nl_NL.jpg" alt="Nederlands [NL]"/> 
            </a>
</div>
<div class="content_block"> Some tex in english </div>
[/lang]

[lang=fr]
<div style="width:100%;height:50px">
            <a href="index.php?/page/test01&amp;lang=en_UK">
              <img src="language/en_UK/en_UK.jpg" alt="English [UK]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=fr_FR">
              <img src="language/fr_FR/fr_FR.jpg" alt="Français [FR]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=nl_NL">
              <img src="language/nl_NL/nl_NL.jpg" alt="Nederlands [NL]"/> 
            </a>
</div>
<div class="content_block">  Du text en Francais </div>
[/lang]

[lang=nl]
<div style="width:100%;height:50px">
            <a href="index.php?/page/test01&amp;lang=en_UK">
              <img src="language/en_UK/en_UK.jpg" alt="English [UK]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=fr_FR">
              <img src="language/fr_FR/fr_FR.jpg" alt="Français [FR]"/> 
            </a>
            <a href="index.php?/page/test01&amp;lang=nl_NL">
              <img src="language/nl_NL/nl_NL.jpg" alt="Nederlands [NL]"/> 
            </a>
</div>
<div class="content_block">  Tekst in het Nederlands </div>
[/lang]

Offline

 

#4 2012-07-27 10:20:08

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7202

Re: Language Switch Menubar + Additional Pages

@homebee

I thinks it's ok now ;-)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2012-08-30 17:40:36

homebee
Member
2012-05-23
5

Re: Language Switch Menubar + Additional Pages

I am now testing it and it works great.

Not a bug, a feature: If one chooses the language and then logs in, the language is reverted to the user's default setting. If I'm not mistaken, this was not the case in earlier releases (the choice of language was kept).

Btw... I was quite concerned about upgrading to 2.4 but is really went smoothly ! You're doing a great work !

Best, G.

Offline

 
  •  » Extensions
  •  » Language Switch Menubar + Additional Pages

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact