MyBB Community Forums

Full Version: Languages - Remove square brackets from strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Some language strings contain square brackets to border the text, for example:

datahandler_pm.lang.php: $l['pmdata_code_no_subject'] = '[no subject]';
global.lang.php: $l['view_attachments'] = '[View My Attachments]';
private.lang.php: $l['deny_receipt'] = '[Deny Receipt]';

These fixed brackets could make a theme designing more inflexible.
Any additional text decoration (brackes and similar) in language strings should better be outsourced to templates, like:

private.lang.php: $l['deny_receipt'] = 'Deny Receipt';

Template "private_messagebit_denyreceipt":
[<a href="private.php?action=read&amp;pmid={$message['pmid']}&amp;denyreceipt=1">{$lang->deny_receipt}</a>]