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 require_once $gfcommon.'include/PluginManager.class.php';
31 function setup_rbac_strings () {
32 global $rbac_permission_names, $rbac_edit_section_names ;
33 $rbac_permission_names = array_replace_recursive ($rbac_permission_names,
35 'frspackage0' => _('Private'),
36 'frspackage1' => _('Public'),
37 'frspackage' => _('File Release System'),
38 'projectpublic0' => _('Private'),
39 'projectpublic1' => _('Public'),
40 'scmpublic0' => _('Private'),
41 'scmpublic1' => _('Public (PServer)'),
42 'forumpublic0' => _('Private'),
43 'forumpublic1' => _('Public'),
44 'forumanon0' => _('No Anonymous Posts'),
45 'forumanon1' => _('Allow Anonymous Posts'),
46 'pmpublic0' => _('Private'),
47 'pmpublic1' => _('Public'),
48 'trackerpublic0' => _('Private'),
49 'trackerpublic1' => _('Public'),
50 'trackeranon0' => _('No Anonymous Posts'),
51 'trackeranon1' => _('Allow Anonymous Posts'),
54 'scm-1' => _('No Access'),
57 'forum-1' => _('No Access'),
58 'forum0' => _('Read'),
59 'forum1' => _('Post'),
60 'forum2' => _('Admin'),
61 'tracker-1' => _('No Access'),
62 'tracker0' => _('Read'),
63 'tracker1' => _('Tech'),
64 'tracker2' => _('Tech & Admin'),
65 'tracker3' => _('Admin Only'),
66 'pm-1' => _('No Access'),
69 'pm2' => _('Tech & Admin'),
70 'pm3' => _('Admin Only'),
71 'docman0' => _('Read/Post'),
72 'docman1' => _('Admin'),
73 'projectadmin0' => _('None'),
74 'projectadminA' => _('Admin'),
75 'pmadmin0' => _('None'),
76 'pmadmin2' => _('Admin'),
77 'forumadmin0' => _('None'),
78 'forumadmin2' => _('Admin'),
79 'trackeradmin0' => _('None'),
80 'trackeradmin2' => _('Admin'),
81 'webcal2' => _('See'),
82 'webcal1' => _('Modify'),
83 'webcal0' => _('No access')
87 $rbac_edit_section_names = array_replace_recursive ($rbac_edit_section_names,
89 'forum' => _('Forum'),
90 'newforum' => _('Default for new forums'),
91 'forumpublic' => _('Forum'),
92 'forumanon' => _('Anonymous Forum'),
93 'forumadmin' => _('Forum Admin'),
95 'newpm' => _('Default for new tasks'),
96 'pmpublic' => _('Tasks'),
97 'pmadmin' => _('Tasks Admin'),
98 'projectpublic' => _('Project'),
99 'tracker' => _('Tracker'),
100 'newtracker' => _('Default for new trackers'),
101 'trackerpublic' => _('Tracker'),
102 'trackeranon' => _('Anonymous Tracker'),
103 'trackeradmin' => _('Tracker Admin'),
104 'frs' => _('File Release System'),
105 'frspackage' => _('Files'),
106 'webcal' => _('Webcal'),
107 'projectadmin' => _('Project Admin'),
109 'scmpublic' => _('SCM'),
110 'docman' => _('Documentation Manager'),
114 plugin_hook ("role_translate_strings") ;
117 setup_rbac_strings () ;
121 // c-file-style: "bsd"