Issue #1803790: moved i18n from ferry_basic Feature to ferry_i18n
[project/ferry.git] / modules / features / ferry_i18n / ferry_i18n.features.user_permission.inc
1 <?php
2 /**
3 * @file
4 * ferry_i18n.features.user_permission.inc
5 */
6
7 /**
8 * Implements hook_user_default_permissions().
9 */
10 function ferry_i18n_user_default_permissions() {
11 $permissions = array();
12
13 // Exported permission: administer content translations.
14 $permissions['administer content translations'] = array(
15 'name' => 'administer content translations',
16 'roles' => array(
17 0 => 'administrator',
18 1 => 'editor-in-chief',
19 ),
20 'module' => 'i18n_node',
21 );
22
23 // Exported permission: administer languages.
24 $permissions['administer languages'] = array(
25 'name' => 'administer languages',
26 'roles' => array(
27 0 => 'administrator',
28 ),
29 'module' => 'locale',
30 );
31
32 // Exported permission: manage en translation overview priorities.
33 $permissions['manage en translation overview priorities'] = array(
34 'name' => 'manage en translation overview priorities',
35 'roles' => array(
36 0 => 'administrator',
37 ),
38 'module' => 'translation_overview',
39 );
40
41 // Exported permission: translate admin strings.
42 $permissions['translate admin strings'] = array(
43 'name' => 'translate admin strings',
44 'roles' => array(
45 0 => 'administrator',
46 ),
47 'module' => 'i18n_string',
48 );
49
50 // Exported permission: translate content.
51 $permissions['translate content'] = array(
52 'name' => 'translate content',
53 'roles' => array(
54 0 => 'administrator',
55 1 => 'editor',
56 2 => 'editor-in-chief',
57 ),
58 'module' => 'translation',
59 );
60
61 // Exported permission: translate interface.
62 $permissions['translate interface'] = array(
63 'name' => 'translate interface',
64 'roles' => array(
65 0 => 'administrator',
66 1 => 'editor',
67 2 => 'editor-in-chief',
68 ),
69 'module' => 'locale',
70 );
71
72 // Exported permission: translate user-defined strings.
73 $permissions['translate user-defined strings'] = array(
74 'name' => 'translate user-defined strings',
75 'roles' => array(
76 0 => 'administrator',
77 1 => 'editor',
78 2 => 'editor-in-chief',
79 ),
80 'module' => 'i18n_string',
81 );
82
83 // Exported permission: view translation overview assigments.
84 $permissions['view translation overview assigments'] = array(
85 'name' => 'view translation overview assigments',
86 'roles' => array(
87 0 => 'administrator',
88 1 => 'editor-in-chief',
89 ),
90 'module' => 'translation_overview',
91 );
92
93 return $permissions;
94 }