@@ -76,7 +76,7 class Project < ActiveRecord::Base | |||
|
76 | 76 | validates_length_of :homepage, :maximum => 255 |
|
77 | 77 | validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH |
|
78 | 78 | # donwcase letters, digits, dashes but not digits only |
|
79 | validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-]*$/, :if => Proc.new { |p| p.identifier_changed? } | |
|
79 | validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-_]*$/, :if => Proc.new { |p| p.identifier_changed? } | |
|
80 | 80 | # reserved words |
|
81 | 81 | validates_exclusion_of :identifier, :in => %w( new ) |
|
82 | 82 |
@@ -879,7 +879,7 en-GB: | |||
|
879 | 879 | text_tip_issue_begin_day: task beginning this day |
|
880 | 880 | text_tip_issue_end_day: task ending this day |
|
881 | 881 | text_tip_issue_begin_end_day: task beginning and ending this day |
|
882 |
text_project_identifier_info: 'Only lower case letters (a-z), numbers and |
|
|
882 | text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.' | |
|
883 | 883 | text_caracters_maximum: "%{count} characters maximum." |
|
884 | 884 | text_caracters_minimum: "Must be at least %{count} characters long." |
|
885 | 885 | text_length_between: "Length between %{min} and %{max} characters." |
@@ -915,7 +915,7 en: | |||
|
915 | 915 | text_tip_issue_begin_day: issue beginning this day |
|
916 | 916 | text_tip_issue_end_day: issue ending this day |
|
917 | 917 | text_tip_issue_begin_end_day: issue beginning and ending this day |
|
918 |
text_project_identifier_info: 'Only lower case letters (a-z), numbers and |
|
|
918 | text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.' | |
|
919 | 919 | text_caracters_maximum: "%{count} characters maximum." |
|
920 | 920 | text_caracters_minimum: "Must be at least %{count} characters long." |
|
921 | 921 | text_length_between: "Length between %{min} and %{max} characters." |
@@ -882,7 +882,7 fr: | |||
|
882 | 882 | text_tip_issue_begin_day: tâche commençant ce jour |
|
883 | 883 | text_tip_issue_end_day: tâche finissant ce jour |
|
884 | 884 | text_tip_issue_begin_end_day: tâche commençant et finissant ce jour |
|
885 |
text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres et |
|
|
885 | text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.' | |
|
886 | 886 | text_caracters_maximum: "%{count} caractères maximum." |
|
887 | 887 | text_caracters_minimum: "%{count} caractères minimum." |
|
888 | 888 | text_length_between: "Longueur comprise entre %{min} et %{max} caractères." |
General Comments 0
You need to be logged in to leave comments.
Login now