Announcement

#1 2021-07-15 01:52:29

ungodlythunder
Member
United States
2020-12-20
22

[resolved] How to rename the Discover Menu options?

Hello all,

I would like to change some of the menu names under Discover (namely Recent Photos, Random Photos, Most Visited, etc) and even add a few, but I cannot find the appropriate areas in the menubar TPL files, nor does Advanced Menu Manager seem to make this an option.

Can someone please direct me on how to do this?


Piwigo 11.5.0 Check for upgrade
Operating system: Linux
PHP: 7.4.19 (Show info) [2021-07-14 23:50:02]
MySQL: 5.5.5-10.3.26-MariaDB [2021-07-14 18:50:02]
Graphics Library: External ImageMagick 6.9.10-68

Piwigo URL: http://cxhnow.com/gallery

Offline

 

#2 2021-07-18 21:31:01

ungodlythunder
Member
United States
2020-12-20
22

Re: [resolved] How to rename the Discover Menu options?

Thankfully I found the answer. Leaving this here in case anyone else needs help in the future:

The default Discover menu options and their names will not be in the theme templates as usual. Instead they will be found in the menubar.inc.php file.

It is filed in my webhost file manager like so:

Code:

[GALLERY NAME] > include > menubar.inc.php

You will need to find the menu titles you want to change (such as Recent Photos) in between the NAME tags.

Example:

Code:

'NAME' => l10n('Most Visited')

-- changed to ---

'NAME' => l10n('Most Viewed')

You can also change the text/tooltip in between the TITLE tags. Make sure you do not delete the apostrophes ( ' symbols) or you will break the code until you put it back.

Example:

Code:

'TITLE' => l10n('display a set of random photos'),

-- changed to ---

'TITLE' => l10n('Display a set of random files'),

Tip If you're a complete newbie like me, make a backup copy of the original file.

Last edited by ungodlythunder (2021-07-18 21:36:40)

Offline

 

#3 2021-07-18 23:07:40

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

Re: [resolved] How to rename the Discover Menu options?

Hi :-)

It's better to active localfileditor

and add personal name for menu on tab languages ;-)


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 2021-08-31 18:44:04

ungodlythunder
Member
United States
2020-12-20
22

Re: [resolved] How to rename the Discover Menu options?

ddtddt wrote:

Hi :-)

It's better to active localfileditor

and add personal name for menu on tab languages ;-)

I just saw your reply! Thanks for the tip

The only issue with that is I am (obviously) a complete newb to it. Would I just copy and paste the codes shown in my previous posts into that or do I need to add anything?

Offline

 

#5 2021-08-31 20:01:12

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

Re: [resolved] How to rename the Discover Menu options?

Hi :-)

go to administration > Plugins > localfileeditor (configuration)

Tab language
edit language

paste


$lang['Most Visited'] = 'Most Viewed';
$lang['display a set of random photos'] = 'Display a set of random files';


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