diff options
| author | 2022-01-08 08:00:26 -0500 | |
|---|---|---|
| committer | 2022-01-08 14:00:26 +0100 | |
| commit | 127b7f0a3aad7012055c058e8aba0d27192a8cbc (patch) | |
| tree | 8ec9a5948672e702c944c202f78294b81104582f /app/i18n/it/user.php | |
| parent | ed19445f74c30854c60873cd1df1c38e15fc316b (diff) | |
Change i18n process (#4131)
Before, the ignore info were stored in a different file which was a bit cumbersome
for new comers. Now, this info is stored directly in the translation file as a
comment.
Before, there was no way of telling translators that a previously translated string
was in need of a new translation. Now, the dirty information is there to convey that
info.
Diffstat (limited to 'app/i18n/it/user.php')
| -rw-r--r-- | app/i18n/it/user.php | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/app/i18n/it/user.php b/app/i18n/it/user.php index 1d93a9f9a..0fd1b8c19 100644 --- a/app/i18n/it/user.php +++ b/app/i18n/it/user.php @@ -1,44 +1,54 @@ <?php +/******************************************************************************/ +/* Each entry of that file can be associated with a comment to indicate its */ +/* state. When there is no comment, it means the entry is fully translated. */ +/* The recognized comments are (comment matching is case-insensitive): */ +/* + TODO: the entry has never been translated. */ +/* + DIRTY: the entry has been translated but needs to be updated. */ +/* + IGNORE: the entry does not need to be translated. */ +/* When a comment is not recognized, it is discarded. */ +/******************************************************************************/ + return array( 'email' => array( 'feedback' => array( - 'invalid' => 'This email address is invalid.', // TODO - Translation - 'required' => 'An email address is required.', // TODO - Translation + 'invalid' => 'This email address is invalid.', // TODO + 'required' => 'An email address is required.', // TODO ), 'validation' => array( - 'change_email' => 'You can change your email address <a href="%s">on the profile page</a>.', // TODO - Translation - 'email_sent_to' => 'We sent you an email at <strong>%s</strong>. Please follow its instructions to validate your address.', // TODO - Translation + 'change_email' => 'You can change your email address <a href="%s">on the profile page</a>.', // TODO + 'email_sent_to' => 'We sent you an email at <strong>%s</strong>. Please follow its instructions to validate your address.', // TODO 'feedback' => array( - 'email_failed' => 'We couldn’t send you an email because of a server configuration error.', // TODO - Translation - 'email_sent' => 'An email has been sent to your address.', // TODO - Translation - 'error' => 'Email address validation failed.', // TODO - Translation - 'ok' => 'This email address has been validated.', // TODO - Translation - 'unnecessary' => 'This email address was already validated.', // TODO - Translation - 'wrong_token' => 'This email address failed to be validated due to a wrong token.', // TODO - Translation + 'email_failed' => 'We couldn’t send you an email because of a server configuration error.', // TODO + 'email_sent' => 'An email has been sent to your address.', // TODO + 'error' => 'Email address validation failed.', // TODO + 'ok' => 'This email address has been validated.', // TODO + 'unnecessary' => 'This email address was already validated.', // TODO + 'wrong_token' => 'This email address failed to be validated due to a wrong token.', // TODO ), - 'need_to' => 'You need to validate your email address before being able to use %s.', // TODO - Translation - 'resend_email' => 'Resend the email', // TODO - Translation - 'title' => 'Email address validation', // TODO - Translation + 'need_to' => 'You need to validate your email address before being able to use %s.', // TODO + 'resend_email' => 'Resend the email', // TODO + 'title' => 'Email address validation', // TODO ), ), 'mailer' => array( 'email_need_validation' => array( - 'body' => 'You’ve just registered on %s, but you still need to validate your email address. For that, just follow the link:', // TODO - Translation - 'title' => 'You need to validate your account', // TODO - Translation - 'welcome' => 'Welcome %s,', // TODO - Translation + 'body' => 'You’ve just registered on %s, but you still need to validate your email address. For that, just follow the link:', // TODO + 'title' => 'You need to validate your account', // TODO + 'welcome' => 'Welcome %s,', // TODO ), ), 'password' => array( - 'invalid' => 'The password is invalid.', // TODO - Translation + 'invalid' => 'The password is invalid.', // TODO ), 'tos' => array( 'feedback' => array( - 'invalid' => 'You must accept the Terms of Service to be able to register.', // TODO - Translation + 'invalid' => 'You must accept the Terms of Service to be able to register.', // TODO ), ), 'username' => array( - 'invalid' => 'This username is invalid.', // TODO - Translation - 'taken' => 'This username, %s, is taken.', // TODO - Translation + 'invalid' => 'This username is invalid.', // TODO + 'taken' => 'This username, %s, is taken.', // TODO ), ); |
