Skip to content

Commit 28661c3

Browse files
i18n: add TRANSLATORS comments to ModalVerificationCode
Add context comments for translators on strings that may be ambiguous or contain placeholders: - 'Identity verification': clarify that "identity" refers to confirming who the signer is via a messaging channel (SMS, WhatsApp, Telegram, Signal, XMPP), not a reference to any specific document; instruct to use a generic compound noun without a definite article - '{contact}': disambiguate as email address or phone/messaging channel depending on the mode - '{method}': clarify as the name of a messaging service Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 9aa5ec0 commit 28661c3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/views/SignPDF/_partials/ModalVerificationCode.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export default {
215215
if (this.step1Active) {
216216
return this.mode === 'email'
217217
? t('libresign', 'Email verification')
218+
// TRANSLATORS Title for step 1 where the signer proves they are the owner of a registered contact channel by receiving a code via SMS, WhatsApp, Telegram, Signal, or XMPP. "Identity" here means confirming who the signer is, not a reference to any specific document. Translate as a generic compound noun without a definite article.
218219
: t('libresign', 'Identity verification')
219220
}
220221
if (!this.identityVerified) {
@@ -226,6 +227,7 @@ export default {
226227
if (this.step1Active) {
227228
return this.mode === 'email'
228229
? t('libresign', 'Step 1 of 3 - Email verification')
230+
// TRANSLATORS Progress text for step 1 where the signer proves they are the owner of a registered contact channel by receiving a code via SMS, WhatsApp, Telegram, Signal, or XMPP. "Identity" here means confirming who the signer is, not a reference to any specific document. Translate as a generic compound noun without a definite article.
229231
: t('libresign', 'Step 1 of 3 - Identity verification')
230232
}
231233
if (!this.identityVerified) {
@@ -236,8 +238,10 @@ export default {
236238
codeExplanationText() {
237239
const contact = this.displayContact
238240
if (this.mode === 'email') {
241+
// TRANSLATORS {contact} is the email address where the verification code was sent.
239242
return t('libresign', 'A verification code has been sent to: {contact}. Check your email and enter the 6-digit verification code.', { contact })
240243
}
244+
// TRANSLATORS {contact} is the phone number or messaging channel (SMS, WhatsApp, Telegram, Signal, XMPP) where the verification code was sent.
241245
return t('libresign', 'A verification code has been sent to: {contact}. Please enter the code to continue.', { contact })
242246
},
243247
displayContact() {
@@ -367,6 +371,7 @@ export default {
367371
const msg = err.response?.data?.ocs?.data?.message || err.response?.data?.message || err.message
368372
if (this.mode === 'token' && msg?.includes('Invalid configuration')) {
369373
const method = this.activeTokenMethod.charAt(0).toUpperCase() + this.activeTokenMethod.slice(1)
374+
// TRANSLATORS {method} is the name of a messaging service (e.g. SmsToken, WhatsappToken, TelegramToken, SignalToken, XmppToken).
370375
showError(t('libresign', '{method} is not configured. Please contact your administrator.', { method }))
371376
} else {
372377
showError(msg)

0 commit comments

Comments
 (0)