make emails translatable

This commit is contained in:
HB9HIL
2024-10-28 08:30:02 +00:00
parent 26da67fa6e
commit ee5fae3aae
4 changed files with 28 additions and 25 deletions

View File

@@ -1,16 +1,15 @@
Hello <?php echo $user_firstname . ", " . $user_callsign ?>
<?=
sprintf(__("Hello %s"), $user_firstname . ", " . $user_callsign);
An admin initiated a password reset for your Wavelog account.
__("An admin initiated a password reset for your Wavelog account.");
Your username is: <?php echo $user_name; ?>
sprintf("Your username is: %s", '<b>' . $user_name . '<b>');
sprintf(__("Click here to reset your password: %s"), site_url('user/reset_password/') . $reset_code);
Click here to reset your password: <?php echo site_url('user/reset_password/').$reset_code; ?>
If you didn't request any password reset, just ignore this email and talk to an admin of your Wavelog instance.
__("If you didn't request any password reset, just ignore this email and talk to an admin of your Wavelog instance.
Regards,
Wavelog
Wavelog");

View File

@@ -1,15 +1,15 @@
Hi,
<?=
You or someone else has requested a password reset on your Wavelog account.
__("Hi,
Your password reset code is: <?php echo $reset_code; ?>
You or someone else has requested a password reset on your Wavelog account.");
sprintf(__("Your password reset code is: %s"), $reset_code);
Click here to reset password <?php echo site_url('user/reset_password/').$reset_code; ?>
sprintf(__("Click here to reset your password: %s"), site_url('user/reset_password/') . $reset_code);
If you didn't request this just ignore.
__("If you didn't request this just ignore.
Regards,
Wavelog
Wavelog");

View File

@@ -1,14 +1,17 @@
Hi,
<?=
You got an OQRS request from <?php echo strtoupper($callsign); ?>.
<?php if ($usermessage != "") { ?>
The user entered the following message:
sprintf( __("Hi,
<?php echo $usermessage."\n"; ?>
<?php } ?>
You got an OQRS request from %s."), strtoupper($callsign));
Please log into your Wavelog and process it.
if ($usermessage != "") {
__("The user entered the following message:
%s", $usermessage);
}
__("Please log into your Wavelog and process it.
Regards,
Wavelog
Wavelog");

View File

@@ -1,4 +1,5 @@
Hi,
<?=
__("Hi,
This is a test email from your Wavelog instance.
@@ -6,4 +7,4 @@ If you received this email, your mail settings are correct.
Regards,
Wavelog
Wavelog");