Hi,
I didn't find how to change the Album's name (ex PAYSAGES / LANDSCAPES) when switching to another language, is this possible?
Je n'ai pas trouvé le moyen de changer le nom des albums (ex PAYSAGES / LANDSCAPES) en fonction de la langue sélectionnée; est-ce possible?
Piwigo version: 2.9.4
PHP version: PHP: 5.3.29
MySQL version: MySQL: 5.5.5-10.1.37-MariaDB-1
Piwigo URL: https://woodmanphoto.eu/
Last edited by JL_Woodman (2018-12-30 15:36:21)
Offline
Bonjour,
Merci d'utiliser le forum FR pour les question en FR
installe et utilise le plugin Extended Description
[lang=default]Default description[/lang]
[lang=fr]Description en français[/lang]
[lang=en]Default description[/lang]
[lang=de]Deutsche Beschreibung[/lang]...
Offline
Thank you for your answer but the Extended Description plugin does not allow it and I installed and tested it.
The names of the albums are in the MySQL database which is configured in multilingual mode
But I did not find a way to change the names on the fly or add them to the database with other languages.
Offline
Offline
Thanks ddtddt and Happy new year.
A small example is always better than a long explanation, I didn't understood it works for everything.
My question is where did you put that code:
[lang=en]Default description[/lang]
[lang=fr]Description en français[/lang]
[lang=de]Deutsche Beschreibung[/lang]
in LocalFilesEditor TAB Langues?
Offline
Hi :-)
when you edit photo
il you wan't a photo name with more langue in case name you paste
[lang=en]Photo name EN[/lang]
[lang=fr]Photo name FR[/lang]
[lang=de]Photo name DE ...[/lang]
il you wan't a photo description with more langue in case description you paste
[lang=en]Default description[/lang]
[lang=fr]Description en français[/lang]
[lang=de]Deutsche Beschreibung[/lang]
....
---------------------
you use tag
[lang=nn]......[/lang]
in case where you want multilanues
Offline
Ok I understand that
But in your albums you have:
Home / Default description name [2] when I use English
Accueil / Description en français nom [2] when I use French
Where did you put the code in what file please?
Don't worry I understood directly in Propriétés Nom
It works now, thanks
Last edited by JL_Woodman (2019-01-01 12:22:43)
Offline
Hi :-)
as page picture when you édit album you can use tag lang for name, description ...
Offline
Another question:
In Additional Pages > My homepage
I would like to change:
<a href="index.php?/categories">GALLERIES</a> ● <a href="index.php?/contact">Contact</a></div>
to GALERÍAS as example in Italian do you have an idea how to do that?
Offline
Hi :-)
[lang=fr]GALLERIES[/lang]
[lang=it]GALERÍAS[/lang]
Offline
Thanks ddtddt for your patience.
In Additional Pages > My homepage FR
I have the following code:
<div id="myHomePage">
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
<div class="myHomePage_links">
<a href="index.php?/categories">GALERIES - GALLERIES - GALERIEN - GALERÍAS - GALLERIE</a> ● <a href="index.php?/contact">Contact</a>
</div>
<br>
</div>
and the picture is perfectly displayed
When I try to use the lang TAGs wherever i put them the picture is not displayed anymore
<div id="myHomePage">
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
<div class="myHomePage_links">
<a href="index.php?/categories">[lang=fr]GALERIES[/lang] [lang=en]GALLERIES[/lang] [lang=de]GALERIEN[/lang] [lang=es]GALERÍAS[/lang] [lang=it]GALLERIE[/lang]</a> ● <a href="index.php?/contact">Contact</a>
</div>
<br>
</div>
[lang=all]<p>[/lang]
<div id="myHomePage">
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
<div class="myHomePage_links">
<a href="index.php?/categories">[lang=fr]GALERIES[/lang] [lang=en]GALLERIES[/lang] [lang=de]GALERIEN[/lang] [lang=es]GALERÍAS[/lang] [lang=it]GALLERIE[/lang]</a> ● <a href="index.php?/contact">Contact</a>
</div>
<br>
</div>
[lang=all]</p>[/lang]
<div id="myHomePage">
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
[lang=all]<p>[/lang]
<div class="myHomePage_links">
<a href="index.php?/categories">[lang=fr]GALERIES[/lang] [lang=en]GALLERIES[/lang] [lang=de]GALERIEN[/lang] [lang=es]GALERÍAS[/lang] [lang=it]GALLERIE[/lang]</a> ● <a href="index.php?/contact">Contact</a>
</div>
[lang=all]</p>[/lang]
<br>
</div>
<div id="myHomePage">
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
<div class="myHomePage_links">
[lang=all]<p>[/lang]
<a href="index.php?/categories">[lang=fr]GALERIES[/lang] [lang=en]GALLERIES[/lang] [lang=de]GALERIEN[/lang] [lang=es]GALERÍAS[/lang] [lang=it]GALLERIE[/lang]</a> ● <a href="index.php?/contact">Contact</a>
[lang=all]</p>[/lang]
</div>
<br>
</div>
And I just get those 2 lines which translate properly
IGNICIO >> My homepage FR
GALERÍAS
Offline
Hi :-)
[lang=all]
<div class="myHomePage_photo">
<a href="index.php?/categories">[photo id=143 size=L link=no]</a>
</div>
[/lang]
Offline
Thanks, Oh stupid am I sometimes!
What do you prefer I use the French part of the site or the English part?
Personally for me it doesn't matter.
Offline
JL_Woodman wrote:
Thanks, Oh stupid am I sometimes!
What do you prefer I use the French part of the site or the English part?
Personally for me it doesn't matter.
Hi :-)
as you want
Offline