2023-02-02, 12:35 PM
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&pmid={$message['pmid']}&denyreceipt=1">{$lang->deny_receipt}</a>]
[ExiTuS]
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&pmid={$message['pmid']}&denyreceipt=1">{$lang->deny_receipt}</a>]
[ExiTuS]