From 9ed2d8ed77906c21f6df8331008aad2adcf23148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Tue, 22 Feb 2011 21:50:50 +0100 Subject: [PATCH] Allow underscores in project identifiers. #146 --- app/models/project.rb | 2 +- config/locales/bg.yml | 2 +- config/locales/bs.yml | 2 +- config/locales/ca.yml | 2 +- config/locales/cs.yml | 2 +- config/locales/da.yml | 2 +- config/locales/de.yml | 2 +- config/locales/el.yml | 2 +- config/locales/en-GB.yml | 8 ++++---- config/locales/en.yml | 2 +- config/locales/es.yml | 2 +- config/locales/eu.yml | 8 ++++---- config/locales/fi.yml | 2 +- config/locales/fr.yml | 2 +- config/locales/gl.yml | 2 +- config/locales/he.yml | 2 +- config/locales/hr.yml | 2 +- config/locales/hu.yml | 2 +- config/locales/id.yml | 2 +- config/locales/it.yml | 2 +- config/locales/ja.yml | 2 +- config/locales/ko.yml | 2 +- config/locales/lt.yml | 2 +- config/locales/lv.yml | 8 ++++---- config/locales/mk.yml | 8 ++++---- config/locales/mn.yml | 8 ++++---- config/locales/nl.yml | 2 +- config/locales/no.yml | 2 +- config/locales/pl.yml | 2 +- config/locales/pt-BR.yml | 2 +- config/locales/pt.yml | 2 +- config/locales/ro.yml | 2 +- config/locales/ru.yml | 2 +- config/locales/sk.yml | 2 +- config/locales/sl.yml | 2 +- config/locales/sr-YU.yml | 8 ++++---- config/locales/sr.yml | 2 +- config/locales/sv.yml | 2 +- config/locales/th.yml | 2 +- config/locales/tr.yml | 2 +- config/locales/uk.yml | 2 +- config/locales/vi.yml | 2 +- config/locales/zh-TW.yml | 2 +- config/locales/zh.yml | 2 +- test/unit/project_test.rb | 1 + 45 files changed, 63 insertions(+), 62 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 8315a48a..eb0da23a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -75,7 +75,7 @@ class Project < ActiveRecord::Base validates_length_of :homepage, :maximum => 255 validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH # donwcase letters, digits, dashes but not digits only - validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-]*$/, :if => Proc.new { |p| p.identifier_changed? } + validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-_]*$/, :if => Proc.new { |p| p.identifier_changed? } # reserved words validates_exclusion_of :identifier, :in => %w( new ) diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 66d7233b..47e4803c 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -864,7 +864,7 @@ bg: text_tip_issue_begin_day: задача, започваща този ден text_tip_issue_end_day: задача, завършваща този ден text_tip_issue_begin_end_day: задача, започваща и завършваща този ден - text_project_identifier_info: 'Позволени са малки букви (a-z), цифри и тирета.
Невъзможна промяна след запис.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "До %{count} символа." text_caracters_minimum: "Минимум %{count} символа." text_length_between: "От %{min} до %{max} символа." diff --git a/config/locales/bs.yml b/config/locales/bs.yml index f2e58b60..68229f24 100644 --- a/config/locales/bs.yml +++ b/config/locales/bs.yml @@ -756,7 +756,7 @@ bs: text_tip_issue_begin_day: zadatak počinje danas text_tip_issue_end_day: zadatak završava danas text_tip_issue_begin_end_day: zadatak započinje i završava danas - text_project_identifier_info: 'Samo mala slova (a-z), brojevi i crtice su dozvoljeni.
Nakon snimanja, identifikator se ne može mijenjati.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "maksimum %{count} karaktera." text_caracters_minimum: "Dužina mora biti najmanje %{count} znakova." text_length_between: "Broj znakova između %{min} i %{max}." diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 8d3eddda..e9dd73ba 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -848,7 +848,7 @@ ca: text_tip_issue_begin_day: "tasca que s'inicia aquest dia" text_tip_issue_end_day: tasca que finalitza aquest dia text_tip_issue_begin_end_day: "tasca que s'inicia i finalitza aquest dia" - text_project_identifier_info: "Es permeten lletres en minúscules (a-z), números i guions.
Un cop desat, l'identificador no es pot modificar." + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} caràcters com a màxim." text_caracters_minimum: "Com a mínim ha de tenir %{count} caràcters." text_length_between: "Longitud entre %{min} i %{max} caràcters." diff --git a/config/locales/cs.yml b/config/locales/cs.yml index c2ca9d70..39bb5a0f 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -661,7 +661,7 @@ cs: text_tip_issue_begin_day: úkol začíná v tento den text_tip_issue_end_day: úkol končí v tento den text_tip_issue_begin_end_day: úkol začíná a končí v tento den - text_project_identifier_info: 'Jsou povolena malá písmena (a-z), čísla a pomlčky.
Po uložení již není možné identifikátor změnit.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} znaků maximálně." text_caracters_minimum: "Musí být alespoň %{count} znaků dlouhé." text_length_between: "Délka mezi %{min} a %{max} znaky." diff --git a/config/locales/da.yml b/config/locales/da.yml index e909947a..da3110c0 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -663,7 +663,7 @@ da: text_tip_issue_begin_day: opgaven begynder denne dag text_tip_issue_end_day: opaven slutter denne dag text_tip_issue_begin_end_day: opgaven begynder og slutter denne dag - text_project_identifier_info: 'Små bogstaver (a-z), numre og bindestreg er tilladt.
Denne er en unik identifikation for projektet, og kan defor ikke rettes senere.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "max %{count} karakterer." text_caracters_minimum: "Skal være mindst %{count} karakterer lang." text_length_between: "Længde skal være mellem %{min} og %{max} karakterer." diff --git a/config/locales/de.yml b/config/locales/de.yml index 9e583fb1..bcd40156 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -866,7 +866,7 @@ de: text_tip_issue_begin_day: Aufgabe, die an diesem Tag beginnt text_tip_issue_end_day: Aufgabe, die an diesem Tag endet text_tip_issue_begin_end_day: Aufgabe, die an diesem Tag beginnt und endet - text_project_identifier_info: 'Kleinbuchstaben (a-z), Ziffern und Bindestriche erlaubt.
Einmal gespeichert, kann die Kennung nicht mehr geändert werden.' + text_project_identifier_info: 'Kleinbuchstaben (a-z), Ziffern, Binde- und Unterstriche erlaubt.
Einmal gespeichert, kann die Kennung nicht mehr geändert werden.' text_caracters_maximum: "Max. %{count} Zeichen." text_caracters_minimum: "Muss mindestens %{count} Zeichen lang sein." text_length_between: "Länge zwischen %{min} und %{max} Zeichen." diff --git a/config/locales/el.yml b/config/locales/el.yml index 8202c334..934caa07 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -767,7 +767,7 @@ el: text_tip_issue_begin_day: καθήκοντα που ξεκινάνε σήμερα text_tip_issue_end_day: καθήκοντα που τελειώνουν σήμερα text_tip_issue_begin_end_day: καθήκοντα που ξεκινάνε και τελειώνουν σήμερα - text_project_identifier_info: 'Επιτρέπονται μόνο μικρά πεζά γράμματα (a-z), αριθμοί και παύλες.
Μετά την αποθήκευση, το αναγνωριστικό δεν μπορεί να αλλάξει.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "μέγιστος αριθμός %{count} χαρακτήρες." text_caracters_minimum: "Πρέπει να περιέχει τουλάχιστον %{count} χαρακτήρες." text_length_between: "Μήκος μεταξύ %{min} και %{max} χαρακτήρες." diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index 5276ecca..418b7979 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -832,7 +832,7 @@ en-GB: text_tip_issue_begin_day: task beginning this day text_tip_issue_end_day: task ending this day text_tip_issue_begin_end_day: task beginning and ending this day - text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.
Once saved, the identifier can not be changed.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} characters maximum." text_caracters_minimum: "Must be at least %{count} characters long." text_length_between: "Length between %{min} and %{max} characters." @@ -877,8 +877,8 @@ en-GB: default_role_manager: Manager default_role_developer: Developer default_role_reporter: Reporter - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Bug default_tracker_feature: Feature default_tracker_support: Support @@ -942,4 +942,4 @@ en-GB: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: "Powered by %{link}" + text_powered_by: "Powered by %{link}" diff --git a/config/locales/en.yml b/config/locales/en.yml index a188f5e2..b55f9bb2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -864,7 +864,7 @@ en: text_tip_issue_begin_day: issue beginning this day text_tip_issue_end_day: issue ending this day text_tip_issue_begin_end_day: issue beginning and ending this day - text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.
Once saved, the identifier can not be changed.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} characters maximum." text_caracters_minimum: "Must be at least %{count} characters long." text_length_between: "Length between %{min} and %{max} characters." diff --git a/config/locales/es.yml b/config/locales/es.yml index e45ff29e..84cb87b1 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -813,7 +813,7 @@ es: text_min_max_length_info: 0 para ninguna restricción text_no_configuration_data: "Todavía no se han configurado perfiles, ni tipos, estados y flujo de trabajo asociado a peticiones. Se recomiendo encarecidamente cargar la configuración por defecto. Una vez cargada, podrá modificarla." text_project_destroy_confirmation: ¿Estás seguro de querer eliminar el proyecto? - text_project_identifier_info: 'Letras minúsculas (a-z), números y signos de puntuación permitidos.
Una vez guardado, el identificador no puede modificarse.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_reassign_time_entries: 'Reasignar las horas a esta petición:' text_regexp_info: ej. ^[A-Z0-9]+$ text_repository_usernames_mapping: "Establezca la correspondencia entre los usuarios de Redmine y los presentes en el log del repositorio.\nLos usuarios con el mismo nombre o correo en Redmine y en el repositorio serán asociados automáticamente." diff --git a/config/locales/eu.yml b/config/locales/eu.yml index 23a8cf96..c48ec2fc 100644 --- a/config/locales/eu.yml +++ b/config/locales/eu.yml @@ -827,7 +827,7 @@ eu: text_tip_issue_begin_day: gaur hasten diren atazak text_tip_issue_end_day: gaur bukatzen diren atazak text_tip_issue_begin_end_day: gaur hasi eta bukatzen diren atazak - text_project_identifier_info: 'Letra xeheak (a-z), zenbakiak eta marrak erabil daitezke bakarrik.
Gorde eta gero identifikadorea ezin da aldatu.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} karaktere gehienez." text_caracters_minimum: "Gutxienez %{count} karaktereetako luzerakoa izan behar du." text_length_between: "Luzera %{min} eta %{max} karaktereen artekoa." @@ -872,8 +872,8 @@ eu: default_role_manager: Kudeatzailea default_role_developer: Garatzailea default_role_reporter: Berriemailea - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Errorea default_tracker_feature: Eginbidea default_tracker_support: Laguntza @@ -942,4 +942,4 @@ eu: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: Powered by %{link} + text_powered_by: Powered by %{link} diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 5f11bd3a..3705f972 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -638,7 +638,7 @@ fi: text_tip_issue_begin_day: tehtävä joka alkaa tänä päivänä text_tip_issue_end_day: tehtävä joka loppuu tänä päivänä text_tip_issue_begin_end_day: tehtävä joka alkaa ja loppuu tänä päivänä - text_project_identifier_info: 'Pienet kirjaimet (a-z), numerot ja viivat ovat sallittu.
Tallentamisen jälkeen tunnistetta ei voi muuttaa.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} merkkiä enintään." text_caracters_minimum: "Täytyy olla vähintään %{count} merkkiä pitkä." text_length_between: "Pituus välillä %{min} ja %{max} merkkiä." diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 4c76f050..01c172ab 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -847,7 +847,7 @@ fr: text_tip_issue_begin_day: tâche commençant ce jour text_tip_issue_end_day: tâche finissant ce jour text_tip_issue_begin_end_day: tâche commençant et finissant ce jour - text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres et tirets sont autorisés.
Un fois sauvegardé, l''identifiant ne pourra plus être modifié.' + text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisés.
Un fois sauvegardé, l''identifiant ne pourra plus être modifié.' text_caracters_maximum: "%{count} caractères maximum." text_caracters_minimum: "%{count} caractères minimum." text_length_between: "Longueur comprise entre %{min} et %{max} caractères." diff --git a/config/locales/gl.yml b/config/locales/gl.yml index 543efcbb..51163c77 100644 --- a/config/locales/gl.yml +++ b/config/locales/gl.yml @@ -790,7 +790,7 @@ gl: text_min_max_length_info: 0 para ningunha restrición text_no_configuration_data: "Inda non se configuraron perfiles, nin tipos, estados e fluxo de traballo asociado a peticións. Recoméndase encarecidamente cargar a configuración por defecto. Unha vez cargada, poderá modificala." text_project_destroy_confirmation: ¿Estás seguro de querer eliminar o proxecto? - text_project_identifier_info: 'Letras minúsculas (a-z), números e signos de puntuación permitidos.
Unha vez gardado, o identificador non pode modificarse.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_reassign_time_entries: 'Reasignar as horas a esta petición:' text_regexp_info: ex. ^[A-Z0-9]+$ text_repository_usernames_mapping: "Estableza a correspondencia entre os usuarios de Redmine e os presentes no log do repositorio.\nOs usuarios co mesmo nome ou correo en Redmine e no repositorio serán asociados automaticamente." diff --git a/config/locales/he.yml b/config/locales/he.yml index 0ae80526..01ac9366 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -857,7 +857,7 @@ he: text_tip_issue_begin_day: מטלה המתחילה היום text_tip_issue_end_day: מטלה המסתיימת היום text_tip_issue_begin_end_day: מטלה המתחילה ומסתיימת היום - text_project_identifier_info: 'אותיות לטיניות (a-z), מספרים ומקפים.
ברגע שנשמר, לא ניתן לשנות את המזהה.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "מקסימום %{count} תווים." text_caracters_minimum: "חייב להיות לפחות באורך של %{count} תווים." text_length_between: "אורך בין %{min} ל %{max} תווים." diff --git a/config/locales/hr.yml b/config/locales/hr.yml index 007b86b9..702db593 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -821,7 +821,7 @@ hr: text_tip_issue_begin_day: Zadaci koji počinju ovog dana text_tip_issue_end_day: zadaci koji se završavaju ovog dana text_tip_issue_begin_end_day: Zadaci koji počinju i završavaju se ovog dana - text_project_identifier_info: 'mala slova (a-z), brojevi i crtice su dozvoljeni.
Jednom snimljen identifikator se ne može mijenjati!' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "Najviše %{count} znakova." text_caracters_minimum: "Mora biti dugačko najmanje %{count} znakova." text_length_between: "Dužina izmedu %{min} i %{max} znakova." diff --git a/config/locales/hu.yml b/config/locales/hu.yml index f8bb0c8d..82159ad0 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -684,7 +684,7 @@ text_tip_issue_begin_day: a feladat ezen a napon kezdődik text_tip_issue_end_day: a feladat ezen a napon ér véget text_tip_issue_begin_end_day: a feladat ezen a napon kezdődik és ér véget - text_project_identifier_info: 'Kis betűk (a-z), számok és kötőjel megengedett.
Mentés után az azonosítót megváltoztatni nem lehet.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "maximum %{count} karakter." text_caracters_minimum: "Legkevesebb %{count} karakter hosszúnek kell lennie." text_length_between: "Legalább %{min} és legfeljebb %{max} hosszú karakter." diff --git a/config/locales/id.yml b/config/locales/id.yml index 12e7eaa5..1587f40f 100644 --- a/config/locales/id.yml +++ b/config/locales/id.yml @@ -802,7 +802,7 @@ id: text_tip_issue_begin_day: tugas dimulai hari itu text_tip_issue_end_day: tugas berakhir hari itu text_tip_issue_begin_end_day: tugas dimulai dan berakhir hari itu - text_project_identifier_info: 'Yang diijinkan hanya huruf kecil (a-z), angka dan tanda minus.
Sekali disimpan, pengenal tidak bisa diubah.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "maximum %{count} karakter." text_caracters_minimum: "Setidaknya harus sepanjang %{count} karakter." text_length_between: "Panjang diantara %{min} dan %{max} karakter." diff --git a/config/locales/it.yml b/config/locales/it.yml index 9c616953..456eb830 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -576,7 +576,7 @@ it: text_tip_issue_begin_day: attività che iniziano in questa giornata text_tip_issue_end_day: attività che terminano in questa giornata text_tip_issue_begin_end_day: attività che iniziano e terminano in questa giornata - text_project_identifier_info: "Lettere minuscole (a-z), numeri e trattini permessi.
Una volta salvato, l'identificativo non può essere modificato." + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "massimo %{count} caratteri." text_length_between: "Lunghezza compresa tra %{min} e %{max} caratteri." text_tracker_no_workflow: Nessun workflow definito per questo tracker diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 10432431..d55c5167 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -886,7 +886,7 @@ ja: text_tip_issue_begin_day: この日に開始するタスク text_tip_issue_end_day: この日に終了するタスク text_tip_issue_begin_end_day: この日のうちに開始して終了するタスク - text_project_identifier_info: '英小文字(a-z)と数字とダッシュ(-)が使えます。
一度保存すると、識別子は変更できません。' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "最大%{count}文字です。" text_caracters_minimum: "最低%{count}文字の長さが必要です" text_length_between: "長さは%{min}から%{max}文字までです。" diff --git a/config/locales/ko.yml b/config/locales/ko.yml index cb64d10f..019f84ac 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -812,7 +812,7 @@ ko: text_tip_issue_begin_day: 오늘 시작하는 업무(task) text_tip_issue_end_day: 오늘 종료하는 업무(task) text_tip_issue_begin_end_day: 오늘 시작하고 종료하는 업무(task) - text_project_identifier_info: '영문 소문자(a-z) 및 숫자, 대쉬(-) 가능.
저장된후에는 식별자 변경 불가능.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "최대 %{count} 글자 가능" text_caracters_minimum: "최소한 %{count} 글자 이상이어야 합니다." text_length_between: "%{min} 에서 %{max} 글자" diff --git a/config/locales/lt.yml b/config/locales/lt.yml index 6b99c80c..56026ef4 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -854,7 +854,7 @@ lt: text_tip_issue_begin_day: užduotis, prasidedanti šią dieną text_tip_issue_end_day: užduotis, pasibaigianti šią dieną text_tip_issue_begin_end_day: užduotis, prasidedanti ir pasibaigianti šią dieną - text_project_identifier_info: 'Mažosios raidės (a-z), skaičiai ir brūkšniai galimi.
Išsaugojus, identifikuotojas negali būti keičiamas.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} simbolių maksimumas." text_caracters_minimum: "Turi būti mažiausiai %{count} simbolių ilgio." text_length_between: "Ilgis tarp %{min} ir %{max} simbolių." diff --git a/config/locales/lv.yml b/config/locales/lv.yml index 5fdc8ecd..73320eec 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -822,7 +822,7 @@ lv: text_tip_issue_begin_day: uzdevums sākas šodien text_tip_issue_end_day: uzdevums beidzas šodien text_tip_issue_begin_end_day: uzdevums sākas un beidzas šodien - text_project_identifier_info: 'Tikai mazie burti (a-z), cipari un domuzīmes ir atļauti.
Kad saglabāts, identifikators nevar tikt mainīts.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} simboli maksimāli." text_caracters_minimum: "Jābūt vismaz %{count} simbolu garumā." text_length_between: "Garums starp %{min} un %{max} simboliem." @@ -867,8 +867,8 @@ lv: default_role_manager: Menedžeris default_role_developer: Izstrādātājs default_role_reporter: Ziņotājs - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Kļūda default_tracker_feature: Iezīme default_tracker_support: Atbalsts @@ -933,4 +933,4 @@ lv: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: Powered by %{link} + text_powered_by: Powered by %{link} diff --git a/config/locales/mk.yml b/config/locales/mk.yml index 3dcdf120..0cbc914e 100644 --- a/config/locales/mk.yml +++ b/config/locales/mk.yml @@ -845,7 +845,7 @@ mk: text_tip_issue_begin_day: задачи што почнуваат овој ден text_tip_issue_end_day: задачи што завршуваат овој ден text_tip_issue_begin_end_day: задачи што почнуваат и завршуваат овој ден - text_project_identifier_info: 'Само мали букви (a-z), бројки и dashes се дозволени
По зачувувањето, идентификаторот неможе да се смени.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} знаци максимум." text_caracters_minimum: "Мора да е најмалку %{count} знаци долго." text_length_between: "Должина помеѓу %{min} и %{max} знаци." @@ -892,8 +892,8 @@ mk: default_role_manager: Менаџер default_role_developer: Developer default_role_reporter: Reporter - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Грешка default_tracker_feature: Функционалност default_tracker_support: Поддршка @@ -938,4 +938,4 @@ mk: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: Powered by %{link} + text_powered_by: Powered by %{link} diff --git a/config/locales/mn.yml b/config/locales/mn.yml index b92c55eb..6bf504c5 100644 --- a/config/locales/mn.yml +++ b/config/locales/mn.yml @@ -827,7 +827,7 @@ mn: text_tip_issue_begin_day: энэ өдөр эхлэх ажил text_tip_issue_end_day: энэ өдөр дуусах ажил text_tip_issue_begin_end_day: энэ өдөр эхлээд мөн дуусч байгаа ажил - text_project_identifier_info: 'Зөвхөн жижиг үсгүүд болон (a-z), тоо and дундуур зураас ашиглаж болно.
Нэгэнт хадгалсан хойно, төслийн глобал нэрийг өөрлчөх боломжгүй.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "дээд тал нь %{count} үсэг." text_caracters_minimum: "Хамгийн багадаа ядаж %{count} тэмдэгт байх." text_length_between: "Урт нь багадаа %{min}, ихдээ %{max} тэмдэгт." @@ -872,8 +872,8 @@ mn: default_role_manager: Менежер default_role_developer: Хөгжүүлэгч default_role_reporter: Мэдэгдэгч - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Алдаа default_tracker_feature: Онцлог default_tracker_support: Тусламж @@ -939,4 +939,4 @@ mn: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: Powered by %{link} + text_powered_by: Powered by %{link} diff --git a/config/locales/nl.yml b/config/locales/nl.yml index dd2036c2..389ddb2e 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -761,7 +761,7 @@ nl: text_no_configuration_data: "Rollen, trackers, issue statussen en workflows zijn nog niet geconfigureerd.\nHet is ten zeerste aangeraden om de standaard configuratie in te laden. U kunt deze aanpassen nadat deze is ingeladen." text_plugin_assets_writable: Plugin assets directory beschrijfbaar text_project_destroy_confirmation: Weet u zeker dat u dit project en alle gerelateerde gegevens wilt verwijderen? - text_project_identifier_info: 'kleine letters (a-z), cijfers en liggende streepjes toegestaan.
Eenmaal bewaard kan de identificatiecode niet meer worden gewijzigd.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_reassign_time_entries: 'Gerapporteerde uren opnieuw toewijzen:' text_regexp_info: bv. ^[A-Z0-9]+$ text_repository_usernames_mapping: "Koppel de Redminegebruikers aan gebruikers in de repository log.\nGebruikers met dezelfde Redmine en repository gebruikersnaam of email worden automatisch gekoppeld." diff --git a/config/locales/no.yml b/config/locales/no.yml index c095a590..776dfe97 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -656,7 +656,7 @@ text_tip_issue_begin_day: oppgaven starter denne dagen text_tip_issue_end_day: oppgaven avsluttes denne dagen text_tip_issue_begin_end_day: oppgaven starter og avsluttes denne dagen - text_project_identifier_info: 'Små bokstaver (a-z), nummer og bindestrek tillatt.
Identifikatoren kan ikke endres etter den er lagret.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} tegn maksimum." text_caracters_minimum: "Må være minst %{count} tegn langt." text_length_between: "Lengde mellom %{min} og %{max} tegn." diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 6d596718..338eec7e 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -789,7 +789,7 @@ pl: text_min_max_length_info: 0 oznacza brak restrykcji text_no_configuration_data: "Role użytkowników, typy zagadnień, statusy zagadnień oraz przepływ pracy nie zostały jeszcze skonfigurowane.\nJest wysoce rekomendowane by załadować domyślną konfigurację. Po załadowaniu będzie możliwość edycji tych danych." text_project_destroy_confirmation: Jesteś pewien, że chcesz usunąć ten projekt i wszystkie powiązane dane? - text_project_identifier_info: 'Małe litery (a-z), liczby i myślniki dozwolone.
Raz zapisany, identyfikator nie może być zmieniony.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_reassign_time_entries: 'Przepnij przepracowany czas do tego zagadnienia:' text_regexp_info: np. ^[A-Z0-9]+$ text_repository_usernames_mapping: "Wybierz lub uaktualnij przyporządkowanie użytkowników Redmine do użytkowników repozytorium.\nUżytkownicy z taką samą nazwą lub adresem email są przyporządkowani automatycznie." diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index d9e4f40e..5173b8fd 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -698,7 +698,7 @@ pt-BR: text_tip_issue_begin_day: tarefa inicia neste dia text_tip_issue_end_day: tarefa termina neste dia text_tip_issue_begin_end_day: tarefa inicia e termina neste dia - text_project_identifier_info: 'Letras minúsculas (a-z), números e hífens permitidos.
Uma vez salvo, o identificador não poderá ser alterado.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "máximo %{count} caracteres" text_caracters_minimum: "deve ter ao menos %{count} caracteres." text_length_between: "deve ter entre %{min} e %{max} caracteres." diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 7b88bb79..d8474277 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -685,7 +685,7 @@ pt: text_tip_issue_begin_day: tarefa a começar neste dia text_tip_issue_end_day: tarefa a acabar neste dia text_tip_issue_begin_end_day: tarefa a começar e acabar neste dia - text_project_identifier_info: 'Apenas são permitidos letras minúsculas (a-z), números e hífens.
Uma vez guardado, o identificador não poderá ser alterado.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "máximo %{count} caracteres." text_caracters_minimum: "Deve ter pelo menos %{count} caracteres." text_length_between: "Deve ter entre %{min} e %{max} caracteres." diff --git a/config/locales/ro.yml b/config/locales/ro.yml index a5e90fab..5ace8afb 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -743,7 +743,7 @@ ro: text_tip_issue_begin_day: sarcină care începe în această zi text_tip_issue_end_day: sarcină care se termină în această zi text_tip_issue_begin_end_day: sarcină care începe și se termină în această zi - text_project_identifier_info: 'Sunt permise doar litere mici (a-z), numere și cratime.
Odată salvat, identificatorul nu mai poate fi modificat.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "maxim %{count} caractere." text_caracters_minimum: "Trebuie să fie minim %{count} caractere." text_length_between: "Lungime între %{min} și %{max} caractere." diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 17ff25ff..e42b62f4 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -935,7 +935,7 @@ ru: text_no_configuration_data: "Роли, трекеры, статусы задач и оперативный план не были сконфигурированы.\nНастоятельно рекомендуется загрузить конфигурацию по-умолчанию. Вы сможете её изменить потом." text_plugin_assets_writable: Каталог для плагинов доступен по записи text_project_destroy_confirmation: Вы настаиваете на удалении данного проекта и всей относящейся к нему информации? - text_project_identifier_info: 'Допустимы строчные буквы (a-z), цифры и дефис.
Сохраненный идентификатор не может быть изменен.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_reassign_time_entries: 'Перенести зарегистрированное время на следующую задачу:' text_regexp_info: напр. ^[A-Z0-9]+$ text_repository_usernames_mapping: "Выберите или обновите пользователя Redmine, связанного с найденными именами в журнале хранилища.\nПользователи с одинаковыми именами или email в Redmine и хранилище связываются автоматически." diff --git a/config/locales/sk.yml b/config/locales/sk.yml index 56f90560..55cb83bb 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -655,7 +655,7 @@ sk: text_tip_issue_begin_day: úloha začína v tento deň text_tip_issue_end_day: úloha končí v tento deň text_tip_issue_begin_end_day: úloha začína a končí v tento deň - text_project_identifier_info: 'Povolené znaky sú malé písmena (a-z), čísla a pomlčka.
Po uložení už nieje možné identifikátor zmeniť.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} znakov maximálne." text_caracters_minimum: "Musí byť aspoň %{count} znaky/ov dlhé." text_length_between: "Dĺžka medzi %{min} až %{max} znakmi." diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 69e1ee5f..74fa1cae 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -731,7 +731,7 @@ sl: text_tip_issue_begin_day: naloga z začetkom na ta dan text_tip_issue_end_day: naloga z zaključkom na ta dan text_tip_issue_begin_end_day: naloga ki se začne in konča ta dan - text_project_identifier_info: 'Dovoljene so samo male črke (a-z), številke in vezaji.
Enkrat shranjen identifikator ne more biti spremenjen.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "največ %{count} znakov." text_caracters_minimum: "Mora biti vsaj dolg vsaj %{count} znakov." text_length_between: "Dolžina med %{min} in %{max} znakov." diff --git a/config/locales/sr-YU.yml b/config/locales/sr-YU.yml index 95a47e6a..59411b1f 100644 --- a/config/locales/sr-YU.yml +++ b/config/locales/sr-YU.yml @@ -842,7 +842,7 @@ sr-YU: text_tip_issue_begin_day: zadatak počinje ovog dana text_tip_issue_end_day: zadatak se završava ovog dana text_tip_issue_begin_end_day: zadatak počinje i završava ovog dana - text_project_identifier_info: 'Dozvoljena su samo mala slova (a-š), brojevi i crtice.
Jednom snimljen identifikator više se ne može promeniti.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "Najviše %{count} znak(ova)." text_caracters_minimum: "Broj znakova mora biti najmanje %{count}." text_length_between: "Broj znakova mora biti između %{min} i %{max}." @@ -889,8 +889,8 @@ sr-YU: default_role_manager: Menadžer default_role_developer: Programer default_role_reporter: Izveštač - default_role_non_member: Non member - default_role_anonymous: Anonymous + default_role_non_member: Non member + default_role_anonymous: Anonymous default_tracker_bug: Greška default_tracker_feature: Funkcionalnost default_tracker_support: Podrška @@ -938,4 +938,4 @@ sr-YU: setting_commit_logtime_enabled: Enable time logging notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max}) setting_gantt_items_limit: Maximum number of items displayed on the gantt chart - text_powered_by: Powered by %{link} + text_powered_by: Powered by %{link} diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 0cc66c02..89b51a2a 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -842,7 +842,7 @@ sr: text_tip_issue_begin_day: задатак почиње овог дана text_tip_issue_end_day: задатак се завршава овог дана text_tip_issue_begin_end_day: задатак почиње и завршава овог дана - text_project_identifier_info: 'Дозвољена су само мала слова (a-ш), бројеви и цртице.
Једном снимљен идентификатор више се не може променити.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "Највише %{count} знак(ова)." text_caracters_minimum: "Број знакова мора бити најмање %{count}." text_length_between: "Број знакова мора бити између %{min} и %{max}." diff --git a/config/locales/sv.yml b/config/locales/sv.yml index 788293c3..f08f481c 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -906,7 +906,7 @@ sv: text_tip_issue_begin_day: ärende som börjar denna dag text_tip_issue_end_day: ärende som slutar denna dag text_tip_issue_begin_end_day: ärende som börjar och slutar denna dag - text_project_identifier_info: 'Små bokstäver (a-z), siffror och streck tillåtna.
När den är sparad kan identifieraren inte ändras.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "max %{count} tecken." text_caracters_minimum: "Måste vara minst %{count} tecken lång." text_length_between: "Längd mellan %{min} och %{max} tecken." diff --git a/config/locales/th.yml b/config/locales/th.yml index 8e27c60b..b46f7454 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -661,7 +661,7 @@ th: text_tip_issue_begin_day: งานที่เริ่มวันนี้ text_tip_issue_end_day: งานที่จบวันนี้ text_tip_issue_begin_end_day: งานที่เริ่มและจบวันนี้ - text_project_identifier_info: 'ภาษาอังกฤษตัวเล็ก(a-z), ตัวเลข(0-9) และขีด (-) เท่านั้น.
เมื่อจัดเก็บแล้ว, ชื่อเฉพาะไม่สามารถเปลี่ยนแปลงได้' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "สูงสุด %{count} ตัวอักษร." text_caracters_minimum: "ต้องยาวอย่างน้อย %{count} ตัวอักษร." text_length_between: "ความยาวระหว่าง %{min} ถึง %{max} ตัวอักษร." diff --git a/config/locales/tr.yml b/config/locales/tr.yml index 0fbb684e..82d33792 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -682,7 +682,7 @@ tr: text_tip_issue_begin_day: Bugün başlayan görevler text_tip_issue_end_day: Bugün sona eren görevler text_tip_issue_begin_end_day: Bugün başlayan ve sona eren görevler - text_project_identifier_info: 'Küçük harfler (a-z), sayılar ve noktalar kabul edilir.
Bir kere kaydedildiğinde,tanımlayıcı değiştirilemez.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "En çok %{count} karakter." text_caracters_minimum: "En az %{count} karakter uzunluğunda olmalı." text_length_between: "%{min} ve %{max} karakterleri arasındaki uzunluk." diff --git a/config/locales/uk.yml b/config/locales/uk.yml index dfe3ffaa..aec46e55 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -603,7 +603,7 @@ uk: text_tip_issue_begin_day: день початку задачі text_tip_issue_end_day: день завершення задачі text_tip_issue_begin_end_day: початок задачі і закінчення цього дня - text_project_identifier_info: 'Рядкові букви (a-z), допустимі цифри і дефіс.
Збережений ідентифікатор не може бути змінений.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "%{count} символів(а) максимум." text_caracters_minimum: "Повинно мати якнайменше %{count} символів(а) у довжину." text_length_between: "Довжина між %{min} і %{max} символів." diff --git a/config/locales/vi.yml b/config/locales/vi.yml index 8e5e111b..009296e6 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -730,7 +730,7 @@ vi: text_tip_issue_begin_day: ngày bắt đầu text_tip_issue_end_day: ngày kết thúc text_tip_issue_begin_end_day: bắt đầu và kết thúc cùng ngày - text_project_identifier_info: 'Chỉ cho phép chữ cái thường (a-z), con số và dấu gạch ngang.
Sau khi lưu, chỉ số ID không thể thay đổi.' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "Tối đa %{count} ký tự." text_caracters_minimum: "Phải gồm ít nhất %{count} ký tự." text_length_between: "Length between %{min} and %{max} characters." diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 191c1b74..ae8dac27 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -946,7 +946,7 @@ text_tip_issue_begin_day: 今天起始的工作 text_tip_issue_end_day: 今天截止的的工作 text_tip_issue_begin_end_day: 今天起始與截止的工作 - text_project_identifier_info: '只允許小寫英文字母(a-z)、阿拉伯數字與連字符號(-)。
儲存後,代碼不可再被更改。' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "最多 %{count} 個字元." text_caracters_minimum: "長度必須大於 %{count} 個字元." text_length_between: "長度必須介於 %{min} 至 %{max} 個字元之間." diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 73499925..0f2fda6d 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -837,7 +837,7 @@ zh: text_tip_issue_begin_day: 今天开始的任务 text_tip_issue_end_day: 今天结束的任务 text_tip_issue_begin_end_day: 今天开始并结束的任务 - text_project_identifier_info: '只允许使用小写字母(a-z),数字和连字符(-)。
请注意,标识符保存后将不可修改。' + text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.
Once saved, the identifier can not be changed.' text_caracters_maximum: "最多 %{count} 个字符。" text_caracters_minimum: "至少需要 %{count} 个字符。" text_length_between: "长度必须在 %{min} 到 %{max} 个字符之间。" diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 8eb79fda..936008b0 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -101,6 +101,7 @@ class ProjectTest < ActiveSupport::TestCase to_test = {"abc" => true, "ab12" => true, "ab-12" => true, + "ab_12" => true, "12" => false, "new" => false}