Change "Add Phrase" default behaviour in Debug mode
This modification is in the archives.
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)); } 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); } Download No files for download. |