3 * FusionForge localisation
5 * Copyright 2007-2010, Roland Mas
7 * This file is part of FusionForge.
9 * FusionForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published
11 * by the Free Software Foundation; either version 2 of the License,
12 * or (at your option) any later version.
14 * FusionForge is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FusionForge; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 * This file maps symbolic values to localised texts for the role permissions
29 function setup_rbac_strings () {
30 global $rbac_permission_names, $rbac_edit_section_names ;
31 $rbac_permission_names = array (
32 'frspackage0' => _('Private'),
33 'frspackage1' => _('Public'),
34 'frspackage' => _('File Release System'),
35 'projectpublic0' => _('Private'),
36 'projectpublic1' => _('Public'),
37 'scmpublic0' => _('Private'),
38 'scmpublic1' => _('Public (PServer)'),
39 'forumpublic0' => _('Private'),
40 'forumpublic1' => _('Public'),
41 'forumanon0' => _('No Anonymous Posts'),
42 'forumanon1' => _('Allow Anonymous Posts'),
43 'pmpublic0' => _('Private'),
44 'pmpublic1' => _('Public'),
45 'trackerpublic0' => _('Private'),
46 'trackerpublic1' => _('Public'),
47 'trackeranon0' => _('No Anonymous Posts'),
48 'trackeranon1' => _('Allow Anonymous Posts'),
51 'scm-1' => _('No Access'),
54 'forum-1' => _('No Access'),
55 'forum0' => _('Read'),
56 'forum1' => _('Post'),
57 'forum2' => _('Admin'),
58 'tracker-1' => _('No Access'),
59 'tracker0' => _('Read'),
60 'tracker1' => _('Tech'),
61 'tracker2' => _('Tech & Admin'),
62 'tracker3' => _('Admin Only'),
63 'pm-1' => _('No Access'),
66 'pm2' => _('Tech & Admin'),
67 'pm3' => _('Admin Only'),
68 'docman0' => _('Read/Post'),
69 'docman1' => _('Admin'),
70 'projectadmin0' => _('None'),
71 'projectadminA' => _('Admin'),
72 'pmadmin0' => _('None'),
73 'pmadmin2' => _('Admin'),
74 'forumadmin0' => _('None'),
75 'forumadmin2' => _('Admin'),
76 'trackeradmin0' => _('None'),
77 'trackeradmin2' => _('Admin'),
78 'webcal2' => _('See'),
79 'webcal1' => _('Modify'),
80 'webcal0' => _('No access')
83 $rbac_edit_section_names = array (
84 'forum' => _('Forum'),
85 'newforum' => _('Default for new forums'),
86 'forumpublic' => _('Forum'),
87 'forumanon' => _('Anonymous Forum'),
88 'forumadmin' => _('Forum Admin'),
90 'newpm' => _('Default for new tasks'),
91 'pmpublic' => _('Tasks'),
92 'pmadmin' => _('Tasks Admin'),
93 'projectpublic' => _('Project'),
94 'tracker' => _('Tracker'),
95 'newtracker' => _('Default for new trackers'),
96 'trackerpublic' => _('Tracker'),
97 'trackeranon' => _('Anonymous Tracker'),
98 'trackeradmin' => _('Tracker Admin'),
99 'frs' => _('File Release System'),
100 'frspackage' => _('Files'),
101 'webcal' => _('Webcal'),
102 'projectadmin' => _('Project Admin'),
104 'scmpublic' => _('SCM'),
105 'docman' => _('Documentation Manager'),
109 setup_rbac_strings () ;
113 // c-file-style: "bsd"