I understand how to add Gallery to the menu for themes.
What I need to know is for some themes in the index.template.php I will see the below code.
<a href="', $scripturl, '?action=admin">'.$txt[2]. '</a></td>';
I need to know where the $txt[2] and all the other $txt[xxx] are being declared at so I can add one in for gallery. ie; $txt[2] = admin, and so forth...
Here is where they added admin to the menu.. I see this method alot:
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo $tab1, $ca== 'admin' ? '1' : '2' , '"><a href="', $scripturl, '?action=admin">'.$txt[2]. '</a></td>';