summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-11 22:18:34 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-11 22:18:34 -0600
commitddc55e124418ff8b417a4353afcc5a814af4041d (patch)
tree6e4988855444d56ad77e7b562d0ee052c2117f19 /usr/local/www/interfaces_assign.php
parente36c52f4c0cc9819f7fd6ed6daa3e0f36d57bba5 (diff)
downloadpfsense-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-xusr/local/www/interfaces_assign.php8
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);
OpenPOWER on IntegriCloud