Révision e0d35157
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/i18n/i18n.info | ||
---|---|---|
8 | 8 |
files[] = i18n.test |
9 | 9 |
configure = admin/config/regional/i18n |
10 | 10 |
|
11 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
12 |
version = "7.x-1.18"
|
|
11 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
12 |
version = "7.x-1.22"
|
|
13 | 13 |
core = "7.x" |
14 | 14 |
project = "i18n" |
15 |
datestamp = "1497704047"
|
|
15 |
datestamp = "1511689989"
|
|
16 | 16 |
|
drupal7/sites/all/modules/i18n/i18n.module | ||
---|---|---|
198 | 198 |
*/ |
199 | 199 |
function i18n_language_list($field = 'name', $mode = NULL) { |
200 | 200 |
$mode = isset($mode) ? $mode : variable_get('i18n_language_list', I18N_LANGUAGE_ENABLED); |
201 |
return locale_language_list($field, I18N_LANGUAGE_EXTENDED & $mode); |
|
201 |
$all = I18N_LANGUAGE_EXTENDED & $mode; |
|
202 |
return locale_language_list($field, $all); |
|
202 | 203 |
} |
203 | 204 |
|
204 | 205 |
/** |
drupal7/sites/all/modules/i18n/i18n_block/i18n_block.info | ||
---|---|---|
8 | 8 |
files[] = i18n_block.test |
9 | 9 |
|
10 | 10 |
|
11 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
12 |
version = "7.x-1.18"
|
|
11 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
12 |
version = "7.x-1.22"
|
|
13 | 13 |
core = "7.x" |
14 | 14 |
project = "i18n" |
15 |
datestamp = "1497704047"
|
|
15 |
datestamp = "1511689989"
|
|
16 | 16 |
|
drupal7/sites/all/modules/i18n/i18n_block/i18n_block.module | ||
---|---|---|
37 | 37 |
return $items; |
38 | 38 |
} |
39 | 39 |
|
40 |
/** |
|
41 |
* Implements hook_permission(). |
|
42 |
*/ |
|
43 |
function i18n_block_permission() { |
|
44 |
return array( |
|
45 |
'translate blocks' => array( |
|
46 |
'title' => t('Translate Blocks'), |
|
47 |
), |
|
48 |
); |
|
49 |
} |
|
50 |
|
|
40 | 51 |
/** |
41 | 52 |
* Implement hook_menu_alter(). |
42 | 53 |
* |
... | ... | |
59 | 70 |
*/ |
60 | 71 |
function i18n_block_translate_tab_access($module, $delta) { |
61 | 72 |
$block = block_load($module, $delta); |
62 |
return user_access('translate interface') && $block && isset($block->i18n_mode) && ($block->i18n_mode == I18N_MODE_LOCALIZE);
|
|
73 |
return (user_access('translate interface') || user_access('translate blocks')) && $block && isset($block->i18n_mode) && ($block->i18n_mode == I18N_MODE_LOCALIZE);
|
|
63 | 74 |
} |
64 | 75 |
|
65 | 76 |
/** |
... | ... | |
226 | 237 |
'#options' => i18n_language_list(), |
227 | 238 |
'#description' => t('If no language is selected, block will show regardless of language.'), |
228 | 239 |
); |
229 |
if (user_access('translate interface')) { |
|
240 |
if (user_access('translate interface') || user_access('translate blocks')) {
|
|
230 | 241 |
$form['actions']['translate'] = array( |
231 | 242 |
'#type' => 'submit', |
232 | 243 |
'#name' => 'save_translate', |
drupal7/sites/all/modules/i18n/i18n_contact/i18n_contact.info | ||
---|---|---|
5 | 5 |
package = Multilingual - Internationalization |
6 | 6 |
core = 7.x |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
9 |
version = "7.x-1.18"
|
|
8 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
9 |
version = "7.x-1.22"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "i18n" |
12 |
datestamp = "1497704047"
|
|
12 |
datestamp = "1511689989"
|
|
13 | 13 |
|
drupal7/sites/all/modules/i18n/i18n_field/i18n_field.info | ||
---|---|---|
6 | 6 |
core = 7.x |
7 | 7 |
files[] = i18n_field.inc |
8 | 8 |
files[] = i18n_field.test |
9 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
10 |
version = "7.x-1.18"
|
|
9 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
10 |
version = "7.x-1.22"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "i18n" |
13 |
datestamp = "1497704047"
|
|
13 |
datestamp = "1511689989"
|
|
14 | 14 |
|
drupal7/sites/all/modules/i18n/i18n_forum/i18n_forum.info | ||
---|---|---|
7 | 7 |
core = 7.x |
8 | 8 |
files[] = i18n_forum.test |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
11 |
version = "7.x-1.18"
|
|
10 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
11 |
version = "7.x-1.22"
|
|
12 | 12 |
core = "7.x" |
13 | 13 |
project = "i18n" |
14 |
datestamp = "1497704047"
|
|
14 |
datestamp = "1511689989"
|
|
15 | 15 |
|
drupal7/sites/all/modules/i18n/i18n_menu/i18n_menu.info | ||
---|---|---|
10 | 10 |
files[] = i18n_menu.inc |
11 | 11 |
files[] = i18n_menu.test |
12 | 12 |
|
13 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
14 |
version = "7.x-1.18"
|
|
13 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
14 |
version = "7.x-1.22"
|
|
15 | 15 |
core = "7.x" |
16 | 16 |
project = "i18n" |
17 |
datestamp = "1497704047"
|
|
17 |
datestamp = "1511689989"
|
|
18 | 18 |
|
drupal7/sites/all/modules/i18n/i18n_node/i18n_node.info | ||
---|---|---|
9 | 9 |
files[]=i18n_node.test |
10 | 10 |
files[]=i18n_node.variable.inc |
11 | 11 |
|
12 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
13 |
version = "7.x-1.18"
|
|
12 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
13 |
version = "7.x-1.22"
|
|
14 | 14 |
core = "7.x" |
15 | 15 |
project = "i18n" |
16 |
datestamp = "1497704047"
|
|
16 |
datestamp = "1511689989"
|
|
17 | 17 |
|
drupal7/sites/all/modules/i18n/i18n_node/i18n_node.module | ||
---|---|---|
273 | 273 |
* Handles links for extended languages. Sets current interface language. |
274 | 274 |
*/ |
275 | 275 |
function i18n_node_node_view_alter(&$build) { |
276 |
$node = $build['#node']; |
|
276 |
if (isset($build['#node'])) { |
|
277 |
$node = $build['#node']; |
|
278 |
} |
|
277 | 279 |
// Hide node translation links. |
278 | 280 |
if (variable_get('i18n_hide_translation_links', 0)) { |
279 | 281 |
if (isset($build['links']['translation'])) { |
drupal7/sites/all/modules/i18n/i18n_path/i18n_path.info | ||
---|---|---|
6 | 6 |
|
7 | 7 |
files[] = i18n_path.inc |
8 | 8 |
files[] = i18n_path.test |
9 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
10 |
version = "7.x-1.18"
|
|
9 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
10 |
version = "7.x-1.22"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "i18n" |
13 |
datestamp = "1497704047"
|
|
13 |
datestamp = "1511689989"
|
|
14 | 14 |
|
drupal7/sites/all/modules/i18n/i18n_redirect/i18n_redirect.info | ||
---|---|---|
4 | 4 |
package = Multilingual - Internationalization |
5 | 5 |
core = 7.x |
6 | 6 |
|
7 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
8 |
version = "7.x-1.18"
|
|
7 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
8 |
version = "7.x-1.22"
|
|
9 | 9 |
core = "7.x" |
10 | 10 |
project = "i18n" |
11 |
datestamp = "1497704047"
|
|
11 |
datestamp = "1511689989"
|
|
12 | 12 |
|
drupal7/sites/all/modules/i18n/i18n_select/i18n_select.info | ||
---|---|---|
6 | 6 |
configure = admin/config/regional/i18n/select |
7 | 7 |
files[] = i18n_select.test |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
10 |
version = "7.x-1.18"
|
|
9 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
10 |
version = "7.x-1.22"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "i18n" |
13 |
datestamp = "1497704047"
|
|
13 |
datestamp = "1511689989"
|
|
14 | 14 |
|
drupal7/sites/all/modules/i18n/i18n_string/i18n_string.inc | ||
---|---|---|
703 | 703 |
// Create source string so we get an lid |
704 | 704 |
$this->save_source($string); |
705 | 705 |
} |
706 |
|
|
707 |
// Convert objectid to objectkey if it's numeric. |
|
706 | 708 |
if (!isset($string->objectkey)) { |
707 |
$string->objectkey = (int)$string->objectid; |
|
709 |
if (is_numeric($string->objectid)) { |
|
710 |
$string->objectkey = (int)$string->objectid; |
|
711 |
} |
|
708 | 712 |
} |
713 |
|
|
714 |
// Make sure objectkey is numeric. |
|
715 |
if (!is_numeric($string->objectkey)) { |
|
716 |
$string->objectkey = 0; |
|
717 |
} |
|
718 |
|
|
709 | 719 |
if (!isset($string->format)) { |
710 | 720 |
$string->format = ''; |
711 | 721 |
} |
drupal7/sites/all/modules/i18n/i18n_string/i18n_string.info | ||
---|---|---|
10 | 10 |
files[] = i18n_string.test |
11 | 11 |
configure = admin/config/regional/i18n/strings |
12 | 12 |
|
13 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
14 |
version = "7.x-1.18"
|
|
13 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
14 |
version = "7.x-1.22"
|
|
15 | 15 |
core = "7.x" |
16 | 16 |
project = "i18n" |
17 |
datestamp = "1497704047"
|
|
17 |
datestamp = "1511689989"
|
|
18 | 18 |
|
drupal7/sites/all/modules/i18n/i18n_string/i18n_string.install | ||
---|---|---|
94 | 94 |
), |
95 | 95 |
'objectindex' => array( |
96 | 96 |
'type' => 'int', |
97 |
'size' => 'big', |
|
98 |
'length' => 20, |
|
97 | 99 |
'not null' => TRUE, |
98 | 100 |
'default' => 0, |
99 | 101 |
'description' => 'Integer value of Object ID.', |
... | ... | |
245 | 247 |
} |
246 | 248 |
} |
247 | 249 |
|
250 |
/** |
|
251 |
* Change objectindex from int to bigint. |
|
252 |
*/ |
|
253 |
function i18n_string_update_7003() { |
|
254 |
db_change_field('i18n_string', 'objectindex', 'objectindex', array( |
|
255 |
'type' => 'int', |
|
256 |
'size' => 'big', |
|
257 |
'length' => 20, |
|
258 |
)); |
|
259 |
} |
|
248 | 260 |
|
249 | 261 |
/** |
250 | 262 |
* Notes for update script |
drupal7/sites/all/modules/i18n/i18n_string/i18n_string.module | ||
---|---|---|
620 | 620 |
* Message if the user cannot translate that string. |
621 | 621 |
*/ |
622 | 622 |
function i18n_string_translate_check_string($i18nstring, $account = NULL) { |
623 |
if (!user_access('translate interface', $account) || !user_access('translate user-defined strings', $account)) { |
|
623 |
// Check block translation permissions. |
|
624 |
if ($i18nstring->textgroup == 'blocks') { |
|
625 |
if (!user_access('translate interface', $account) && !user_access('translate blocks', $account)) { |
|
626 |
return t('This is a user-defined string within a block. You are not allowed to translate blocks.'); |
|
627 |
} |
|
628 |
} |
|
629 |
elseif (!user_access('translate interface', $account) || !user_access('translate user-defined strings', $account)) { |
|
624 | 630 |
return t('This is a user-defined string. You are not allowed to translate these strings.'); |
625 | 631 |
} |
626 |
elseif (!empty($i18nstring->format)) { |
|
632 |
|
|
633 |
if (!empty($i18nstring->format)) { |
|
627 | 634 |
if (!i18n_string_allowed_format($i18nstring->format)) { |
628 | 635 |
$format = filter_format_load($i18nstring->format); |
629 | 636 |
return t('This string uses the %name text format. Strings with this format are not allowed for translation.', array('%name' => $format->name)); |
drupal7/sites/all/modules/i18n/i18n_sync/i18n_sync.info | ||
---|---|---|
10 | 10 |
files[] = i18n_sync.module.inc |
11 | 11 |
files[] = i18n_sync.node.inc |
12 | 12 |
files[] = i18n_sync.test |
13 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
14 |
version = "7.x-1.18"
|
|
13 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
14 |
version = "7.x-1.22"
|
|
15 | 15 |
core = "7.x" |
16 | 16 |
project = "i18n" |
17 |
datestamp = "1497704047"
|
|
17 |
datestamp = "1511689989"
|
|
18 | 18 |
|
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.info | ||
---|---|---|
11 | 11 |
files[] = i18n_taxonomy.admin.inc |
12 | 12 |
files[] = i18n_taxonomy.test |
13 | 13 |
|
14 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
15 |
version = "7.x-1.18"
|
|
14 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
15 |
version = "7.x-1.22"
|
|
16 | 16 |
core = "7.x" |
17 | 17 |
project = "i18n" |
18 |
datestamp = "1497704047"
|
|
18 |
datestamp = "1511689989"
|
|
19 | 19 |
|
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module | ||
---|---|---|
1234 | 1234 |
* Implements hook_entity_info_alter(). |
1235 | 1235 |
*/ |
1236 | 1236 |
function i18n_taxonomy_entity_info_alter(&$entity_info) { |
1237 |
if (isset($entity_info['taxonomy_vocabulary'])) { |
|
1238 |
// Add altered vocabulary schema fields. |
|
1239 |
$entity_info['taxonomy_vocabulary']['schema_fields_sql']['base table'][] = 'i18n_mode'; |
|
1240 |
$entity_info['taxonomy_vocabulary']['schema_fields_sql']['base table'][] = 'language'; |
|
1241 |
} |
|
1237 | 1242 |
if (isset($entity_info['taxonomy_term'])) { |
1238 | 1243 |
// Core doesn't provide a label callback for taxonomy terms. By setting one |
1239 | 1244 |
// we can use it to return the correct localized term name. |
drupal7/sites/all/modules/i18n/i18n_translation/i18n_translation.info | ||
---|---|---|
6 | 6 |
|
7 | 7 |
files[] = i18n_translation.inc |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
10 |
version = "7.x-1.18"
|
|
9 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
10 |
version = "7.x-1.22"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "i18n" |
13 |
datestamp = "1497704047"
|
|
13 |
datestamp = "1511689989"
|
|
14 | 14 |
|
drupal7/sites/all/modules/i18n/i18n_user/i18n_user.info | ||
---|---|---|
4 | 4 |
package = Multilingual - Internationalization |
5 | 5 |
dependencies[] = i18n_variable |
6 | 6 |
|
7 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
8 |
version = "7.x-1.18"
|
|
7 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
8 |
version = "7.x-1.22"
|
|
9 | 9 |
core = "7.x" |
10 | 10 |
project = "i18n" |
11 |
datestamp = "1497704047"
|
|
11 |
datestamp = "1511689989"
|
|
12 | 12 |
|
drupal7/sites/all/modules/i18n/i18n_user/i18n_user.module | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
function i18n_user_mail_alter(&$message) { |
11 | 11 |
if ($message['module'] == 'user') { |
12 |
$language = (isset($message['language']) ? $message['language'] : language_default()); |
|
12 |
$user_preferred = language_default(); |
|
13 |
if (isset($message['params']['account'])) { |
|
14 |
$user_preferred = user_preferred_language($message['params']['account']); |
|
15 |
} |
|
16 |
$language = (isset($message['language']) ? $message['language'] : $user_preferred); |
|
13 | 17 |
$variables = array('user' => $message['params']['account']); |
14 | 18 |
$key = $message['key']; |
15 | 19 |
|
drupal7/sites/all/modules/i18n/i18n_variable/i18n_variable.info | ||
---|---|---|
10 | 10 |
files[] = i18n_variable.class.inc |
11 | 11 |
files[] = i18n_variable.test |
12 | 12 |
|
13 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
14 |
version = "7.x-1.18"
|
|
13 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
14 |
version = "7.x-1.22"
|
|
15 | 15 |
core = "7.x" |
16 | 16 |
project = "i18n" |
17 |
datestamp = "1497704047"
|
|
17 |
datestamp = "1511689989"
|
|
18 | 18 |
|
drupal7/sites/all/modules/i18n/tests/i18n_test.info | ||
---|---|---|
7 | 7 |
core = 6.x |
8 | 8 |
hidden = TRUE |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2017-06-17
|
|
11 |
version = "7.x-1.18"
|
|
10 |
; Information added by Drupal.org packaging script on 2017-11-26
|
|
11 |
version = "7.x-1.22"
|
|
12 | 12 |
core = "7.x" |
13 | 13 |
project = "i18n" |
14 |
datestamp = "1497704047"
|
|
14 |
datestamp = "1511689989"
|
|
15 | 15 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules