diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-11 22:18:34 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-11 22:18:34 -0600 |
commit | ddc55e124418ff8b417a4353afcc5a814af4041d (patch) | |
tree | 6e4988855444d56ad77e7b562d0ee052c2117f19 /usr/local/www/interfaces_assign.php | |
parent | e36c52f4c0cc9819f7fd6ed6daa3e0f36d57bba5 (diff) | |
download | pfsense-ddc55e124418ff8b417a4353afcc5a814af4041d.zip pfsense-ddc55e124418ff8b417a4353afcc5a814af4041d.tar.gz |
Modify various (s)printf format strings to allow translations to change the order of the inserted strings.
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index a67934f..565245b 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -182,9 +182,9 @@ if ($_POST['apply']) { /* Deliver error message for any port with more than one assignment */ foreach ($portifmap as $portname => $ifnames) { if (count($ifnames) > 1) { - $errstr = sprintf(gettext("Port %s ". - " was assigned to %s" . - " interfaces:"), $portname, count($ifnames)); + $errstr = sprintf(gettext('Port %1$s '. + ' was assigned to %2$s' . + ' interfaces:'), $portname, count($ifnames)); foreach ($portifmap[$portname] as $ifn) $errstr .= " " . $ifn; @@ -429,7 +429,7 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed")) <?php foreach ($portlist as $portname => $portinfo): ?> <option value="<?=$portname;?>" <?php if ($portname == $iface['if']) echo " selected";?>> <?php if ($portinfo['isvlan']) { - $descr = sprintf(gettext("VLAN %s on %s"),$portinfo['tag'],$portinfo['if']); + $descr = sprintf(gettext('VLAN %1$s on %2$s'),$portinfo['tag'],$portinfo['if']); if ($portinfo['descr']) $descr .= " (" . $portinfo['descr'] . ")"; echo htmlspecialchars($descr); |