Skip to content

Commit 1672005

Browse files
author
Septiyan Nariyanto
committed
fix: satisfy plugin check i18n rules
1 parent a54d0d4 commit 1672005

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

languages/safe-staging-guard.pot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (C) 2026 Septiyan Nariyanto
2+
# This file is distributed under the GPL-2.0-or-later.
3+
msgid ""
4+
msgstr ""
5+
"Project-Id-Version: Safe Staging Guard 0.1.0\n"
6+
"Report-Msgid-Bugs-To: https://github.com/nariyanto/wp-safe-staging-guard/issues\n"
7+
"POT-Creation-Date: 2026-06-03 00:00+0000\n"
8+
"MIME-Version: 1.0\n"
9+
"Content-Type: text/plain; charset=UTF-8\n"
10+
"Content-Transfer-Encoding: 8bit\n"
11+
"X-Generator: Hermes Agent\n"
12+
"X-Domain: safe-staging-guard\n"

src/Plugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function renderSettingsPage(): void
9999
<th scope="row"><label for="ssg-email-mode"><?php echo esc_html__('Email safety mode', 'safe-staging-guard'); ?></label></th>
100100
<td>
101101
<select id="ssg-email-mode" name="<?php echo esc_attr(self::OPTION_NAME); ?>[email_mode]">
102-
<?php foreach (['block' => 'Block outgoing mail', 'redirect' => 'Redirect outgoing mail', 'allow' => 'Allow outgoing mail'] as $value => $label) : ?>
103-
<option value="<?php echo esc_attr($value); ?>" <?php selected($settings->emailMode(), $value); ?>><?php echo esc_html__($label, 'safe-staging-guard'); ?></option>
104-
<?php endforeach; ?>
102+
<option value="block" <?php selected($settings->emailMode(), 'block'); ?>><?php echo esc_html__('Block outgoing mail', 'safe-staging-guard'); ?></option>
103+
<option value="redirect" <?php selected($settings->emailMode(), 'redirect'); ?>><?php echo esc_html__('Redirect outgoing mail', 'safe-staging-guard'); ?></option>
104+
<option value="allow" <?php selected($settings->emailMode(), 'allow'); ?>><?php echo esc_html__('Allow outgoing mail', 'safe-staging-guard'); ?></option>
105105
</select>
106106
<p class="description"><?php echo esc_html__('Email interception is skipped automatically when environment is Production.', 'safe-staging-guard'); ?></p>
107107
</td>
@@ -141,7 +141,8 @@ public function renderFrontendBanner(): void
141141
return;
142142
}
143143
echo '<div style="position:fixed;left:0;right:0;bottom:0;z-index:99999;background:#7c2d12;color:#fff;text-align:center;padding:8px 12px;font:600 13px system-ui,sans-serif;">';
144-
echo esc_html(sprintf(__('Safe Staging Guard: %s environment — emails are %s.', 'safe-staging-guard'), strtoupper($settings->environment()), $settings->emailMode()));
144+
/* translators: 1: Current environment label, 2: Email safety mode. */
145+
echo esc_html(sprintf(__('Safe Staging Guard: %1$s environment — emails are %2$s.', 'safe-staging-guard'), strtoupper($settings->environment()), $settings->emailMode()));
145146
echo '</div>';
146147
}
147148

0 commit comments

Comments
 (0)