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
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:
[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:
'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:
'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
Hi :-)
It's better to active localfileditor
and add personal name for menu on tab languages ;-)
Offline
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
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';
Offline