Project

General

Profile

« Previous | Next » 

Revision 573ec19d

Added by Renato Botelho over 4 years ago

Add product_label global variable

Introduce product_label global variable, by default with same value of
product_name. The idea is to make it easier for rebranded products to
change the name on all visual texts while internal structures are
preserved.

While here, remove deprecated $g['platform'] and also replace places
with pfSense hardcoded on text messages by $g['product_label'].

No functional changes are expected.

View differences:

src/etc/inc/web/backup.inc
205 205
						$input_errors[] = gettext("Warning, could not read file {$postfiles['conffile']['tmp_name']}");
206 206
					} elseif ($post['decrypt']) {
207 207
						if (!tagfile_deformat($data, $data, "config.xml")) {
208
							$input_errors[] = gettext("The uploaded file does not appear to contain an encrypted pfsense configuration.");
208
							$input_errors[] = sprintf(gettext(
209
							    "The uploaded file does not appear to contain an encrypted %s configuration."),
210
							    $g['product_label']);
209 211
						} else {
210 212
							$data = decrypt_data($data, $post['decrypt_password']);
211 213
							if (empty($data)) {

Also available in: Unified diff