MyBB Community Forums

Full Version: Remove square brackets from language definitions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
These cause problems when styling links as buttons. Better to have them in the templates where they can be easily removed if not wanted / needed.

inc/languages/english/global.lang.php

$l['view_attachments'] = "[View My Attachments]";


inc/languages/english/private.lang.php

$l['deny_receipt'] = "[Deny Receipt]";

Then put the square brackets in the respective templates:

post_attachments
private_messagebit_denyreceipt
Why not, this change is easy and would make life easier for theme devs Smile
Agreed 100% on this one.
Here's another one in online.lang.php

$l['lookup'] = "[Lookup]";

online_row_ip_lookup template
(2017-08-13, 11:01 AM)Ashley1 Wrote: [ -> ]Here's another one in online.lang.php

$l['lookup'] = "[Lookup]";

online_row_ip_lookup template

I can create a PR, but I will wait for MyBB dev team reply. In the meantime you can make a list Smile
I post them here as I find them, all the square brackets in language files. Those all I have for now.
If you want to search automatically rather than manually, use grep.

./admin/config_plugins.lang.php:$l['error_vcheck_vulnerable'] = "[Vulnerable plugin]:";
./global.lang.php:$l['posted_image'] = "[Image: {1}]";
./global.lang.php:$l['posted_video'] = "[Video: {1}]";
./global.lang.php:$l['view_attachments'] = "[View My Attachments]";
./moderation.lang.php:$l['split_thread_subject'] = "[split]";
./online.lang.php:$l['lookup'] = "[Lookup]";
./private.lang.php:$l['deny_receipt'] = "[Deny Receipt]";
./reputation.lang.php:$l['no_comment'] = "[No comment]";

Here's the list on MyBB 1.8.12. I am not against this, but neither can see the benefits.
(2017-08-13, 07:55 PM)Shade Wrote: [ -> ]If you want to search automatically rather than manually, use grep.

./admin/config_plugins.lang.php:$l['error_vcheck_vulnerable'] = "[Vulnerable plugin]:";
./global.lang.php:$l['posted_image'] = "[Image: {1}]";
./global.lang.php:$l['posted_video'] = "[Video: {1}]";
./global.lang.php:$l['view_attachments'] = "[View My Attachments]";
./moderation.lang.php:$l['split_thread_subject'] = "[split]";
./online.lang.php:$l['lookup'] = "[Lookup]";
./private.lang.php:$l['deny_receipt'] = "[Deny Receipt]";
./reputation.lang.php:$l['no_comment'] = "[No comment]";

Here's the list on MyBB 1.8.12. I am not against this, but neither can see the benefits.

Anyone creating a modern theme, will still have a ton of work to do to sort these small changes out. So there is benefit, besides the fact that it's inconsistent to sometimes use square brackets in code files and other times not.