Announcement

#1 2011-07-27 14:27:47

styxsailor
Translation Team
2011-07-18
34

MENU root translation

Trying to get a reasonably fluent (swedish) translation for my gallery, I stumble on the menu block. This seems hardcoded somewhere! All different language options I tried have the default "MENU" in the head, but in the actual menu, it is customised to suit the specified language.

The top "MENU" should also follow the language setting, but what is the reason for the current behaviour?

Offline

 

#2 2011-07-27 15:09:59

flop25
Piwigo Team
2006-07-06
7037

Re: MENU root translation

Hello
Zaphod forgot to turn that word into a translatable one.
I notice him
thx for reporting


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2011-08-18 21:57:48

Zaphod
Former Piwigo Team
2006-11-13
441

Re: MENU root translation

I'll include the modification in the next version.
In some languages, the results seems strange (in czech for example, it's: "Další funkce", which seems to mean "other characteristics").

But I think this is more a translation problem than a theme problem... the theme should use the language item for "menu".

Offline

 

#4 2011-09-04 17:33:54

styxsailor
Translation Team
2011-07-18
34

Re: MENU root translation

I just installed piwigo 2.2.5, this feature is still present...

Where can I edit the code to change it, which file does it appear in or is it in the database?

Thanks,

-- styxsailor

Offline

 

#5 2011-09-04 19:54:01

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

Re: MENU root translation

styxsailor wrote:

I just installed piwigo 2.2.5, this feature is still present...

Where can I edit the code to change it, which file does it appear in or is it in the database?

Thanks,

-- styxsailor

Isn't key to piwigo but key to stripped

stripped is up to date on your site ?


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 2011-09-04 20:06:48

styxsailor
Translation Team
2011-07-18
34

Re: MENU root translation

I did a fresh install just today from the Netinstall.php, so it should be the latest, however it does not come with a "stripped" theme at all. "Clear" "Dark" and "Sylvia" are installed by default, and I use my favorite "Simple Grey".

Offline

 

#7 2011-09-04 20:27:35

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

Re: MENU root translation

styxsailor wrote:

I did a fresh install just today from the Netinstall.php, so it should be the latest, however it does not come with a "stripped" theme at all. "Clear" "Dark" and "Sylvia" are installed by default, and I use my favorite "Simple Grey".

simple are a lang file with menu ?


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 2011-09-04 20:30:00

Zaphod
Former Piwigo Team
2006-11-13
441

Re: MENU root translation

The screen capture in the first post is indeed from "simple grey" theme.

So there's no way you can see a modification that has been done on another theme;)
(which is based on simple grey... so I needed to do the modification anyway)

Last edited by Zaphod (2011-09-04 20:30:59)

Offline

 

#9 2011-09-04 20:33:04

Zaphod
Former Piwigo Team
2006-11-13
441

Re: MENU root translation

There is one file to modify in the theme "simple".
In index.tpl, on line 3, there is a "Menu" to replace by "{'Menu'|@translate}".

Offline

 

#10 2011-09-04 20:35:09

Zaphod
Former Piwigo Team
2006-11-13
441

Re: MENU root translation

The exact line to replace is:

Code:

<span id="menuswitcher" title="{'Show/hide menu'|@translate}">Menu</span> »

by

Code:

<span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span> »

The best thing to do is to create a template extension with local files editor.

Last edited by Zaphod (2011-09-04 20:35:22)

Offline

 

#11 2011-09-04 21:01:25

styxsailor
Translation Team
2011-07-18
34

Re: MENU root translation

Ahhh, there it is! :) Now it looks nice and consistent. Thanks a lot for the help! I will have to read up on template extensions a rainy day, as well as repositories and contributions, as I find myself (re)doing quite a bit of translation improvements as I try to set up a gallery in Swedish.

Offline

 

Board footer

Powered by FluxBB

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