summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_notifications.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-10-11 00:09:34 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-10-11 00:09:34 -0600
commit6840d0e7fec116b789261a44ee5c0b6559d1e22a (patch)
tree42fa31b4fede5c352c38e3cd683c636ed3c0d294 /usr/local/www/system_advanced_notifications.php
parentf99c6a23043031989fa2d767861c5ff08ffceda3 (diff)
downloadpfsense-6840d0e7fec116b789261a44ee5c0b6559d1e22a.zip
pfsense-6840d0e7fec116b789261a44ee5c0b6559d1e22a.tar.gz
Unfortunately, using variables in this way in strings passed to gettext doesn't work well with translations. Replacing with sprintf for now.
Diffstat (limited to 'usr/local/www/system_advanced_notifications.php')
-rw-r--r--usr/local/www/system_advanced_notifications.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_notifications.php b/usr/local/www/system_advanced_notifications.php
index 9c1ccd5..c914d7a 100644
--- a/usr/local/www/system_advanced_notifications.php
+++ b/usr/local/www/system_advanced_notifications.php
@@ -111,13 +111,13 @@ if ($_POST) {
if($config['notifications']['growl']['ipaddress'] &&
$config['notifications']['growl']['password'] = $_POST['password']) {
register_via_growl();
- notify_via_growl(gettext("This is a test message from {$g['product_name']}. It is safe to ignore this message."));
+ notify_via_growl(sprintf(gettext("This is a test message from %s. It is safe to ignore this message."), $g['product_name']));
}
// Send test message via smtp
if(file_exists("/var/db/notices_lastmsg.txt"))
unlink("/var/db/notices_lastmsg.txt");
- $savemsg = notify_via_smtp(gettext("This is a test message from {$g['product_name']}. It is safe to ignore this message."));
+ $savemsg = notify_via_smtp(sprintf(gettext("This is a test message from %s. It is safe to ignore this message."), $g['product_name']));
pfSenseHeader("system_advanced_notifications.php");
exit;
@@ -174,7 +174,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Notification Name"); ?></td>
<td width="78%" class="vtable">
<input name='notification_name' value='<?php echo $pconfig['notification_name']; ?>'><br/>
- <?=gettext("Enter a name for the Growl notifications (default: {$g['product_name']} growl alert)."); ?>
+ <?=sprintf(gettext("Enter a name for the Growl notifications (default: %s growl alert)."), $g['product_name']); ?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud