Announcement

#1 2018-12-30 15:21:39

JL_Woodman
Member
2018-12-30
12

Support Multilingues

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

 

#2 2018-12-30 21:24:16

executive
Member
2017-08-16
1214

Re: Support Multilingues

Je pense que non.

Offline

 

#3 2018-12-31 06:41:59

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

Re: Support Multilingues

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]...


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

 

#4 2018-12-31 07:58:01

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#5 2018-12-31 17:31:39

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

Re: Support Multilingues


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

 

#6 2019-01-01 10:00:58

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#7 2019-01-01 10:12:06

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

Re: Support Multilingues

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


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

 

#8 2019-01-01 12:12:21

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#9 2019-01-01 12:23:02

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

Re: Support Multilingues

Hi :-)

as page picture when you édit album you can use tag lang for name, description ...


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

 

#10 2019-01-01 15:35:42

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#11 2019-01-02 06:17:21

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

Re: Support Multilingues

Hi :-)

[lang=fr]GALLERIES[/lang]
[lang=it]GALERÍAS[/lang]


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

 

#12 2019-01-02 10:25:33

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#13 2019-01-02 21:50:38

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

Re: Support Multilingues

Hi  :-)
[lang=all]
  <div class="myHomePage_photo">
    <a href="index.php?/categories">[photo id=143 size=L link=no]</a>
  </div>
[/lang]


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

 

#14 2019-01-03 08:19:19

JL_Woodman
Member
2018-12-30
12

Re: Support Multilingues

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

 

#15 2019-01-04 06:08:19

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

Re: Support Multilingues

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


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

 

Board footer

Powered by FluxBB

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