summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/role.rb12
-rw-r--r--config/locales/bg.yml2
-rw-r--r--config/locales/bs.yml2
-rw-r--r--config/locales/ca.yml2
-rw-r--r--config/locales/cs.yml2
-rw-r--r--config/locales/da.yml2
-rw-r--r--config/locales/de.yml2
-rw-r--r--config/locales/el.yml2
-rw-r--r--config/locales/en-GB.yml2
-rw-r--r--config/locales/en.yml2
-rw-r--r--config/locales/es.yml2
-rw-r--r--config/locales/eu.yml2
-rw-r--r--config/locales/fa.yml2
-rw-r--r--config/locales/fi.yml2
-rw-r--r--config/locales/fr.yml2
-rw-r--r--config/locales/gl.yml2
-rw-r--r--config/locales/he.yml2
-rw-r--r--config/locales/hr.yml2
-rw-r--r--config/locales/hu.yml2
-rw-r--r--config/locales/id.yml2
-rw-r--r--config/locales/it.yml2
-rw-r--r--config/locales/ja.yml2
-rw-r--r--config/locales/ko.yml2
-rw-r--r--config/locales/lt.yml2
-rw-r--r--config/locales/lv.yml2
-rw-r--r--config/locales/mk.yml2
-rw-r--r--config/locales/mn.yml2
-rw-r--r--config/locales/nl.yml2
-rw-r--r--config/locales/no.yml2
-rw-r--r--config/locales/pl.yml2
-rw-r--r--config/locales/pt-BR.yml2
-rw-r--r--config/locales/pt.yml2
-rw-r--r--config/locales/ro.yml2
-rw-r--r--config/locales/ru.yml2
-rw-r--r--config/locales/sk.yml2
-rw-r--r--config/locales/sl.yml2
-rw-r--r--config/locales/sr-YU.yml2
-rw-r--r--config/locales/sr.yml2
-rw-r--r--config/locales/sv.yml2
-rw-r--r--config/locales/th.yml2
-rw-r--r--config/locales/tr.yml2
-rw-r--r--config/locales/uk.yml2
-rw-r--r--config/locales/vi.yml2
-rw-r--r--config/locales/zh-TW.yml2
-rw-r--r--config/locales/zh.yml2
-rw-r--r--test/unit/role_test.rb11
46 files changed, 107 insertions, 4 deletions
diff --git a/app/models/role.rb b/app/models/role.rb
index 6a4b9e4e3..e0b18434e 100644
--- a/app/models/role.rb
+++ b/app/models/role.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -84,6 +84,14 @@ class Role < ActiveRecord::Base
name
end
+ def name
+ case builtin
+ when 1; l(:label_role_non_member, :default => read_attribute(:name))
+ when 2; l(:label_role_anonymous, :default => read_attribute(:name))
+ else; read_attribute(:name)
+ end
+ end
+
# Return true if the role is a builtin role
def builtin?
self.builtin != 0
diff --git a/config/locales/bg.yml b/config/locales/bg.yml
index 07c6696c9..05a16ec4c 100644
--- a/config/locales/bg.yml
+++ b/config/locales/bg.yml
@@ -947,3 +947,5 @@ bg:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/bs.yml b/config/locales/bs.yml
index 4621500db..03a745907 100644
--- a/config/locales/bs.yml
+++ b/config/locales/bs.yml
@@ -961,3 +961,5 @@ bs:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/ca.yml b/config/locales/ca.yml
index b39f14cfd..351a4e6bf 100644
--- a/config/locales/ca.yml
+++ b/config/locales/ca.yml
@@ -950,3 +950,5 @@ ca:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/cs.yml b/config/locales/cs.yml
index a74239495..880b0cd27 100644
--- a/config/locales/cs.yml
+++ b/config/locales/cs.yml
@@ -951,3 +951,5 @@ cs:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/da.yml b/config/locales/da.yml
index dbbda7b6e..7c50ba543 100644
--- a/config/locales/da.yml
+++ b/config/locales/da.yml
@@ -963,3 +963,5 @@ da:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 669399e3a..a0aca66f2 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -964,3 +964,5 @@ de:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/el.yml b/config/locales/el.yml
index 595fec57f..9a44a0a34 100644
--- a/config/locales/el.yml
+++ b/config/locales/el.yml
@@ -947,3 +947,5 @@ el:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml
index be74724d1..3b1a13547 100644
--- a/config/locales/en-GB.yml
+++ b/config/locales/en-GB.yml
@@ -463,6 +463,8 @@ en-GB:
label_role_plural: Roles
label_role_new: New role
label_role_and_permissions: Roles and permissions
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
label_member: Member
label_member_new: New member
label_member_plural: Members
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 49c2bdbb6..892f72f31 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -459,6 +459,8 @@ en:
label_role_plural: Roles
label_role_new: New role
label_role_and_permissions: Roles and permissions
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
label_member: Member
label_member_new: New member
label_member_plural: Members
diff --git a/config/locales/es.yml b/config/locales/es.yml
index 64fc9e35f..c1f46522f 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -984,3 +984,5 @@ es:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/eu.yml b/config/locales/eu.yml
index 2ccb140b3..9b9bad402 100644
--- a/config/locales/eu.yml
+++ b/config/locales/eu.yml
@@ -951,3 +951,5 @@ eu:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/fa.yml b/config/locales/fa.yml
index a6a85528b..a9db2d8d1 100644
--- a/config/locales/fa.yml
+++ b/config/locales/fa.yml
@@ -950,3 +950,5 @@ fa:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/fi.yml b/config/locales/fi.yml
index 07223c439..4fac89512 100644
--- a/config/locales/fi.yml
+++ b/config/locales/fi.yml
@@ -968,3 +968,5 @@ fi:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 21268f3a2..e5b2c28c3 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -462,6 +462,8 @@ fr:
label_role_plural: Rôles
label_role_new: Nouveau rôle
label_role_and_permissions: Rôles et permissions
+ label_role_anonymous: Anonyme
+ label_role_non_member: Non membre
label_member: Membre
label_member_new: Nouveau membre
label_member_plural: Membres
diff --git a/config/locales/gl.yml b/config/locales/gl.yml
index 4bacae74f..3378be17a 100644
--- a/config/locales/gl.yml
+++ b/config/locales/gl.yml
@@ -959,3 +959,5 @@ gl:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/he.yml b/config/locales/he.yml
index 7251ef829..9e4be720f 100644
--- a/config/locales/he.yml
+++ b/config/locales/he.yml
@@ -952,3 +952,5 @@ he:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/hr.yml b/config/locales/hr.yml
index e37d4d432..11241747e 100644
--- a/config/locales/hr.yml
+++ b/config/locales/hr.yml
@@ -954,3 +954,5 @@ hr:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/hu.yml b/config/locales/hu.yml
index 0e8cc3f60..69f749e90 100644
--- a/config/locales/hu.yml
+++ b/config/locales/hu.yml
@@ -966,3 +966,5 @@
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/id.yml b/config/locales/id.yml
index fb415bb1a..fc683a67c 100644
--- a/config/locales/id.yml
+++ b/config/locales/id.yml
@@ -955,3 +955,5 @@ id:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/it.yml b/config/locales/it.yml
index ea0cedf3f..e6fcb1e36 100644
--- a/config/locales/it.yml
+++ b/config/locales/it.yml
@@ -948,3 +948,5 @@ it:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/ja.yml b/config/locales/ja.yml
index 0634c4aa8..9b01828b8 100644
--- a/config/locales/ja.yml
+++ b/config/locales/ja.yml
@@ -968,3 +968,5 @@ ja:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/ko.yml b/config/locales/ko.yml
index cadabff4e..6f208972a 100644
--- a/config/locales/ko.yml
+++ b/config/locales/ko.yml
@@ -999,3 +999,5 @@ ko:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/lt.yml b/config/locales/lt.yml
index 1d835d00c..3d9b4b9c0 100644
--- a/config/locales/lt.yml
+++ b/config/locales/lt.yml
@@ -1007,3 +1007,5 @@ lt:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/lv.yml b/config/locales/lv.yml
index 319edf017..025dea1ac 100644
--- a/config/locales/lv.yml
+++ b/config/locales/lv.yml
@@ -942,3 +942,5 @@ lv:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/mk.yml b/config/locales/mk.yml
index 44cce07db..20e07c5e3 100644
--- a/config/locales/mk.yml
+++ b/config/locales/mk.yml
@@ -947,3 +947,5 @@ mk:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/mn.yml b/config/locales/mn.yml
index 55296eb65..2e0fcb4cc 100644
--- a/config/locales/mn.yml
+++ b/config/locales/mn.yml
@@ -948,3 +948,5 @@ mn:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index 012b96fe2..4f9cf5a4c 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -929,3 +929,5 @@ nl:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/no.yml b/config/locales/no.yml
index dd0f2f13e..9066cd43c 100644
--- a/config/locales/no.yml
+++ b/config/locales/no.yml
@@ -934,3 +934,5 @@
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/pl.yml b/config/locales/pl.yml
index 062532135..ad52ee97a 100644
--- a/config/locales/pl.yml
+++ b/config/locales/pl.yml
@@ -964,3 +964,5 @@ pl:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml
index 8b39b9f15..d0a9ae8ea 100644
--- a/config/locales/pt-BR.yml
+++ b/config/locales/pt-BR.yml
@@ -970,3 +970,5 @@ pt-BR:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/pt.yml b/config/locales/pt.yml
index 1b12f9a11..4ede8c494 100644
--- a/config/locales/pt.yml
+++ b/config/locales/pt.yml
@@ -951,3 +951,5 @@ pt:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/ro.yml b/config/locales/ro.yml
index dc86f3e0f..24a6d15da 100644
--- a/config/locales/ro.yml
+++ b/config/locales/ro.yml
@@ -940,3 +940,5 @@ ro:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/ru.yml b/config/locales/ru.yml
index d399a68a1..817f4e2e9 100644
--- a/config/locales/ru.yml
+++ b/config/locales/ru.yml
@@ -1060,3 +1060,5 @@ ru:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/sk.yml b/config/locales/sk.yml
index 43ab7ed12..c21d4a533 100644
--- a/config/locales/sk.yml
+++ b/config/locales/sk.yml
@@ -942,3 +942,5 @@ sk:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/sl.yml b/config/locales/sl.yml
index 6db69b670..c3ebd5e9e 100644
--- a/config/locales/sl.yml
+++ b/config/locales/sl.yml
@@ -943,3 +943,5 @@ sl:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/sr-YU.yml b/config/locales/sr-YU.yml
index 9a2412beb..ad6f2e4e1 100644
--- a/config/locales/sr-YU.yml
+++ b/config/locales/sr-YU.yml
@@ -947,3 +947,5 @@ sr-YU:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/sr.yml b/config/locales/sr.yml
index 7e33dedaf..9acd1aff3 100644
--- a/config/locales/sr.yml
+++ b/config/locales/sr.yml
@@ -948,3 +948,5 @@ sr:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/sv.yml b/config/locales/sv.yml
index ed8312a97..3255c8898 100644
--- a/config/locales/sv.yml
+++ b/config/locales/sv.yml
@@ -988,3 +988,5 @@ sv:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/th.yml b/config/locales/th.yml
index 1e6ff795e..cae6b73ff 100644
--- a/config/locales/th.yml
+++ b/config/locales/th.yml
@@ -944,3 +944,5 @@ th:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/tr.yml b/config/locales/tr.yml
index 98a10e449..611095286 100644
--- a/config/locales/tr.yml
+++ b/config/locales/tr.yml
@@ -966,3 +966,5 @@ tr:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/uk.yml b/config/locales/uk.yml
index 378cc3af7..3503dc0cd 100644
--- a/config/locales/uk.yml
+++ b/config/locales/uk.yml
@@ -943,3 +943,5 @@ uk:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/vi.yml b/config/locales/vi.yml
index 823ba1871..e56477abb 100644
--- a/config/locales/vi.yml
+++ b/config/locales/vi.yml
@@ -998,3 +998,5 @@ vi:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml
index 89444bb12..66b37f627 100644
--- a/config/locales/zh-TW.yml
+++ b/config/locales/zh-TW.yml
@@ -1029,3 +1029,5 @@
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index e51803aad..b84c711e8 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -961,3 +961,5 @@ zh:
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
+ label_role_anonymous: Anonymous
+ label_role_non_member: Non member
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index 41ad7e883..225219ee9 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006-2008 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -49,6 +49,13 @@ class RoleTest < ActiveSupport::TestCase
assert ! role.permissions.include?(perm[0])
assert_equal size - 2, role.permissions.size
end
+
+ def test_name
+ I18n.locale = 'fr'
+ assert_equal 'Manager', Role.find(1).name
+ assert_equal 'Anonyme', Role.anonymous.name
+ assert_equal 'Non membre', Role.non_member.name
+ end
context "#anonymous" do
should "return the anonymous role" do