diff --git a/app/models/user.rb b/app/models/user.rb index b7f35e27e31..521d8b0b93d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -146,7 +146,7 @@ class User < ActiveRecord::Base validate :password_validator validate :name_validator, if: :will_save_change_to_name? validates :name, user_full_name: true, if: :will_save_change_to_name?, length: { maximum: 255 } - validates :ip_address, allowed_ip_address: { on: :create, message: :signup_not_allowed } + validates :ip_address, allowed_ip_address: { on: :create } validates :primary_email, presence: true, unless: :skip_email_validation validates :validatable_user_fields_values, watched_words: true, unless: :custom_fields_clean? validates_associated :primary_email, diff --git a/config/locales/server.ar.yml b/config/locales/server.ar.yml index f497dd85397..5c5498b9caa 100644 --- a/config/locales/server.ar.yml +++ b/config/locales/server.ar.yml @@ -674,7 +674,8 @@ ar: name: same_as_password: "مطابقة لكلمة مرورك." ip_address: - signup_not_allowed: "الاشتراك غير مسموح به من هذا الحساب." + blocked: "عمليات التسجيل الجديدة غير مسموح بها من عنوان IP الخاص بك." + max_new_accounts_per_registration_ip: "عمليات التسجيل الجديدة غير مسموح بها من عنوان IP الخاص بك (تم الوصول إلى الحد الأقصى). تواصل مع أحد أعضاء فريق العمل." user_profile: attributes: featured_topic_id: @@ -2749,9 +2750,6 @@ ar: blocked: "غير مسموح به." revoked: "لن يتم إرسال الرسائل الإلكترونية إلى \"%{email}\" حتى %{date}." does_not_exist: "غير موجود" - ip_address: - blocked: "عمليات التسجيل الجديدة غير مسموح بها من عنوان IP الخاص بك." - max_new_accounts_per_registration_ip: "عمليات التسجيل الجديدة غير مسموح بها من عنوان IP الخاص بك (تم الوصول إلى الحد الأقصى). تواصل مع أحد أعضاء فريق العمل." website: domain_not_allowed: "الموقع الإلكتروني غير صالح. النطاقات المسموح بها هي: %{domains}" auto_rejected: "تم الرفض تلقائيًا بسبب العمر. راجع إعداد الموقع `auto_handle_queued_age`." diff --git a/config/locales/server.be.yml b/config/locales/server.be.yml index fb8cebf51db..02dbf7a83db 100644 --- a/config/locales/server.be.yml +++ b/config/locales/server.be.yml @@ -303,7 +303,8 @@ be: same_as_current: "гэтак жа, як ваш бягучы пароль." unique_characters: "мае занадта шмат паўтаральных знакаў. Калі ласка, выкарыстоўвайце больш бяспечны пароль." ip_address: - signup_not_allowed: "Рэгістрацыя не дапускаецца з гэтага рахунку." + blocked: "Новыя рэгістрацыі не дапускаецца з вашага IP-адрасы." + max_new_accounts_per_registration_ip: "Новыя рэгістрацыі не дапускаецца з вашага IP-адрасы (максімальны мяжа дасягнуты). Звярніцеся да супрацоўніка." user_email: attributes: user_id: @@ -1365,9 +1366,6 @@ be: email: not_allowed: "не дапускаюцца ад гэтага пастаўшчыка паслуг электроннай пошты. Калі ласка, выкарыстоўвайце іншы адрас электроннай пошты." blocked: "не дапускаецца." - ip_address: - blocked: "Новыя рэгістрацыі не дапускаецца з вашага IP-адрасы." - max_new_accounts_per_registration_ip: "Новыя рэгістрацыі не дапускаецца з вашага IP-адрасы (максімальны мяжа дасягнуты). Звярніцеся да супрацоўніка." auto_rejected: "Адхілена аўтаматычна з-за ўзросту. См auto_handle_queued_age налады сайта." destroy_reasons: unused_staged_user: "Нявыкарыстаны паставіў карыстальнік" diff --git a/config/locales/server.bg.yml b/config/locales/server.bg.yml index ea0bb3303ab..ffaa3e5d449 100644 --- a/config/locales/server.bg.yml +++ b/config/locales/server.bg.yml @@ -264,7 +264,8 @@ bg: same_as_username: "е същата като вашето потребителско име. Моля използвайте по-сигурна парола." same_as_email: "е същата като вашия email. Моля използвайте по-сигурна парола." ip_address: - signup_not_allowed: "Вписването не е разрешено от този акаунт." + blocked: "Не са разрешени нови регистрации от вашия IP адрес." + max_new_accounts_per_registration_ip: "Не са разрешени нови регистрации от вашия IP адрес (достигнали сте лимита). Свържете се с член на персонала." color_scheme_color: attributes: hex: @@ -1009,9 +1010,6 @@ bg: blank: "не може да бъде празно." not_allowed: "не е разрешено от този имейл доставчик. Моля използвайте друг имейл адрес." blocked: "не е разрешено" - ip_address: - blocked: "Не са разрешени нови регистрации от вашия IP адрес." - max_new_accounts_per_registration_ip: "Не са разрешени нови регистрации от вашия IP адрес (достигнали сте лимита). Свържете се с член на персонала." invite_mailer: text_body_template: | %{inviter_name} ви покани да се присъедините към дискусията diff --git a/config/locales/server.bs_BA.yml b/config/locales/server.bs_BA.yml index b2f74c4d975..4e15efdf189 100644 --- a/config/locales/server.bs_BA.yml +++ b/config/locales/server.bs_BA.yml @@ -218,7 +218,8 @@ bs_BA: password: common: "is one of the 10000 most common passwords. Please use a more secure password." ip_address: - signup_not_allowed: "Signup is not allowed from this account." + blocked: "New registrations are not allowed from your IP address." + max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." color_scheme_color: attributes: hex: diff --git a/config/locales/server.ca.yml b/config/locales/server.ca.yml index ea3ca1623fa..801f6b1aedb 100644 --- a/config/locales/server.ca.yml +++ b/config/locales/server.ca.yml @@ -406,7 +406,8 @@ ca: name: same_as_password: "és igual que la vostra contrasenya." ip_address: - signup_not_allowed: "No es permet el registre des d'aquest compte." + blocked: "No es permeten nous registres des de la vostra adreça IP." + max_new_accounts_per_registration_ip: "No es permeten registres nous des de la vostra adreça IP (s'ha arribat al límit màxim). Contacteu amb un membre de l'equip responsable." user_email: attributes: user_id: @@ -1827,9 +1828,6 @@ ca: not_allowed: "no és permès d'aquest proveïdor de correu. Feu servir una altra adreça de correu." blocked: "no és permès" revoked: "No s'enviaran correus a '%{email}' fins a %{date}." - ip_address: - blocked: "No es permeten nous registres des de la vostra adreça IP." - max_new_accounts_per_registration_ip: "No es permeten registres nous des de la vostra adreça IP (s'ha arribat al límit màxim). Contacteu amb un membre de l'equip responsable." website: domain_not_allowed: "El lloc web no és vàlid. Els dominis permesos són: %{domains}" auto_rejected: "Rebutjat automàticament per edat. Vegeu el paràmetre de configuració auto_handle_queued_age." diff --git a/config/locales/server.cs.yml b/config/locales/server.cs.yml index 19d401efebd..7d050489f4b 100644 --- a/config/locales/server.cs.yml +++ b/config/locales/server.cs.yml @@ -327,7 +327,8 @@ cs: same_as_current: "je stejné jako vaše současné heslo." unique_characters: "má příliš mnoho opakujících se znaků. Použijte prosím bezpečnější heslo." ip_address: - signup_not_allowed: "Registrace z této adresy není povolena." + blocked: "New registrations are not allowed from your IP address." + max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." user_email: attributes: user_id: diff --git a/config/locales/server.da.yml b/config/locales/server.da.yml index 749763d702e..ab99bb6c423 100644 --- a/config/locales/server.da.yml +++ b/config/locales/server.da.yml @@ -513,7 +513,8 @@ da: name: same_as_password: "er det samme som dit kodeord." ip_address: - signup_not_allowed: "Tilmelding er ikke tilladt fra denne konto." + blocked: "Nye registreringer er ikke tilladt fra din IP adresse." + max_new_accounts_per_registration_ip: "Nye kontoer kan ikke oprettes fra din IP-adresse (max antal er nået). Kontakt et medlem af hjælperteamet." user_profile: attributes: featured_topic_id: @@ -1806,9 +1807,6 @@ da: blocked: "er ikke tilladt." revoked: "Vil ikke sende e-mails til '%{email}' indtil %{date}." does_not_exist: "I/T" - ip_address: - blocked: "Nye registreringer er ikke tilladt fra din IP adresse." - max_new_accounts_per_registration_ip: "Nye kontoer kan ikke oprettes fra din IP-adresse (max antal er nået). Kontakt et medlem af hjælperteamet." website: domain_not_allowed: "Webstedet er ugyldigt. Tilladte domæner er: %{domains}" auto_rejected: "Afvist automatisk på grund af alder. Se auto_handle_queued_age webstedsindstilling." diff --git a/config/locales/server.de.yml b/config/locales/server.de.yml index 122558ae764..a505f3f0108 100644 --- a/config/locales/server.de.yml +++ b/config/locales/server.de.yml @@ -575,7 +575,8 @@ de: name: same_as_password: "ist mit deinem Passwort identisch." ip_address: - signup_not_allowed: "Eine Registrierung ist von diesem Konto nicht erlaubt." + blocked: "Neue Registrierungen sind von deiner IP-Adresse aus nicht erlaubt." + max_new_accounts_per_registration_ip: "Weitere Registrierungen sind von deiner IP-Adresse aus nicht gestattet (maximale Anzahl erreicht). Kontaktiere ein Team-Mitglied." user_profile: attributes: featured_topic_id: @@ -2475,9 +2476,6 @@ de: blocked: "ist nicht erlaubt." revoked: "Es werden bis zum %{date} keine E-Mails an „%{email}“ verschickt." does_not_exist: "N/A" - ip_address: - blocked: "Neue Registrierungen sind von deiner IP-Adresse aus nicht erlaubt." - max_new_accounts_per_registration_ip: "Weitere Registrierungen sind von deiner IP-Adresse aus nicht gestattet (maximale Anzahl erreicht). Kontaktiere ein Team-Mitglied." website: domain_not_allowed: "Website ist ungültig. Erlaubte Domains sind: %{domains}" auto_rejected: "Automatisch abgelehnt aufgrund des Alters. Siehe Website-Einstellung auto_handle_queued_age." diff --git a/config/locales/server.el.yml b/config/locales/server.el.yml index 6d599a2cb75..34fa386c6be 100644 --- a/config/locales/server.el.yml +++ b/config/locales/server.el.yml @@ -384,7 +384,8 @@ el: same_as_current: "είναι ο ίδιος με τον τρέχοντα κωδικό." unique_characters: "περιέχει πολλούς επαναλαμβανόμενους χαρακτήρες. Παρακαλώ χρησιμοποιήστε έναν πιο ασφαλή κωδικό πρόσβασης. " ip_address: - signup_not_allowed: "Η εγγραφή δεν επιτρέπεται απο αυτόν τον λογαρισμό" + blocked: "Δεν επιτρέπονται νεές εγγραφές από την IP διεύθυνσή σου." + max_new_accounts_per_registration_ip: "Δεν επιτρέπονται νεές εγγραφές από την IP διεύθυνσή σου (το ανώτατο όριο έχει επιτευχθεί). Επικοινώνησε με ένα μέλος του προσωπικού." color_scheme_color: attributes: hex: @@ -1381,9 +1382,6 @@ el: not_allowed: "δεν επιτρέπεται από αυτόν τον πάροχο email. Παρακαλώ χρησιμοποίησε μια άλλη διεύθυνση email." blocked: "δεν είναι επιτρεπτό." revoked: "Δεν θα στέλνονται emails στο '%{email}' μέχρι τις %{date}." - ip_address: - blocked: "Δεν επιτρέπονται νεές εγγραφές από την IP διεύθυνσή σου." - max_new_accounts_per_registration_ip: "Δεν επιτρέπονται νεές εγγραφές από την IP διεύθυνσή σου (το ανώτατο όριο έχει επιτευχθεί). Επικοινώνησε με ένα μέλος του προσωπικού." website: domain_not_allowed: "Η ιστοσελίδα δεν είναι έγκυρη. Τα επιτρεπόμενα domains είναι: %{domains}" auto_rejected: "Απορρίφθηκε αυτόματα λόγω παλαιότητας. Δες την ρύθμιση auto_handle_queued_age της ιστοσελίδας." diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index cef4041be2b..a5e826ce538 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -628,7 +628,8 @@ en: name: same_as_password: "is the same as your password." ip_address: - signup_not_allowed: "Signup is not allowed from this account." + blocked: "New registrations are not allowed from your IP address." + max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." user_profile: attributes: featured_topic_id: @@ -2749,9 +2750,6 @@ en: blocked: "is not allowed." revoked: "Won't be sending emails to '%{email}' until %{date}." does_not_exist: "N/A" - ip_address: - blocked: "New registrations are not allowed from your IP address." - max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." website: domain_not_allowed: "Website is invalid. Allowed domains are: %{domains}" auto_rejected: "Rejected automatically due to age. See auto_handle_queued_age site setting." diff --git a/config/locales/server.es.yml b/config/locales/server.es.yml index 2b9c6821459..ca79055f670 100644 --- a/config/locales/server.es.yml +++ b/config/locales/server.es.yml @@ -568,7 +568,8 @@ es: name: same_as_password: "es igual a tu contraseña." ip_address: - signup_not_allowed: "No se permite el registro desde esta cuenta." + blocked: "No se permiten nuevos registros desde tu dirección IP." + max_new_accounts_per_registration_ip: "No se permiten nuevos registros desde tu dirección IP (se alcanzó el límite máximo). Contacta con un miembro del equipo." user_profile: attributes: featured_topic_id: @@ -2409,9 +2410,6 @@ es: blocked: "no está permitido." revoked: "No se enviarán más correos electrónicos a «%{email}» hasta %{date}." does_not_exist: "N/D" - ip_address: - blocked: "No se permiten nuevos registros desde tu dirección IP." - max_new_accounts_per_registration_ip: "No se permiten nuevos registros desde tu dirección IP (se alcanzó el límite máximo). Contacta con un miembro del equipo." website: domain_not_allowed: "El sitio web no es válido. Los dominios permitidos son: %{domains}" auto_rejected: "Rechazo automáticamente debido a la antigüedad. Ver configuración auto_handle_queued_age" diff --git a/config/locales/server.fa_IR.yml b/config/locales/server.fa_IR.yml index c4e4d545d7a..015079550e8 100644 --- a/config/locales/server.fa_IR.yml +++ b/config/locales/server.fa_IR.yml @@ -340,7 +340,8 @@ fa_IR: same_as_current: "رمز انتخابی مشابه رمز فعلی شما است." unique_characters: "تعداد نویسه تکراری زیاد است. لطفا یک رمز قوی‌تر انتخاب کنید." ip_address: - signup_not_allowed: "ثبت نام با این حساب‌کاربری ممنوع می باشد." + blocked: "ثبت‌نام‌های جدید از آدرس IP شما ممنوع شده است." + max_new_accounts_per_registration_ip: "ثبت‌نام‌های جدید از آدرس IP شما ممنوع شده است (به حداکثر تعداد مجاز رسیده است). با یکی از مدیران تماس بگیرید." color_scheme_color: attributes: hex: @@ -1390,9 +1391,6 @@ fa_IR: not_allowed: "این ارائه کننده ایمیل پشتیبانی نمی‌شود. لطفا از ایمیل دیگری استفاده کنید." blocked: "مجاز نیست." revoked: "تا %{date} ایمیلی به '%{email}' ارسال نخواهد شد." - ip_address: - blocked: "ثبت‌نام‌های جدید از آدرس IP شما ممنوع شده است." - max_new_accounts_per_registration_ip: "ثبت‌نام‌های جدید از آدرس IP شما ممنوع شده است (به حداکثر تعداد مجاز رسیده است). با یکی از مدیران تماس بگیرید." website: domain_not_allowed: "سایت نامعتبر است. دامنه‌های مجاز: %{domains}" unsubscribe_mailer: diff --git a/config/locales/server.fi.yml b/config/locales/server.fi.yml index eeb1ed14199..8ccf1ffa3ae 100644 --- a/config/locales/server.fi.yml +++ b/config/locales/server.fi.yml @@ -569,7 +569,8 @@ fi: name: same_as_password: "on sama kuin salasanasi." ip_address: - signup_not_allowed: "Rekisteröityminen ei ole sallittu tälle tilille." + blocked: "Uusien tilien luonti tästä IP-osoitteesta ei ole sallittu." + max_new_accounts_per_registration_ip: "Rekisteröitymisiä ei oteta vastaan IP-osoitteestasi (maksimimäärä saavutettu). Ota yhteyttä henkilökuntaan." user_profile: attributes: featured_topic_id: @@ -2437,9 +2438,6 @@ fi: blocked: "ei ole sallittu." revoked: "Sähköpostia ei lähetetä osoitteeseen '%{email}' ennen %{date}." does_not_exist: "N/A" - ip_address: - blocked: "Uusien tilien luonti tästä IP-osoitteesta ei ole sallittu." - max_new_accounts_per_registration_ip: "Rekisteröitymisiä ei oteta vastaan IP-osoitteestasi (maksimimäärä saavutettu). Ota yhteyttä henkilökuntaan." website: domain_not_allowed: "Verkkosivusto ei kelpaa. Sallitus verkkotunnukset ovat: %{domains}" auto_rejected: "Hylättiin automaattisesti iän perusteella. Katso auto_handle_queued_age-sivustoasetus." diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml index d5280b6a9cb..737baa49214 100644 --- a/config/locales/server.fr.yml +++ b/config/locales/server.fr.yml @@ -568,7 +568,8 @@ fr: name: same_as_password: "est identique à votre mot de passe." ip_address: - signup_not_allowed: "L'inscription n'est pas autorisée à partir de ce compte." + blocked: "Les nouvelles inscriptions ne sont pas acceptées depuis votre adresse IP." + max_new_accounts_per_registration_ip: "Les nouvelles inscriptions ne sont pas autorisées depuis votre adresse IP (limite atteinte). Contactez un responsable." user_profile: attributes: featured_topic_id: @@ -2423,9 +2424,6 @@ fr: blocked: "n'est pas autorisé." revoked: "N'enverra plus d'e-mails à « %{email} » jusqu'au %{date}." does_not_exist: "S.O." - ip_address: - blocked: "Les nouvelles inscriptions ne sont pas acceptées depuis votre adresse IP." - max_new_accounts_per_registration_ip: "Les nouvelles inscriptions ne sont pas autorisées depuis votre adresse IP (limite atteinte). Contactez un responsable." website: domain_not_allowed: "Site Web invalide. Les domaines autorisés sont : %{domains}" auto_rejected: "Refusé automatiquement en raison de l'âge. Voir le paramètre de site « auto_handle_queued_age »." diff --git a/config/locales/server.gl.yml b/config/locales/server.gl.yml index dfd32cbc69c..ecda6bca7eb 100644 --- a/config/locales/server.gl.yml +++ b/config/locales/server.gl.yml @@ -504,7 +504,8 @@ gl: name: same_as_password: "é igual ca o seu contrasinal." ip_address: - signup_not_allowed: "Non esta permitido rexistrarse desde esta conta." + blocked: "Non están permitidos novos rexistros desde o teu enderezo IP." + max_new_accounts_per_registration_ip: "Non están permitidos novos rexistros desde o seu enderezo IP (alcanzouse o límite). Contacte cun membro do equipo." user_profile: attributes: featured_topic_id: @@ -2096,9 +2097,6 @@ gl: blocked: "non está permitido." revoked: "Non se enviarán máis correos electrónicos a '%{email}' ata %{date}." does_not_exist: "N/D" - ip_address: - blocked: "Non están permitidos novos rexistros desde o teu enderezo IP." - max_new_accounts_per_registration_ip: "Non están permitidos novos rexistros desde o seu enderezo IP (alcanzouse o límite). Contacte cun membro do equipo." website: domain_not_allowed: "O sitio web non é válido. Os dominios permitidos son: %{domains}" auto_rejected: "Rexeitouse automaticamente debido á idade. Véxase o axuste do sitio auto_handle_queued_age." diff --git a/config/locales/server.he.yml b/config/locales/server.he.yml index 8fff5dd1f1a..3ec16835dfd 100644 --- a/config/locales/server.he.yml +++ b/config/locales/server.he.yml @@ -625,7 +625,8 @@ he: name: same_as_password: "זהה לסיסמה שלך." ip_address: - signup_not_allowed: "אסור להירשם מהחשבון הזה." + blocked: "הרשמות חדשות אסורות מכתובת ה-IP שלך." + max_new_accounts_per_registration_ip: "הרשמות חדשות אסורות מכתובת ה-IP שלך. (עברת את הסף המותר) צרו קשר עם איש צוות." user_profile: attributes: featured_topic_id: @@ -2621,9 +2622,6 @@ he: blocked: "לא מורשה." revoked: "לא יישלחו הודעות דוא״ל אל ‚%{email}’ עד %{date}." does_not_exist: "לא זמין" - ip_address: - blocked: "הרשמות חדשות אסורות מכתובת ה-IP שלך." - max_new_accounts_per_registration_ip: "הרשמות חדשות אסורות מכתובת ה-IP שלך. (עברת את הסף המותר) צרו קשר עם איש צוות." website: domain_not_allowed: "אתר לא תקין. מתחמים מותרים: %{domains}" auto_rejected: "נדחה אוטומטית מפאת ותק. יש לעיין בהגדרת האתר auto_handle_queued_age (טיפול אוטומטי בוותיקי התור)." diff --git a/config/locales/server.hr.yml b/config/locales/server.hr.yml index ae96e6fab28..3f231b85fbc 100644 --- a/config/locales/server.hr.yml +++ b/config/locales/server.hr.yml @@ -428,7 +428,8 @@ hr: name: same_as_password: "je ista kao vaša lozinka." ip_address: - signup_not_allowed: "Prijava nije dopuštena ovom računu." + blocked: "Nove registracije nisu dopuštene s vaše IP adrese." + max_new_accounts_per_registration_ip: "Nove registracije nisu dopuštene s vaše IP adrese (dostignuto je maksimalno ograničenje). Kontaktirajte člana osoblja." color_scheme_color: attributes: hex: @@ -1620,9 +1621,6 @@ hr: blocked: "nije dopušteno." revoked: "Neće slati e-poštu na '%{email}' do %{date}." does_not_exist: "N/A" - ip_address: - blocked: "Nove registracije nisu dopuštene s vaše IP adrese." - max_new_accounts_per_registration_ip: "Nove registracije nisu dopuštene s vaše IP adrese (dostignuto je maksimalno ograničenje). Kontaktirajte člana osoblja." website: domain_not_allowed: "Web stranica nije važeća. Dopuštene domene su: %{domains}" auto_rejected: "Automatski odbijeno zbog starosti. Pogledajte postavku web mjesta auto_handle_queued_age." diff --git a/config/locales/server.hu.yml b/config/locales/server.hu.yml index 25cd1d7c397..1481553397e 100644 --- a/config/locales/server.hu.yml +++ b/config/locales/server.hu.yml @@ -384,7 +384,8 @@ hu: same_as_email: "azonos az e-mail címével. Használjon biztonságosabb jelszót." same_as_current: "azonos a jelenlegi jelszavával." ip_address: - signup_not_allowed: "A regisztráció nem lehetséges ezzel a fiókkal." + blocked: "Új regisztrációk nem engedélyezettek az te IP-címedről." + max_new_accounts_per_registration_ip: "Új regisztráció az Ön IP-címéről nem engedélyezett (elérte a maximális korlátot). Vegye fel a kapcsolatot egy munkatársával." user_profile: attributes: featured_topic_id: @@ -1116,9 +1117,6 @@ hu: email: invalid: "érvénytelen." blocked: "nem engedélyezett." - ip_address: - blocked: "Új regisztrációk nem engedélyezettek az te IP-címedről." - max_new_accounts_per_registration_ip: "Új regisztráció az Ön IP-címéről nem engedélyezett (elérte a maximális korlátot). Vegye fel a kapcsolatot egy munkatársával." unsubscribe_mailer: subject_template: "Erősítsd meg, hogy a továbbiakban nem szeretnél e-mailes frissítéseket kapni a %{site_title} oldalról." text_body_template: | diff --git a/config/locales/server.hy.yml b/config/locales/server.hy.yml index cd5e8365376..c43bf1b5bfa 100644 --- a/config/locales/server.hy.yml +++ b/config/locales/server.hy.yml @@ -373,7 +373,8 @@ hy: same_as_current: "նույնն է, ինչ Ձեր ընթացիկ գաղտնաբառը:" unique_characters: "ունի չափազանց շատ կրկնվող սիմվոլ: Խնդրում ենք օգտագործել ավելի ապահով գաղտնաբառ:" ip_address: - signup_not_allowed: "Գրանցումը այս հաշվով թույլատրված չէ:" + blocked: "Նոր գրանցումները թույլատրելի չեն Ձեր IP հասցեից:" + max_new_accounts_per_registration_ip: "Նոր գրանցումները թույլատրված չեն Ձեր IP հասցեից (հասել եք առավելագույն սահմանին): Կապվեք անձնակազմի որևէ անդամի հետ:" user_email: attributes: user_id: @@ -1663,9 +1664,6 @@ hy: not_allowed: "թույլատրված չէ այդ էլ. փոստի մատակարարից: Խնդրում ենք օգտագործել մեկ այլ էլ. հասցե:" blocked: "չի թույլատրվում" revoked: "Էլ. նամակներ չեն ուղարկվի '%{email}' -ին մինչև %{date}:" - ip_address: - blocked: "Նոր գրանցումները թույլատրելի չեն Ձեր IP հասցեից:" - max_new_accounts_per_registration_ip: "Նոր գրանցումները թույլատրված չեն Ձեր IP հասցեից (հասել եք առավելագույն սահմանին): Կապվեք անձնակազմի որևէ անդամի հետ:" website: domain_not_allowed: "Վեբ-կայքը անվավեր է: Թույլատրելի դոմեններն են՝ %{domains}" auto_rejected: "Ավտոմատ կերպով մերժվել է հնության պատճառով: Այցելեք auto_handle_queued_age կայքի կարգավորումներ:" diff --git a/config/locales/server.id.yml b/config/locales/server.id.yml index c6b875d9e5c..c7dcfe7aa44 100644 --- a/config/locales/server.id.yml +++ b/config/locales/server.id.yml @@ -520,7 +520,8 @@ id: name: same_as_password: "sama dengan kata sandi Anda." ip_address: - signup_not_allowed: "Pendaftaran tidak diperbolehkan dari akun ini." + blocked: "Registrasi baru dari alamat IP Anda tidak diijinkan." + max_new_accounts_per_registration_ip: "Registrasi baru dari alamat IP Anda tidak diijinkan (telah mencapai batas maksimum). Silahkan hubungi staff." user_profile: attributes: featured_topic_id: @@ -1295,9 +1296,6 @@ id: blank: "tidak boleh kosong." not_allowed: "tidak diijinkan dari penyedia layanan email ini. Silahkan gunakan alamat email yang lain." blocked: "tidak diperbolehkan." - ip_address: - blocked: "Registrasi baru dari alamat IP Anda tidak diijinkan." - max_new_accounts_per_registration_ip: "Registrasi baru dari alamat IP Anda tidak diijinkan (telah mencapai batas maksimum). Silahkan hubungi staff." system_messages: queued_by_staff: title: "Pesan Membutuhkan Persetujuan" diff --git a/config/locales/server.it.yml b/config/locales/server.it.yml index 82de49df5c5..53332f362af 100644 --- a/config/locales/server.it.yml +++ b/config/locales/server.it.yml @@ -571,7 +571,8 @@ it: name: same_as_password: "è uguale alla tua password." ip_address: - signup_not_allowed: "L'iscrizione non è permessa da questo account." + blocked: "Le nuove iscrizioni non sono consentite dal tuo indirizzo IP." + max_new_accounts_per_registration_ip: "Le nuove iscrizioni non sono consentite dal tuo indirizzo IP (limite massimo raggiunto). Contatta un membro dello staff." user_profile: attributes: featured_topic_id: @@ -2455,9 +2456,6 @@ it: blocked: "non è permesso." revoked: "Non ti verranno inviate email a '%{email}' fino a %{date}." does_not_exist: "N/D" - ip_address: - blocked: "Le nuove iscrizioni non sono consentite dal tuo indirizzo IP." - max_new_accounts_per_registration_ip: "Le nuove iscrizioni non sono consentite dal tuo indirizzo IP (limite massimo raggiunto). Contatta un membro dello staff." website: domain_not_allowed: "Il sito web non è valido. I domini consentiti sono: %{domains}" auto_rejected: "Rifiutato automaticamente a causa dell'età. Vedi l'impostazione del sito auto_handle_queued_age." diff --git a/config/locales/server.ja.yml b/config/locales/server.ja.yml index 683a4a45bae..aa90e72405a 100644 --- a/config/locales/server.ja.yml +++ b/config/locales/server.ja.yml @@ -543,7 +543,8 @@ ja: name: same_as_password: "はあなたのパスワードと同じです。" ip_address: - signup_not_allowed: "このアカウントから登録できません。" + blocked: "あなたの IP アドレスからの新規登録は許可されていません。" + max_new_accounts_per_registration_ip: "あなたの IP アドレスからの新規登録は許可されていません (登録可能な数を超えています)。スタッフメンバーにお問い合わせください。" user_profile: attributes: featured_topic_id: @@ -2336,9 +2337,6 @@ ja: blocked: "は許可されていません。" revoked: "%{date} まで '%{email}' にメールは送信されません。" does_not_exist: "該当なし" - ip_address: - blocked: "あなたの IP アドレスからの新規登録は許可されていません。" - max_new_accounts_per_registration_ip: "あなたの IP アドレスからの新規登録は許可されていません (登録可能な数を超えています)。スタッフメンバーにお問い合わせください。" website: domain_not_allowed: "ウェブサイトは無効です。許可されるドメイン: %{domains}" auto_rejected: "年齢により自動的に拒否されました。auto_handle_queued_age サイト設定をご覧ください。" diff --git a/config/locales/server.ko.yml b/config/locales/server.ko.yml index 7aab290e43f..e4d69f1611a 100644 --- a/config/locales/server.ko.yml +++ b/config/locales/server.ko.yml @@ -504,7 +504,8 @@ ko: name: same_as_password: "비밀번호와 같습니다." ip_address: - signup_not_allowed: "이 계정으로는 가입할 수 없습니다." + blocked: "이 IP 주소에서는 신규 등록할 수 없습니다." + max_new_accounts_per_registration_ip: "이 IP 주소에서는 신규 등록할 수 없습니다(최대 한도에 도달함). 운영진에게 문의하세요." user_profile: attributes: featured_topic_id: @@ -2129,9 +2130,6 @@ ko: blocked: "는 허용되지 않습니다" revoked: "%{date}까지는 '%{email}' 주소로 이메일을 보내지 않습니다." does_not_exist: "N/A" - ip_address: - blocked: "이 IP 주소에서는 신규 등록할 수 없습니다." - max_new_accounts_per_registration_ip: "이 IP 주소에서는 신규 등록할 수 없습니다(최대 한도에 도달함). 운영진에게 문의하세요." website: domain_not_allowed: "유효하지 않은 웹사이트입니다. 허용되는 도메인: %{domains}" auto_rejected: "나이 때문에 자동으로 거부됩니다. auto_handle_queued_age 사이트 설정을 참조하세요." diff --git a/config/locales/server.lt.yml b/config/locales/server.lt.yml index ab7932d21ea..02da5693db1 100644 --- a/config/locales/server.lt.yml +++ b/config/locales/server.lt.yml @@ -450,7 +450,8 @@ lt: name: same_as_password: "yra toks pats kaip jūsų slaptažodis." ip_address: - signup_not_allowed: "Registracijos nėra galimos iš šios paskyros." + blocked: "Naujos registracijos neleidžiamos iš jūsų IP adreso." + max_new_accounts_per_registration_ip: "Naujos registracijos neleidžiamos iš jūsų IP adreso (pasiekta maksimali riba). Susisiekite su administracija." user_profile: attributes: featured_topic_id: @@ -1588,9 +1589,6 @@ lt: not_allowed: "neleidžiama iš šio el. pašto teikėjo. Prašome naudoti kitą el. pašto adresą." blocked: "negalimas." does_not_exist: "N/A" - ip_address: - blocked: "Naujos registracijos neleidžiamos iš jūsų IP adreso." - max_new_accounts_per_registration_ip: "Naujos registracijos neleidžiamos iš jūsų IP adreso (pasiekta maksimali riba). Susisiekite su administracija." website: domain_not_allowed: "Svetainė netinkama. Leidžiami domenai yra: %{domains}" destroy_reasons: diff --git a/config/locales/server.nb_NO.yml b/config/locales/server.nb_NO.yml index f07d6b25e85..c6be12b1a7e 100644 --- a/config/locales/server.nb_NO.yml +++ b/config/locales/server.nb_NO.yml @@ -355,7 +355,8 @@ nb_NO: same_as_current: "er det samme som nåværende passord." unique_characters: "har for mange gjentatte tegn. Benytt et sikrere passord." ip_address: - signup_not_allowed: "Registrering er ikke tillatt fra denne kontoen." + blocked: "Nye registreringer er ikke tillatt fra IP-adressen din." + max_new_accounts_per_registration_ip: "Nye registreringer er ikke tillatt fra IP-adressen din (maksimalt antall nådd). Ta kontakt med et medlem av staben." user_email: attributes: user_id: @@ -1088,9 +1089,6 @@ nb_NO: blank: "Må være til stede" email: blocked: "er ikke tillatt." - ip_address: - blocked: "Nye registreringer er ikke tillatt fra IP-adressen din." - max_new_accounts_per_registration_ip: "Nye registreringer er ikke tillatt fra IP-adressen din (maksimalt antall nådd). Ta kontakt med et medlem av staben." flags_dispositions: agreed: "Takk for at du sier ifra. Vi er enig at det er et problem her og vi ser på saken." disagreed: "Takk for at du sier ifra. Vi skal se på det. " diff --git a/config/locales/server.nl.yml b/config/locales/server.nl.yml index aaf605f82dc..ba7d8c7896a 100644 --- a/config/locales/server.nl.yml +++ b/config/locales/server.nl.yml @@ -568,7 +568,8 @@ nl: name: same_as_password: "is hetzelfde als je wachtwoord." ip_address: - signup_not_allowed: "Registratie vanaf dit account is niet toegestaan." + blocked: "Nieuwe registraties vanaf je IP-adres zijn niet toegestaan." + max_new_accounts_per_registration_ip: "Nieuwe registraties vanaf je IP-adres zijn niet toegestaan (maximumlimiet bereikt). Neem contact op met een medewerker." user_profile: attributes: featured_topic_id: @@ -2423,9 +2424,6 @@ nl: blocked: "is niet toegestaan." revoked: "Stuurt geen e-mails naar '%{email}' tot %{date}." does_not_exist: "N.v.t." - ip_address: - blocked: "Nieuwe registraties vanaf je IP-adres zijn niet toegestaan." - max_new_accounts_per_registration_ip: "Nieuwe registraties vanaf je IP-adres zijn niet toegestaan (maximumlimiet bereikt). Neem contact op met een medewerker." website: domain_not_allowed: "Website is ongeldig. Toegestane domeinnamen zijn: %{domains}" auto_rejected: "Automatisch geweigerd vanwege leeftijd. Zie de website-instelling auto_handle_queued_age." diff --git a/config/locales/server.pl_PL.yml b/config/locales/server.pl_PL.yml index 2bd631defbc..78f5f6b35e7 100644 --- a/config/locales/server.pl_PL.yml +++ b/config/locales/server.pl_PL.yml @@ -621,7 +621,8 @@ pl_PL: name: same_as_password: "jest takie samo, jak twoje hasło." ip_address: - signup_not_allowed: "Rejestracja z tego konta jest niemożliwa." + blocked: "Z twojego adresu IP nowe rejestracje nie są możliwe." + max_new_accounts_per_registration_ip: "Z twojego adresu IP nowe rejestracje nie są możliwe (wyczerpany limit). Skonaktuj się z personelem." user_profile: attributes: featured_topic_id: @@ -2588,9 +2589,6 @@ pl_PL: blocked: "nie jest dozwolony." revoked: "Maile do \"%{email}\" do %{date} nie będą wysyłane." does_not_exist: "N/A" - ip_address: - blocked: "Z twojego adresu IP nowe rejestracje nie są możliwe." - max_new_accounts_per_registration_ip: "Z twojego adresu IP nowe rejestracje nie są możliwe (wyczerpany limit). Skonaktuj się z personelem." website: domain_not_allowed: "Błędny adres strony internetowej. Dozwolone domeny: %{domains}" auto_rejected: "Odrzucono automatycznie ze względu na wiek. Zobacz ustawienia auto_handle_queued_age witryny." diff --git a/config/locales/server.pt.yml b/config/locales/server.pt.yml index 6eb73b3be52..a9b6c06244e 100644 --- a/config/locales/server.pt.yml +++ b/config/locales/server.pt.yml @@ -429,7 +429,8 @@ pt: same_as_current: "é a mesma que a sua palavra-passe atual." unique_characters: "tem demasiados carateres repetidos. Por favor, utilize uma palavra-passe mais segura." ip_address: - signup_not_allowed: "A inscrição não é permitida através desta conta." + blocked: "Novos registos não são permitidos a partir do seu endereço IP." + max_new_accounts_per_registration_ip: "Novos registos não são permitidos a partir do seu endereço IP (limite máximo atingido).Contacte um membro do pessoal." color_scheme_color: attributes: hex: @@ -1404,9 +1405,6 @@ pt: blocked: "não é permitido." revoked: "Emails não serão enviados a '%{email}' até %{date}." does_not_exist: "N/A" - ip_address: - blocked: "Novos registos não são permitidos a partir do seu endereço IP." - max_new_accounts_per_registration_ip: "Novos registos não são permitidos a partir do seu endereço IP (limite máximo atingido).Contacte um membro do pessoal." destroy_reasons: reviewable_reject_auto: "Gerir automaticamente itens de revisão pendentes" reviewable_reject: "Usuário em revisão rejeitado" diff --git a/config/locales/server.pt_BR.yml b/config/locales/server.pt_BR.yml index 1a2d6ea346a..0a56aedb3c8 100644 --- a/config/locales/server.pt_BR.yml +++ b/config/locales/server.pt_BR.yml @@ -568,7 +568,8 @@ pt_BR: name: same_as_password: "é igual à sua senha." ip_address: - signup_not_allowed: "Não é permitido cadastrar esta conta." + blocked: "Novos registros não são permitidos a partir do seu endereço de IP." + max_new_accounts_per_registration_ip: "Novos registros não são permitidos a partir do seu endereço de IP (quantidade máxima alcançada). Entre em contato com um membro da equipe." user_profile: attributes: featured_topic_id: @@ -2423,9 +2424,6 @@ pt_BR: blocked: "não é permitido." revoked: "Não enviará e-mails para \"%{email}\" até %{date}." does_not_exist: "N/D" - ip_address: - blocked: "Novos registros não são permitidos a partir do seu endereço de IP." - max_new_accounts_per_registration_ip: "Novos registros não são permitidos a partir do seu endereço de IP (quantidade máxima alcançada). Entre em contato com um membro da equipe." website: domain_not_allowed: "O site é inválido. Os domínios permitidos são: %{domains}" auto_rejected: "Rejeitado automaticamente devido à idade. Veja a configuração do site auto_handle_queued_age." diff --git a/config/locales/server.ro.yml b/config/locales/server.ro.yml index ffef08a6b0b..f52311d1513 100644 --- a/config/locales/server.ro.yml +++ b/config/locales/server.ro.yml @@ -300,7 +300,8 @@ ro: same_as_current: "este identică cu parola curentă." unique_characters: "are prea multe caractere repetate. Te rugăm să folosești o parolă mai sigură." ip_address: - signup_not_allowed: "Înscrierea de pe acest cont nu este permisă." + blocked: "Nu sunt permise noi înregistrări de la adresa ta de IP." + max_new_accounts_per_registration_ip: "Nu sunt permise noi înregistrări de la adresa ta de IP (limita maximă a fost atinsă). Contactează un membru al echipei." color_scheme_color: attributes: hex: @@ -1250,9 +1251,6 @@ ro: not_allowed: "nu este permis din partea acelui furnizor de servicii email. Te rugăm folosește altă adresă email." blocked: "nu este permis." revoked: "No se vor trimite emailuri către '%{email}' până la data de %{date}." - ip_address: - blocked: "Nu sunt permise noi înregistrări de la adresa ta de IP." - max_new_accounts_per_registration_ip: "Nu sunt permise noi înregistrări de la adresa ta de IP (limita maximă a fost atinsă). Contactează un membru al echipei." unsubscribe_mailer: subject_template: "Confirmă că nu mai vrei să primești actualizări pe email de la %{site_title}" invite_password_instructions: diff --git a/config/locales/server.ru.yml b/config/locales/server.ru.yml index 0b05bf9b4f8..bcb077ffe2d 100644 --- a/config/locales/server.ru.yml +++ b/config/locales/server.ru.yml @@ -618,7 +618,8 @@ ru: name: same_as_password: "совпадает с паролем." ip_address: - signup_not_allowed: "Регистрация с данным аккаунтом запрещена." + blocked: "Регистрация новых аккаунтов с вашего IP-адреса запрещена." + max_new_accounts_per_registration_ip: "Регистрация новых аккаунтов с вашего IP-адреса запрещена (достигнут лимит). Обратитесь к персоналу." user_profile: attributes: featured_topic_id: @@ -2555,9 +2556,6 @@ ru: blocked: "не разрешён." revoked: "Отправка писем на адрес «%{email}» не будет осуществляться до %{date}." does_not_exist: "Н/Д" - ip_address: - blocked: "Регистрация новых аккаунтов с вашего IP-адреса запрещена." - max_new_accounts_per_registration_ip: "Регистрация новых аккаунтов с вашего IP-адреса запрещена (достигнут лимит). Обратитесь к персоналу." website: domain_not_allowed: "Адрес сайта недействителен. Допустимые домены: %{domains}" auto_rejected: "Отклонён в результате автоматической модерации. См. настройку `auto_handle_queued_age`." diff --git a/config/locales/server.sk.yml b/config/locales/server.sk.yml index bbda9de2808..ead266091b0 100644 --- a/config/locales/server.sk.yml +++ b/config/locales/server.sk.yml @@ -305,7 +305,8 @@ sk: same_as_email: "je také isté ako Váš email. Prosím použite bezpečnejšie heslo" same_as_current: "je také isté ako Vaše súčasné heslo" ip_address: - signup_not_allowed: "Registrácia z tohto účtu nie je povolená-" + blocked: "Nové registrácie nie sú povolené z Vašej IP adresy." + max_new_accounts_per_registration_ip: "Nové registrácie nie sú povolené z Vašej IP adresy (dosiahnutý limit). Kontaktujte člena obsluhy. " color_scheme_color: attributes: hex: @@ -1123,9 +1124,6 @@ sk: email: not_allowed: "nie je povolená od tohto poskytovateľa emailu. Prosím použite inú emailovú adresu. " blocked: "nie je povolená." - ip_address: - blocked: "Nové registrácie nie sú povolené z Vašej IP adresy." - max_new_accounts_per_registration_ip: "Nové registrácie nie sú povolené z Vašej IP adresy (dosiahnutý limit). Kontaktujte člena obsluhy. " unsubscribe_mailer: subject_template: "Potvrďte, že už ďalej nechcete dostávať aktualizácie z %{site_title}" invite_password_instructions: diff --git a/config/locales/server.sq.yml b/config/locales/server.sq.yml index 10af825fa7b..993298c4b2b 100644 --- a/config/locales/server.sq.yml +++ b/config/locales/server.sq.yml @@ -194,7 +194,8 @@ sq: same_as_username: "is the same as your username. Please use a more secure password." same_as_email: "is the same as your email. Please use a more secure password." ip_address: - signup_not_allowed: "Signup is not allowed from this account." + blocked: "New registrations are not allowed from your IP address." + max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." color_scheme_color: attributes: hex: @@ -883,9 +884,6 @@ sq: email: not_allowed: "is not allowed from that email provider. Please use another email address." blocked: "is not allowed." - ip_address: - blocked: "New registrations are not allowed from your IP address." - max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." invite_password_instructions: subject_template: "Vendos fjalëkalimin për llogarinë tek %{site_name}" flag_reasons: diff --git a/config/locales/server.sv.yml b/config/locales/server.sv.yml index e20adfb7876..63dd6a48ee6 100644 --- a/config/locales/server.sv.yml +++ b/config/locales/server.sv.yml @@ -568,7 +568,8 @@ sv: name: same_as_password: "är samma som ditt lösenord." ip_address: - signup_not_allowed: "Registrering är inte tillåtet från detta konto." + blocked: "Nya registreringar är inte tillåtna från din IP-adress." + max_new_accounts_per_registration_ip: "Nya registreringar är inte tillåtna från din IP-adress (maxgräns uppnådd). Kontakta personal." user_profile: attributes: featured_topic_id: @@ -2422,9 +2423,6 @@ sv: blocked: "är inte tillåtet." revoked: "Kommer inte att skicka e-post till '%{email}' förrän %{date}." does_not_exist: "---" - ip_address: - blocked: "Nya registreringar är inte tillåtna från din IP-adress." - max_new_accounts_per_registration_ip: "Nya registreringar är inte tillåtna från din IP-adress (maxgräns uppnådd). Kontakta personal." website: domain_not_allowed: "Webbsida är ogiltig. Tillåtna domäner är: %{domains}" auto_rejected: "Avvisas automatiskt på grund av ålder. Se webbplatsinställning auto_handle_queued_age ." diff --git a/config/locales/server.sw.yml b/config/locales/server.sw.yml index 3a755a94e61..a46753646d2 100644 --- a/config/locales/server.sw.yml +++ b/config/locales/server.sw.yml @@ -297,7 +297,8 @@ sw: same_as_current: "ni sawa na nywila unayotumia sasa." unique_characters: "ina herufi zilizorudiwa sana. Tafadhali tumia nywila iliyo salama zaidi." ip_address: - signup_not_allowed: "Hauruhusiwi kujiunga kupitia akaunti hii." + blocked: "Usajili mpya hauruhusiwi kutoka kwenye anwani hio ya mtandao." + max_new_accounts_per_registration_ip: "Usajili mpya hauruhusiwi kutoka kwenye anwani hio ya mtandao (kiwango cha juu kimefika). Wasiliana na mfanyakazi." user_email: attributes: user_id: @@ -1023,9 +1024,6 @@ sw: not_allowed: "hairuhusiwi kutoka kwa mtoaji barua pepe. Tafadhali tumia barua pepe nyingine." blocked: "hairuhusiwi." revoked: "hatutatuma barua pepe kwenda kwa '%{email}' mpaka %{date}." - ip_address: - blocked: "Usajili mpya hauruhusiwi kutoka kwenye anwani hio ya mtandao." - max_new_accounts_per_registration_ip: "Usajili mpya hauruhusiwi kutoka kwenye anwani hio ya mtandao (kiwango cha juu kimefika). Wasiliana na mfanyakazi." website: domain_not_allowed: "Tovuti ni batili. Vikoa vinavyoruhusiwa ni: %{domains}" auto_rejected: "Imekataliwa otomatikali kwa sababu ya umri. Ona mpangilio wa tovuti wa auto_handle_queued_age" diff --git a/config/locales/server.te.yml b/config/locales/server.te.yml index 3a5f914cd82..45636850236 100644 --- a/config/locales/server.te.yml +++ b/config/locales/server.te.yml @@ -157,7 +157,8 @@ te: same_as_username: "మీ వినియోగదారు పేరు అదే ఉంది. మరింత సురక్షిత సంకేతపదం ఉపయోగించండి." same_as_email: "మీ ఈ-మెయిల్ అదే ఉంది. మరింత సురక్షిత సంకేతపదం ఉపయోగించండి." ip_address: - signup_not_allowed: "ఈ ఖాతాకు సైన్ అప్ అనుమతించబడదు" + blocked: "New registrations are not allowed from your IP address." + max_new_accounts_per_registration_ip: "New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member." color_scheme_color: attributes: hex: diff --git a/config/locales/server.tr_TR.yml b/config/locales/server.tr_TR.yml index ccb7310e6a1..8d00fae9736 100644 --- a/config/locales/server.tr_TR.yml +++ b/config/locales/server.tr_TR.yml @@ -563,7 +563,8 @@ tr_TR: name: same_as_password: "şifrenizle aynı." ip_address: - signup_not_allowed: "Bu hesaptan kayıt yapılmasına izin verilmiyor." + blocked: "IP adresinizden yeni kayıtlara izin verilmiyor." + max_new_accounts_per_registration_ip: "IP adresinizden yeni kayıtlara izin verilmiyor (maksimum limite ulaşıldı). Bir personelle iletişime geçin." user_profile: attributes: featured_topic_id: @@ -2436,9 +2437,6 @@ tr_TR: blocked: "için izin verilmiyor." revoked: "%{date} tarihine kadar \"%{email}\" adresine e-posta göndermeyecek." does_not_exist: "Geçersiz" - ip_address: - blocked: "IP adresinizden yeni kayıtlara izin verilmiyor." - max_new_accounts_per_registration_ip: "IP adresinizden yeni kayıtlara izin verilmiyor (maksimum limite ulaşıldı). Bir personelle iletişime geçin." website: domain_not_allowed: "Web sitesi geçersiz. İzin verilen alan adları şunlardır: %{domains}" auto_rejected: "Yaş nedeniyle otomatik olarak reddedildi. auto_handle_queued_age site ayarına bakın." diff --git a/config/locales/server.uk.yml b/config/locales/server.uk.yml index 5e7eb6c4c39..388cc82d124 100644 --- a/config/locales/server.uk.yml +++ b/config/locales/server.uk.yml @@ -625,7 +625,8 @@ uk: name: same_as_password: "збігається з вашим паролем." ip_address: - signup_not_allowed: "Реєстрація з цього облікового запису не дозволена." + blocked: "Нові реєстрації з вашої IP-адреси заборонені." + max_new_accounts_per_registration_ip: "Нові реєстрації з вашої IP-адреси заборонено (досягнуто максимального ліміту). Зверніться до команди обслуговування." user_profile: attributes: featured_topic_id: @@ -2621,9 +2622,6 @@ uk: blocked: "не допускається." revoked: "Не буде надсилати електронні листи на \"%{email}\" до %{date}." does_not_exist: "Н/Д" - ip_address: - blocked: "Нові реєстрації з вашої IP-адреси заборонені." - max_new_accounts_per_registration_ip: "Нові реєстрації з вашої IP-адреси заборонено (досягнуто максимального ліміту). Зверніться до команди обслуговування." website: domain_not_allowed: "Вебсайт недійсний. Дозволені домени: %{domains}" auto_rejected: "Відхилено автоматично через вік. Перегляньте налаштування сайту auto_handle_queued_age." diff --git a/config/locales/server.ur.yml b/config/locales/server.ur.yml index 4c34741d444..e71420bfc56 100644 --- a/config/locales/server.ur.yml +++ b/config/locales/server.ur.yml @@ -530,7 +530,8 @@ ur: name: same_as_password: "آپ کے پاسورڈ جیسا ہی ہے۔" ip_address: - signup_not_allowed: "اِس اکاؤنٹ سے سائن اَپ کی اجازت نہیں ہے۔" + blocked: "آپ کے آئی پی ایڈریس سے نئی رجسٹریشنوں کی اجازت نہیں ہے۔" + max_new_accounts_per_registration_ip: "آپ کے آئی پی ایڈریس سے نئی رجسٹریشنوں کی اجازت نہیں ہے (زیادہ سے زیادہ حد تک پہنچ گئے)۔ ایک سٹاف ممبر سے رابطہ کریں۔" user_profile: attributes: featured_topic_id: @@ -2072,9 +2073,6 @@ ur: not_allowed: "اِس ای میل پرووَائیڈر سے اجازت نہیں ہے۔ براہ مہربانی ایک اور ای میل پتہ استعمال کریں۔" blocked: "کی اجازت نہیں ہے۔" revoked: "%{date} تک '%{email}' کو ای میل نہیں بھیجیں گے۔" - ip_address: - blocked: "آپ کے آئی پی ایڈریس سے نئی رجسٹریشنوں کی اجازت نہیں ہے۔" - max_new_accounts_per_registration_ip: "آپ کے آئی پی ایڈریس سے نئی رجسٹریشنوں کی اجازت نہیں ہے (زیادہ سے زیادہ حد تک پہنچ گئے)۔ ایک سٹاف ممبر سے رابطہ کریں۔" website: domain_not_allowed: "ویب سائٹ غلط ہے۔ اجازت یافتہ ڈومَینز ہیں: %{domains}" auto_rejected: "عمر کی وجہ سے خود کار طریقہ سے رد کر دیا گیا۔ دیکھیے auto_handle_queued_age سائٹ ترتیب۔" diff --git a/config/locales/server.vi.yml b/config/locales/server.vi.yml index 5a640c80e7b..7c76e736d7b 100644 --- a/config/locales/server.vi.yml +++ b/config/locales/server.vi.yml @@ -453,7 +453,8 @@ vi: name: same_as_password: "là giống như mật khẩu hiện tại của bạn." ip_address: - signup_not_allowed: "Đăng ký không cho phép tài khoản này" + blocked: "Đăng ký mới không cho phép từ địa chỉ IP của bạn." + max_new_accounts_per_registration_ip: "Đăng ký tài khoản mới không được chấp nhận từ địa chỉ IP của bạn (đã đạt giới hạn tối), xin hãy liên hệ với BQT." user_profile: attributes: featured_topic_id: @@ -1495,9 +1496,6 @@ vi: blocked: "không được chấp nhận." revoked: "Sẽ không gửi email đến '%{email}' cho đến %{date}." does_not_exist: "N/A" - ip_address: - blocked: "Đăng ký mới không cho phép từ địa chỉ IP của bạn." - max_new_accounts_per_registration_ip: "Đăng ký tài khoản mới không được chấp nhận từ địa chỉ IP của bạn (đã đạt giới hạn tối), xin hãy liên hệ với BQT." website: domain_not_allowed: "Trang web không hợp lệ. Các miền được phép là: %{domains}" auto_rejected: "Bị từ chối tự động do tuổi tác. Xem cài đặt trang auto_handle_queued_age." diff --git a/config/locales/server.zh_CN.yml b/config/locales/server.zh_CN.yml index a54bfa0c00f..17ad3329ffa 100644 --- a/config/locales/server.zh_CN.yml +++ b/config/locales/server.zh_CN.yml @@ -550,7 +550,8 @@ zh_CN: name: same_as_password: "与您的密码相同。" ip_address: - signup_not_allowed: "不允许从此帐户注册。" + blocked: "不允许从您的 IP 地址进行新注册。" + max_new_accounts_per_registration_ip: "不允许从您的 IP 地址进行新注册(已达到最大限制)。请联系管理人员。" user_profile: attributes: featured_topic_id: @@ -2389,9 +2390,6 @@ zh_CN: blocked: "不被允许。" revoked: "在 %{date}之前不会向 '%{email}' 发送电子邮件。" does_not_exist: "不适用" - ip_address: - blocked: "不允许从您的 IP 地址进行新注册。" - max_new_accounts_per_registration_ip: "不允许从您的 IP 地址进行新注册(已达到最大限制)。请联系管理人员。" website: domain_not_allowed: "网站无效。允许的网域包括:%{domains}" auto_rejected: "因时限被自动拒绝。查看 auto_handle_queued_age 站点设置。" diff --git a/config/locales/server.zh_TW.yml b/config/locales/server.zh_TW.yml index 7e126ef147d..7994d24f117 100644 --- a/config/locales/server.zh_TW.yml +++ b/config/locales/server.zh_TW.yml @@ -394,7 +394,8 @@ zh_TW: name: same_as_password: "與您的密碼相同" ip_address: - signup_not_allowed: "不能使用這個帳戶進行登入" + blocked: "不允許從你的 IP 地址註冊新使用者。" + max_new_accounts_per_registration_ip: "不允許從你的 IP 地址註冊新使用者(達到上限)。聯繫一個管理人員。" user_email: attributes: user_id: @@ -1711,9 +1712,6 @@ zh_TW: not_allowed: "本站不允許使用該郵箱服務商提供的電子郵箱,請使用其它郵箱位址。" blocked: "不被允許。" revoked: "在%{date}之前不發送郵件至“%{email}”" - ip_address: - blocked: "不允許從你的 IP 地址註冊新使用者。" - max_new_accounts_per_registration_ip: "不允許從你的 IP 地址註冊新使用者(達到上限)。聯繫一個管理人員。" website: domain_not_allowed: "網站無效。允許的域名有:%{domains}" auto_rejected: "由於年齡而被系統自動拒絕,請參閱「auto_handle_queued_age」網站設定" diff --git a/lib/validators/allowed_ip_address_validator.rb b/lib/validators/allowed_ip_address_validator.rb index f8c231aa5ae..7c262731e23 100644 --- a/lib/validators/allowed_ip_address_validator.rb +++ b/lib/validators/allowed_ip_address_validator.rb @@ -3,12 +3,10 @@ class AllowedIpAddressValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) if record.ip_address - if ScreenedIpAddress.should_block?(record.ip_address) - record.errors.add(attribute, I18n.t("user.ip_address.blocked")) - end + record.errors.add(attribute, :blocked) if ScreenedIpAddress.should_block?(record.ip_address) if record.trust_level == TrustLevel[0] && SpamHandler.should_prevent_registration_from_ip?(record.ip_address) - record.errors.add(attribute, I18n.t("user.ip_address.max_new_accounts_per_registration_ip")) + record.errors.add(attribute, :max_new_accounts_per_registration_ip) end end end diff --git a/spec/lib/validators/allowed_ip_address_validator_spec.rb b/spec/lib/validators/allowed_ip_address_validator_spec.rb index 5f9c31b6166..69c3fb3b23a 100644 --- a/spec/lib/validators/allowed_ip_address_validator_spec.rb +++ b/spec/lib/validators/allowed_ip_address_validator_spec.rb @@ -11,7 +11,9 @@ RSpec.describe AllowedIpAddressValidator do ScreenedIpAddress.stubs(:should_block?).returns(true) validate expect(record.errors[:ip_address]).to be_present - expect(record.errors[:ip_address][0]).to eq(I18n.t("user.ip_address.blocked")) + expect(record.errors[:ip_address][0]).to eq( + I18n.t("activerecord.errors.models.user.attributes.ip_address.blocked"), + ) end end @@ -21,7 +23,9 @@ RSpec.describe AllowedIpAddressValidator do validate expect(record.errors[:ip_address]).to be_present expect(record.errors[:ip_address][0]).to eq( - I18n.t("user.ip_address.max_new_accounts_per_registration_ip"), + I18n.t( + "activerecord.errors.models.user.attributes.ip_address.max_new_accounts_per_registration_ip", + ), ) end end