- $s .= '<div class="settings-block">';
- $s .= '<h3>' . t('Gnot Settings') . '</h3>';
- $s .= '<div id="gnot-wrapper">';
- $s .= '<div id="gnot-desc">' . t("Allows threading of email comment notifications on Gmail and anonymising the subject line.") . '</div>';
- $s .= '<label id="gnot-label" for="gnot">' . t('Enable this plugin/addon?') . '</label>';
- $s .= '<input id="gnot-input" type="checkbox" name="gnot" value="1"'. $gnot_checked . '/>';
- $s .= '</div><div class="clear"></div>';
-
- /* provide a submit button */
-
- $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="gnot-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
-
+ $s .= Renderer::replaceMacros($t, [
+ '$title' => DI::l10n()->t('Gnot Settings') ,
+ '$submit' => DI::l10n()->t('Save Settings'),
+ '$enable' => DI::l10n()->t('Enable this addon?'),
+ '$enabled' => $gnot_checked,
+ '$text' => DI::l10n()->t("Allows threading of email comment notifications on Gmail and anonymising the subject line.")
+ ]);