Back to vBulletin 3.0 Add-Ons

Change "Add Phrase" default behaviour in Debug mode
Mod Version: 1.00, by Natch

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 1
Released: 20 Jul 2004 Last Update: Never Downloads: 0
Not Supported  

I found this to be a pain in the proverbial - when adding custom phrases I NEVER EVER want them to be added to the MASTER language, but into the Custom Top-level Language, to have them retained on upgrade.

However, the default behaviour, if you are $debug mode, is to have them inserted into MASTER - causing you to have to select "No" with a radio select on each Phrase add.

To turn this annoying behaviour off,

Open admincp/phrase.php
Find:
Code:
	if ($debug)
	{
		print_yes_no_row(construct_phrase($vbphrase['insert_into_master_language_developer_option'], "<b></b>"), 'ismaster', iif($debug, 1, 0));
	}
Replace with:
Code:
	if ($debug)
	{
//		altered this line to have the vB default to add the phrase into the Custom, not MASTER Language - to retain phrases more easily on upgrade
		print_yes_no_row(construct_phrase($vbphrase['insert_into_master_language_developer_option'], "<b></b>"), 'ismaster', 0);
	}
Couldn't be simpler! HTH y'all... :ninja:

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024