3 * FusionForge localisation
5 * Copyright 2007-2010, Roland Mas
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 * This file maps symbolic values to localised texts for the role permissions
27 require_once $gfcommon.'include/PluginManager.class.php';
28 require_once $gfcommon.'include/utils.php';
31 * Maps symbolic values to localised texts for the role permissions
33 function setup_rbac_strings () {
34 global $rbac_permission_names, $rbac_edit_section_names ;
36 if (!isset ($rbac_permission_names)) {
37 $rbac_permission_names = array () ;
39 if (!isset ($rbac_edit_section_names)) {
40 $rbac_edit_section_names = array () ;
43 $rbac_permission_names = array_replace_recursive ($rbac_permission_names,
45 'forge_admin0' => _('No administrative access'),
46 'forge_admin1' => _('Forge administration'),
47 'approve_projects0' => _('No access'),
48 'approve_projects1' => _('Approve projects'),
49 'approve_news0' => _('No access'),
50 'approve_news1' => _('Approve news'),
51 'forge_stats0' => _('No access'),
52 'forge_stats1' => _('Read access'),
53 'forge_stats2' => _('Admin forge stats'),
55 'project_read0' => _('Hidden'),
56 'project_read1' => _('Visible'),
57 'project_admin0' => _('No administrative access'),
58 'project_admin1' => _('Project administration'),
60 'tracker_admin0' => _('No administrative access'),
61 'tracker_admin1' => _('Trackers administration'),
62 'pm_admin0' => _('No administrative access'),
63 'pm_admin1' => _('Task managers administration'),
64 'forum_admin0' => _('No administrative access'),
65 'forum_admin1' => _('Forums administration'),
67 'tracker0' => _('No access'),
68 'tracker1' => _('Read only'),
69 'tracker2' => _('Technician (no read access, no submitting)'),
70 'tracker3' => _('Technician (no submitting)'),
71 'tracker4' => _('Manager (no read access, no submitting)'),
72 'tracker5' => _('Manager (no submitting)'),
73 'tracker6' => _('Tech & manager (no read access, no submitting)'),
74 'tracker7' => _('Tech & manager (no submitting)'),
75 'tracker8' => _('Submit only'),
76 'tracker9' => _('Read & submit'),
77 'tracker10' => _('Technician (no read access)'),
78 'tracker11' => _('Technician'),
79 'tracker12' => _('Manager (no read access)'),
80 'tracker13' => _('Manager'),
81 'tracker14' => _('Tech & manager (no read access)'),
82 'tracker15' => _('Tech & manager'),
83 'pm0' => _('No access'),
84 'pm1' => _('Read only'),
85 'pm2' => _('Technician (no read access)'),
86 'pm3' => _('Technician'),
87 'pm4' => _('Manager (no read access)'),
88 'pm5' => _('Manager'),
89 'pm6' => _('Tech & manager (no read access)'),
90 'pm7' => _('Tech & manager'),
91 'forum0' => _('No access'),
92 'forum1' => _('Read only'),
93 'forum2' => _('Moderated post'),
94 'forum3' => _('Unmoderated post'),
95 'forum4' => _('Moderation'),
97 'new_tracker0' => _('No access'),
98 'new_tracker1' => _('Read only'),
99 'new_tracker2' => _('Technician (no read access, no submitting)'),
100 'new_tracker3' => _('Technician (no submitting)'),
101 'new_tracker4' => _('Manager (no read access, no submitting)'),
102 'new_tracker5' => _('Manager (no submitting)'),
103 'new_tracker6' => _('Tech & manager (no read access, no submitting)'),
104 'new_tracker7' => _('Tech & manager (no submitting)'),
105 'new_tracker8' => _('Submit only'),
106 'new_tracker9' => _('Read & submit'),
107 'new_tracker10' => _('Technician (no read access)'),
108 'new_tracker11' => _('Technician'),
109 'new_tracker12' => _('Manager (no read access)'),
110 'new_tracker13' => _('Manager'),
111 'new_tracker14' => _('Tech & manager (no read access)'),
112 'new_tracker15' => _('Tech & manager'),
113 'new_pm0' => _('No access'),
114 'new_pm1' => _('Read only'),
115 'new_pm2' => _('Technician (no read access)'),
116 'new_pm3' => _('Technician'),
117 'new_pm4' => _('Manager (no read access)'),
118 'new_pm5' => _('Manager'),
119 'new_pm6' => _('Tech & manager (no read access)'),
120 'new_pm7' => _('Tech & manager'),
121 'new_forum0' => _('No access'),
122 'new_forum1' => _('Read only'),
123 'new_forum2' => _('Moderated post'),
124 'new_forum3' => _('Unmoderated post'),
125 'new_forum4' => _('Moderation'),
127 'scm0' => _('No access'),
128 'scm1' => _('Read only'),
129 'scm2' => _('Commit access'),
130 'docman0' => _('No access'),
131 'docman1' => _('Read only'),
132 'docman2' => _('Submit documents'),
133 'docman3' => _('Approve documents'),
134 'docman4' => _('Doc manager administration'),
135 'frs0' => _('No access'),
136 'frs1' => _('View public packages only'),
137 'frs2' => _('View all packages'),
138 'frs3' => _('Publish files'),
142 $rbac_edit_section_names = array_replace_recursive ($rbac_edit_section_names,
144 'forge_admin' => _('Forge administration'),
145 'approve_projects' => _('Approve projects'),
146 'approve_news' => _('Approve news'),
147 'forge_stats' => _('Forge statistics'),
149 'project_read' => _('Project visibility'),
150 'project_admin' => _('Project administration'),
152 'tracker_admin' => _('Trackers administration'),
153 'pm_admin' => _('Task managers administration'),
154 'forum_admin' => _('Forums administration'),
156 'tracker' => _('Tracker'),
158 'forum' => _('Forum'),
160 'new_tracker' => _('Default for new trackers'),
161 'new_pm' => _('Default for new task managers'),
162 'new_forum' => _('Default for new forums'),
165 'docman' => _('Documentation manager'),
170 plugin_hook ("role_translate_strings") ;
173 setup_rbac_strings () ;
177 // c-file-style: "bsd"