Skip to content

Commit 559675c

Browse files
author
Dave MacFarlane
committed
WIP
1 parent a39c060 commit 559675c

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

modules/my_preferences/jsx/mfa.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ function MFAIndex(): React.ReactElement {
8080
+ '&period=30&digits=6&issuer=' + encodeURI(studyTitle);
8181
return <div>
8282
<Modal
83-
title='Manual MFA Setup'
83+
title={t('Manual MFA Setup', {ns: 'my_preferences'})}
8484
onClose={() => setShowModal(false)}
8585
show={showModal}
8686
throwWarning={false}>
87-
<Trans
88-
defaults="<p>Use the following key in your authenticator app: <b>{{code}}</b></p>"
89-
values={{code: key}}>
90-
</Trans>
87+
<p><Trans
88+
defaults="Use the following key in your authenticator app: <0>{{code}}</0>"
89+
ns="my_preferences"
90+
components={[<strong>CODE</strong>]}
91+
values={{code: key}} /></p>
9192
</Modal>
92-
<p>Scan the following QR code below in your MFA authenticator and
93-
enter the code to validate.</p>
93+
<p>{t('Scan the following QR code below in your MFA authenticator and enter the code to validate.', {ns: 'my_preferences'})}</p>
9494
<p>
9595
<b>Note that this will <i>overwrite</i> any previously
9696
setup MFA in LORIS!</b>

modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,11 @@ msgstr "多要素認証を設定する"
5858
msgid "Configure MFA"
5959
msgstr "多要素認証を設定する"
6060

61-
msgid "Use the following key in your authenticator app: <b>{{code}}</b>"
62-
msgstr "認証アプリで次のコードを使用してください: <b>{{code}}</b>"
61+
msgid "Manual MFA Setup"
62+
msgstr "手動多要素認証の設定"
63+
64+
msgid "Use the following key in your authenticator app: <0>{{code}}</0>"
65+
msgstr "認証アプリで次のコードを使用してください: <0>{{code}}</0>"
66+
67+
msgid "Scan the following QR code below in your MFA authenticator and enter the code to validate."
68+
msgstr "多要素認証システムで以下の QR コードをスキャンし、コードを入力して検証します。"

0 commit comments

Comments
 (0)