]> source.dussan.org Git - redmine.git/commitdiff
Localize anonymous and non member roles names (#8072).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 5 Apr 2011 22:37:45 +0000 (22:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 5 Apr 2011 22:37:45 +0000 (22:37 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5333 e93f8b46-1217-0410-a6f0-8f06a7374b81

46 files changed:
app/models/role.rb
config/locales/bg.yml
config/locales/bs.yml
config/locales/ca.yml
config/locales/cs.yml
config/locales/da.yml
config/locales/de.yml
config/locales/el.yml
config/locales/en-GB.yml
config/locales/en.yml
config/locales/es.yml
config/locales/eu.yml
config/locales/fa.yml
config/locales/fi.yml
config/locales/fr.yml
config/locales/gl.yml
config/locales/he.yml
config/locales/hr.yml
config/locales/hu.yml
config/locales/id.yml
config/locales/it.yml
config/locales/ja.yml
config/locales/ko.yml
config/locales/lt.yml
config/locales/lv.yml
config/locales/mk.yml
config/locales/mn.yml
config/locales/nl.yml
config/locales/no.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/locales/pt.yml
config/locales/ro.yml
config/locales/ru.yml
config/locales/sk.yml
config/locales/sl.yml
config/locales/sr-YU.yml
config/locales/sr.yml
config/locales/sv.yml
config/locales/th.yml
config/locales/tr.yml
config/locales/uk.yml
config/locales/vi.yml
config/locales/zh-TW.yml
config/locales/zh.yml
test/unit/role_test.rb

index 6a4b9e4e3b9d0e3c61e412eab091e1dab3ef0807..e0b18434eb936f051e7a5f97e209ebf1ef9e8812 100644 (file)
@@ -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
index 07c6696c9f5c2f412102fbc5644025647c4620ef..05a16ec4c11ea7a5f817abdd9365e4062cf54540 100644 (file)
@@ -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
index 4621500dbe1ffed111d3a79c7e69535bfddc0eff..03a7459074a1a1509b23d066f560e0d4f0858d28 100644 (file)
@@ -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
index b39f14cfdd6b72c035a3e52e3e3c7497660382ac..351a4e6bf8b2f282ed59e5251ca04c1a874674c5 100644 (file)
@@ -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
index a74239495c5afc4806255048b6ecd2aa53142d01..880b0cd2791da86aa049cf2827a0ecb913e129ef 100644 (file)
@@ -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
index dbbda7b6efda6c166eb059972b067591a22e1dbc..7c50ba54349e1b9b6cabc191e29e254f687dc314 100644 (file)
@@ -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
index 669399e3a687249f7387e1f775862b1c3ce8c171..a0aca66f2f3c2f09e0d70ff088145b332375faff 100644 (file)
@@ -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
index 595fec57f01125e49ce0fcb921d89f4e6a4cb950..9a44a0a349424c8fa11dcfde83f3a8cc9fa2aba0 100644 (file)
@@ -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
index be74724d116c4709454ef4299360222ec2d0d466..3b1a135473da987dd7247993757b2be195458c90 100644 (file)
@@ -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
index 49c2bdbb605ecf1bc53c85de1b622b1276f966c2..892f72f310f017d48531d9df5aeb9e95f5e4f62c 100644 (file)
@@ -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
index 64fc9e35f7b0cd60bc94f8e61eda0994fee136eb..c1f46522f8e769868ca6a1cb6ac5934c95fcdc69 100644 (file)
@@ -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
index 2ccb140b36a4dce4f2a232c3bfcddd70bd01e4cb..9b9bad4028b755942241601d2f3315981865139d 100644 (file)
@@ -951,3 +951,5 @@ eu:
   label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author\r
   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\r
+  label_role_non_member: Non member\r
index a6a85528b8c7fbddc71a7d0d985ff4ce9669a7ee..a9db2d8d1774d9bfd63be8d22d7a2e34dab7037b 100644 (file)
@@ -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
index 07223c4395b1bddb95f79a21f9a74476fe4ca445..4fac89512402d4df9320366687f42ce0db392043 100644 (file)
@@ -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
index 21268f3a23e8c0a79b6b516fbacc1ef2315165ea..e5b2c28c3d007a908b0c945cb7e741fd7725413a 100644 (file)
@@ -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
index 4bacae74f68badc875737433ad32064ecf71a300..3378be17a2f5c833bf273f760e659025d1f7a58a 100644 (file)
@@ -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
index 7251ef82961ad5699c95ca880fb9189cce15a2f7..9e4be720f202238f100358b40b04381e7a87ce9a 100644 (file)
@@ -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
index e37d4d4329190acfec550a2718ef33abe40bc561..11241747e7a93f1391ee343958b36889c754f6ee 100644 (file)
@@ -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
index 0e8cc3f60a78df7513e72d11a3008f942e0377de..69f749e90be89f47cdab47626eb5b71f72288014 100644 (file)
   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
index fb415bb1ae04960e0f836d9da4091cf6c9dd1708..fc683a67c805ca79b87d4b6225471cccd354ade7 100644 (file)
@@ -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
index ea0cedf3fee21fe736f33b36b230c6fd5d1c89b7..e6fcb1e36655d0f27ad11f837a822f584533a9bd 100644 (file)
@@ -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
index 0634c4aa8b14b2d755e12d785f2091bd4ded6f45..9b01828b87431f6f85db289c3b2f85220eaf1070 100644 (file)
@@ -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
index cadabff4e22ca442befbb5df80cbafdb2c279b7c..6f208972a9e3aeaaf480f482196838d157d84293 100644 (file)
@@ -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
index 1d835d00c902a36046e5ae9fad39a8ca581675b9..3d9b4b9c013deb59b9cd17767a37bf669745c12d 100644 (file)
@@ -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
index 319edf017e47532909c08e27762c0b3fb4ddf995..025dea1ac40b710a3729e3e18a1d1e0f355be0bd 100644 (file)
@@ -942,3 +942,5 @@ lv:
   label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author\r
   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\r
+  label_role_non_member: Non member\r
index 44cce07db379db621e22e23750052e9c2bf889c0..20e07c5e3fdfbb004a5f699eab923195bb34ef20 100644 (file)
@@ -947,3 +947,5 @@ mk:
   label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author\r
   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\r
+  label_role_non_member: Non member\r
index 55296eb6585e4c52c45da5fc024caebbd830b78c..2e0fcb4cc08d3f9be692682202fb032ecfba60e0 100644 (file)
@@ -948,3 +948,5 @@ mn:
   label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author\r
   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\r
+  label_role_non_member: Non member\r
index 012b96fe23cc058632a0abf559b8d87b559d3832..4f9cf5a4c3db6b7365b4e024df42a4dae82b7e36 100644 (file)
@@ -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
index dd0f2f13e875d5049f17d208d9dfb2f7428f2379..9066cd43c70a693e51291176d758526aae2bcdaf 100644 (file)
   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
index 062532135c3abceb5393dd34c15216dfa54ced4f..ad52ee97a6edd58e043b55a82396dac037e2e635 100644 (file)
@@ -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
index 8b39b9f158c336853241c0dc02cad6b920f30c3a..d0a9ae8ea26f3d30db82674256cee386e010abdb 100644 (file)
@@ -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
index 1b12f9a11afd990ad50ecf923ceb85c0837afa60..4ede8c49424713059363ff8a5749df7510c58a93 100644 (file)
@@ -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
index dc86f3e0f9c79ccb2f3b1d296447301715366f5f..24a6d15dae2de9de1020fe5f67077be8989b6c96 100644 (file)
@@ -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
index d399a68a162789927989d9b1e125847b2ce85882..817f4e2e926fd4a47044722ad32e257831759827 100644 (file)
@@ -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
index 43ab7ed1276ffe4e7ffa3339c52b72bf99bff28a..c21d4a533d41cb6c0d5637f9ad518339f03f9b3f 100644 (file)
@@ -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
index 6db69b670aa84c6a05abf6b02f54405596013ff3..c3ebd5e9e47a83d7a48abe26c7fdc4b89e59b4b6 100644 (file)
@@ -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
index 9a2412bebbd656a33236080843fb56138336a279..ad6f2e4e1d9dc1e8534679431eb205d0e2eb6799 100644 (file)
@@ -947,3 +947,5 @@ sr-YU:
   label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author\r
   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\r
+  label_role_non_member: Non member\r
index 7e33dedafef68e1ced5c6d28d5f316effdc07df7..9acd1aff367cde18ca82060e3dd87e1e2aeff249 100644 (file)
@@ -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
index ed8312a973a394c95ffa599d703a8bdf72fce3d7..3255c8898ad1b3b41c25f3b5f646c977ff34af97 100644 (file)
@@ -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
index 1e6ff795ee158d53ec10a5edb234d41736137126..cae6b73ff1957f6729564b255f91676fa7f2be45 100644 (file)
@@ -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
index 98a10e4493c21a10aa66b06557a9c67c19aa2b55..611095286afe792f9af07c75a85ea14909b423fe 100644 (file)
@@ -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
index 378cc3af74ef459bccbc2cc99598d94de6ea56a9..3503dc0cdac9959f5401f6f897f9221c54b90fba 100644 (file)
@@ -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
index 823ba1871bd8121a63dda80933c6bf37fb8cc8aa..e56477abbfe4737787400f268f175aa187bd8b9e 100644 (file)
@@ -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
index 89444bb12f4cb65f8fd4835db99ba04ecba46404..66b37f6277d6d29aefba7ca3a490aec4c36477c7 100644 (file)
   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
index e51803aad0506bac68f7f685a3c8249c9140b4ad..b84c711e8af230d511444f3999ce9ddf3e6c59a9 100644 (file)
@@ -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
index 41ad7e8831112bddb437052c1bddf01f5b727f4f..225219ee940448388ca1dea5f1491bf0bff1d9a3 100644 (file)
@@ -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