Revision 6840d0e7
Added by Erik Fonnesbeck over 14 years ago
usr/local/www/system_advanced_notifications.php | ||
---|---|---|
111 | 111 |
if($config['notifications']['growl']['ipaddress'] && |
112 | 112 |
$config['notifications']['growl']['password'] = $_POST['password']) { |
113 | 113 |
register_via_growl(); |
114 |
notify_via_growl(gettext("This is a test message from {$g['product_name']}. It is safe to ignore this message."));
|
|
114 |
notify_via_growl(sprintf(gettext("This is a test message from %s. It is safe to ignore this message."), $g['product_name']));
|
|
115 | 115 |
} |
116 | 116 |
|
117 | 117 |
// Send test message via smtp |
118 | 118 |
if(file_exists("/var/db/notices_lastmsg.txt")) |
119 | 119 |
unlink("/var/db/notices_lastmsg.txt"); |
120 |
$savemsg = notify_via_smtp(gettext("This is a test message from {$g['product_name']}. It is safe to ignore this message."));
|
|
120 |
$savemsg = notify_via_smtp(sprintf(gettext("This is a test message from %s. It is safe to ignore this message."), $g['product_name']));
|
|
121 | 121 |
|
122 | 122 |
pfSenseHeader("system_advanced_notifications.php"); |
123 | 123 |
exit; |
... | ... | |
174 | 174 |
<td width="22%" valign="top" class="vncell"><?=gettext("Notification Name"); ?></td> |
175 | 175 |
<td width="78%" class="vtable"> |
176 | 176 |
<input name='notification_name' value='<?php echo $pconfig['notification_name']; ?>'><br/> |
177 |
<?=gettext("Enter a name for the Growl notifications (default: {$g['product_name']} growl alert)."); ?>
|
|
177 |
<?=sprintf(gettext("Enter a name for the Growl notifications (default: %s growl alert)."), $g['product_name']); ?>
|
|
178 | 178 |
</td> |
179 | 179 |
</tr> |
180 | 180 |
<tr> |
Also available in: Unified diff
Unfortunately, using variables in this way in strings passed to gettext doesn't work well with translations. Replacing with sprintf for now.