Project

General

Profile

« Previous | Next » 

Revision ddc55e12

Added by Erik Fonnesbeck almost 15 years ago

Modify various (s)printf format strings to allow translations to change the order of the inserted strings.

View differences:

usr/local/www/firewall_aliases_edit.php
260 260
					if (!is_ipaddr($_POST["address{$x}"])
261 261
					 && !is_hostname($_POST["address{$x}"])
262 262
					 && !is_iprange($_POST["address{$x}"]))
263
						$input_errors[] = sprintf(gettext("%s is not a valid %s alias."), $_POST["address{$x}"], $_POST['type']);
263
						$input_errors[] = sprintf(gettext('%1$s is not a valid %2$s alias.'), $_POST["address{$x}"], $_POST['type']);
264 264
				}
265 265
				if (is_iprange($_POST["address{$x}"])) {
266 266
					list($startip, $endip) = explode('-', $_POST["address{$x}"]);
......
279 279
			}
280 280
		}
281 281
		if ($wrongaliases <> "")
282
			$input_errors[] = sprintf(gettext("The alias(es): %s %scannot be nested because they are not of the same type."), $wrongaliases, " \n");
282
			$input_errors[] = sprintf(gettext('The alias(es): %1$s %2$scannot be nested because they are not of the same type.'), $wrongaliases, " \n");
283 283
	}
284 284

  
285 285
	if (!$input_errors) {

Also available in: Unified diff