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)'),
70 'tracker3' => _('Technician'),
71 'tracker4' => _('Manager (no read access)'),
72 'tracker5' => _('Manager'),
73 'tracker6' => _('Tech & manager (no read access)'),
74 'tracker7' => _('Tech & manager'),
75 'pm0' => _('No access'),
76 'pm1' => _('Read only'),
77 'pm2' => _('Technician (no read access)'),
78 'pm3' => _('Technician'),
79 'pm4' => _('Manager (no read access)'),
80 'pm5' => _('Manager'),
81 'pm6' => _('Tech & manager (no read access)'),
82 'pm7' => _('Tech & manager'),
83 'forum0' => _('No access'),
84 'forum1' => _('Read only'),
85 'forum2' => _('Moderated post'),
86 'forum3' => _('Unmoderated post'),
87 'forum4' => _('Moderation'),
89 'new_tracker0' => _('No access'),
90 'new_tracker1' => _('Read only'),
91 'new_tracker2' => _('Technician (no read access)'),
92 'new_tracker3' => _('Technician'),
93 'new_tracker4' => _('Manager (no read access)'),
94 'new_tracker5' => _('Manager'),
95 'new_tracker6' => _('Tech & manager (no read access)'),
96 'new_tracker7' => _('Tech & manager'),
97 'new_pm0' => _('No access'),
98 'new_pm1' => _('Read only'),
99 'new_pm2' => _('Technician (no read access)'),
100 'new_pm3' => _('Technician'),
101 'new_pm4' => _('Manager (no read access)'),
102 'new_pm5' => _('Manager'),
103 'new_pm6' => _('Tech & manager (no read access)'),
104 'new_pm7' => _('Tech & manager'),
105 'new_forum0' => _('No access'),
106 'new_forum1' => _('Read only'),
107 'new_forum2' => _('Moderated post'),
108 'new_forum3' => _('Unmoderated post'),
109 'new_forum4' => _('Moderation'),
111 'scm0' => _('No access'),
112 'scm1' => _('Read only'),
113 'scm2' => _('Commit access'),
114 'docman0' => _('No access'),
115 'docman1' => _('Read only'),
116 'docman2' => _('Submit documents'),
117 'docman3' => _('Approve documents'),
118 'docman4' => _('Doc manager administration'),
119 'frs0' => _('No access'),
120 'frs1' => _('View public packages only'),
121 'frs2' => _('View all packages'),
122 'frs3' => _('Publish files'),
124 // 'webcal0' => _('No access'),
125 // 'webcal1' => _('Modify'),
126 // 'webcal2' => _('See'),
130 $rbac_edit_section_names = array_replace_recursive ($rbac_edit_section_names,
132 'forge_admin' => _('Forge administration'),
133 'approve_projects' => _('Approve projects'),
134 'approve_news' => _('Approve news'),
135 'forge_stats' => _('Forge statistics'),
137 'project_read' => _('Project visibility'),
138 'project_admin' => _('Project administration'),
140 'tracker_admin' => _('Trackers administration'),
141 'pm_admin' => _('Task managers administration'),
142 'forum_admin' => _('Forums administration'),
144 'tracker' => _('Tracker'),
146 'forum' => _('Forum'),
148 'new_tracker' => _('Default for new trackers'),
149 'new_pm' => _('Default for new task managers'),
150 'new_forum' => _('Default for new forums'),
153 'docman' => _('Documentation manager'),
156 // 'webcal' => _('Webcal'),
159 plugin_hook ("role_translate_strings") ;
162 setup_rbac_strings () ;
166 // c-file-style: "bsd"