I hope it's the best place to post this suggestion, otherwise just tell me where I should post it
My concern is that following the installation of some few custom BBCodes, I wanted (like for "Font colour") to be able to...
- choose a different button label than the BBCode tag,
- localize the button label,
- and localize the button help line.
http://www.phpbb.com/community/viewtopi ... &t=1743555
...but in fact it seems it's not possible by default, but easy to implement.
That's why I'm posting this suggestion here
In fact, in includes/functions_display.php, we can find...
Code: Select all
'BBCODE_TAG' => $row['bbcode_tag'],
'BBCODE_HELPLINE' => $row['bbcode_helpline'],
Code: Select all
'BBCODE_TAG' => ($user->lang['BBCODE_'.strtoupper($row['bbcode_tag'])]) ? $user->lang['BBCODE_'.strtoupper($row['bbcode_tag'])] : $row['bbcode_tag'],
'BBCODE_HELPLINE' => ($user->lang['BBCODE_'.strtoupper($row['bbcode_tag']).'_HELP']) ? $user->lang['BBCODE_'.strtoupper($row['bbcode_tag']).'_HELP'] : $row['bbcode_helpline'],
By default nothing changes, as if no specific language string exists, it will continue to take what is set in the ACP. But it allows admins to add 2 new language strings by custom BBCode in the posting.php language file of each language...
- BBCODE_<BBCODE_TAG> where <BBCODE_TAG> is the tag in upper case set in the ACP
- BBCODE_<BBCODE_TAG>_HELP where <BBCODE_TAG> is the tag in upper case set in the ACP
Then for English, you can add the 2 new strings in language/en/posting.php...
- BBCODE_YOUTUBE => 'YouTube', (using capital letters if you want)
- BBCODE_YOUTUBE_HELP => 'YouTube video: do this, do that...',
- BBCODE_YOUTUBE => 'YouTube',
- BBCODE_YOUTUBE_HELP => 'Vidéo YouTube: faites ceci, faites celà...'
Easy
I hope it can be added in a future release.
Thanks!