Projet

Général

Profil

Révision b3ab3446

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

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 2016-10-22
12
version = "7.x-1.14"
11
; Information added by Drupal.org packaging script on 2017-01-31
12
version = "7.x-1.15"
13 13
core = "7.x"
14 14
project = "i18n"
15
datestamp = "1477154943"
15
datestamp = "1485834792"
16 16

  
drupal7/sites/all/modules/i18n/i18n_block/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Troubleshooting
10
* Maintainers
11

  
12

  
13
INTRODUCTION
14
------------
15

  
16
The Block languages module, part of the Internationalization (https://www.drupal.org/project/i18n) package, allows the user to configure for which languages each block is visible.
17

  
18
* For a full description of the module, visit https://www.drupal.org/node/1279698
19

  
20
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
21

  
22

  
23
REQUIREMENTS
24
------------
25

  
26
This module requires the following modules:
27

  
28
Internationalization - https://www.drupal.org/project/i18n
29

  
30

  
31
RECOMMENDED MODULES
32
-------------------
33

  
34
*  Internationalization Views - https://www.drupal.org/project/i18nviews
35
*  Language Icons - https://www.drupal.org/project/languageicons
36
*  Translation Overview - https://www.drupal.org/project/translation_overview
37
*  Localization Client - https://www.drupal.org/project/l10n_client
38
* Internationalization contributions - https://www.drupal.org/project/i18n_contrib
39

  
40

  
41
INSTALLATION
42
------------
43

  
44
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
45

  
46

  
47
CONFIGURATION
48
-------------
49

  
50
The settings for visibility per language are provided under Visibility Settings via the Languages tab when configuring a block.
51

  
52
The Languages tab also provides a setting for whether the block is translatable. For custom blocks, the block title and the block content will be translatable. For blocks defined by modules, only the block title will be translatable. If "Make this block translatable" is selected, a Translate tab will appear for that block. This tab provides a UI for adding translations of the block in each available language.
53

  
54

  
55
TROUBLESHOOTING
56
---------------
57

  
58
Conflicts with Context
59

  
60
The Block languages module conflicts with the Context module, which alters how blocks are rendered. This issue can be tracked in the Internationalization issue queue: http://drupal.org/node/1343044
61

  
62
String Errors
63

  
64
The user must allow your used string format to be translated on admin/config/regional/i18n/strings or you are going to have a error message like "The string blocks:block:1:body for textgroup blocks is not allowed for translation because of its text format."
65

  
66

  
67
MAINTAINERS
68
-----------
69

  
70
* Jose Reyero - https://www.drupal.org/u/jose-reyero
71
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
72
* Peter Philipp - https://www.drupal.org/u/das-peter
73
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
74
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
12
version = "7.x-1.14"
11
; Information added by Drupal.org packaging script on 2017-01-31
12
version = "7.x-1.15"
13 13
core = "7.x"
14 14
project = "i18n"
15
datestamp = "1477154943"
15
datestamp = "1485834792"
16 16

  
drupal7/sites/all/modules/i18n/i18n_contact/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Contact translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, helps with the multilingual configuration of the site contact forms.  This module makes contact categories and replies available for translation.
16

  
17
* For a full description of the module, visit https://www.drupal.org/node/1396984
18

  
19
* To submit bug reports and feature suggestions, or to track changes, visit https://www.drupal.org/project/issues/i18n
20

  
21

  
22
REQUIREMENTS
23
------------
24

  
25
This module requires the following modules:
26

  
27
Internationalization (https://www.drupal.org/project/i18n)
28

  
29

  
30
RECOMMENDED MODULES
31
-------------------
32

  
33
* Internationalization Views (https://www.drupal.org/project/i18nviews)
34
* Language Icons (https://www.drupal.org/project/languageicons)
35
* Translation Overview (https://www.drupal.org/project/translation_overview)
36
* Localization Client (https://www.drupal.org/project/l10n_client)
37
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
38

  
39

  
40
INSTALLATION
41
------------
42

  
43
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. See https://drupal.org/documentation/install/modules-themes/modules-7 for further information.
44

  
45

  
46
CONFIGURATION
47
-------------
48

  
49
1. Enable the Contact translation module included with the Internationalization module.
50
2. Go to Administration > Structure > Contact form.
51
3. Click edit for the form to configure.
52
4. Click the Translate tab.
53
5. Click the translate link for a language.
54
6. Translate the Category and Auto-reply text.
55
7. Click Save translation.
56
8. Repeat steps 5 to 7 for each language.
57
9. Repeat steps 2 to 8 for all forms.
58

  
59

  
60
MAINTAINERS
61
-----------
62

  
63
* Jose Reyero - https://www.drupal.org/u/jose-reyero
64
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
65
* Peter Philipp - https://www.drupal.org/u/das-peter
66
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
67
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
9
version = "7.x-1.14"
8
; Information added by Drupal.org packaging script on 2017-01-31
9
version = "7.x-1.15"
10 10
core = "7.x"
11 11
project = "i18n"
12
datestamp = "1477154943"
12
datestamp = "1485834792"
13 13

  
drupal7/sites/all/modules/i18n/i18n_field/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Field translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, allows for translation of text associated with a field's settings including the label, help text, default value, and list options.
16

  
17
* For a full description of the module, visit this page https://www.drupal.org/node/1279346
18

  
19
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
20

  
21

  
22
REQUIREMENTS
23
------------
24

  
25
This module requires the following modules:
26

  
27
Internationalization (https://www.drupal.org/project/i18n)
28

  
29

  
30
RECOMMENDED MODULES
31
-------------------
32

  
33
* Internationalization Views (https://www.drupal.org/project/i18nviews)
34
* Language Icons (https://www.drupal.org/project/languageicons)
35
* Translation Overview (https://www.drupal.org/project/translation_overview)
36
* Localization Client (https://www.drupal.org/project/l10n_client)
37
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
38

  
39

  
40
INSTALLATION
41
------------
42

  
43
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://drupal.org/documentation/install/modules-themes/modules-7 for further information.
44

  
45

  
46
CONFIGURATION
47
-------------
48

  
49
1. Enable the Field translation module included with Internationalization.
50
2. Go to Administration > Configuration > Regional and language > Translate interface.
51
3. Click on Filter Translatable Strings field set and limit search to fields.
52
4. Edit the desired field and Save.
53
For the translation to be displayed, you need to use some of the Field Formatters provided by this module whose name usually ends up in 'translated'. For most core fields it is Default translated.
54

  
55
Note: The Field Translation module does not provide content translation for fields. This functionality is provided by the Entity Translation (ET) module.
56

  
57

  
58
MAINTAINERS
59
-----------
60

  
61
* Jose Reyero - https://www.drupal.org/u/jose-reyero
62
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
63
* Peter Philipp - https://www.drupal.org/u/das-peter
64
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
65
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
10
version = "7.x-1.14"
9
; Information added by Drupal.org packaging script on 2017-01-31
10
version = "7.x-1.15"
11 11
core = "7.x"
12 12
project = "i18n"
13
datestamp = "1477154943"
13
datestamp = "1485834792"
14 14

  
drupal7/sites/all/modules/i18n/i18n_field/i18n_field.module
446 446
    return $info;
447 447
  }
448 448
}
449

  
450
/**
451
 * Implements hook_field_info_alter().
452
 */
453
function i18n_field_field_info_alter(&$field_info) {
454
  foreach(array_keys($field_info) as $type) {
455
    $field_info[$type]['property_callbacks'][] = 'i18n_field_entity_property_callback';
456
  }
457
}
458

  
459
/**
460
 * Callback to translate entity property info for a fields.
461
 *
462
 * @see entity_metadata_field_entity_property_info()
463
 * @see entity_metadata_field_default_property_callback()
464
 * @see i18n_field_i18n_object_info_alter()
465
 * @see hook_module_implements_alter()
466
 */
467
function i18n_field_entity_property_callback(&$info, $entity_type, $field, $instance, $field_type) {
468
  global $language;
469

  
470
  // This could create a endless recursion if it's called during rebuilding the
471
  // cache for i18n_object_info(). So if the cache of i18n_object_info isn't
472
  // available yet we assume the worst case, leave the info alone but trigger a
473
  // rebuild of the property when hook_i18n_object_info_alter is invoked. At
474
  // that point the info is available and we can rely on it.
475
  if (!$info = &drupal_static('i18n_object_info')) {
476
    $i18n_field_entity_property_callback_fallback = &drupal_static(__FUNCTION__);
477
    $i18n_field_entity_property_callback_fallback = TRUE;
478
    return;
479
  }
480

  
481
  $name = $field['field_name'];
482
  $property = &$info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
483
  $property['label'] = i18n_field_translate_property($instance, 'label', $language->language);
484
}
485

  
486
/**
487
 * Implements hook_i18n_object_info_alter().
488
 */
489
function i18n_field_i18n_object_info_alter(&$info) {
490
  if (drupal_static('i18n_field_entity_property_callback')) {
491
    if ($info = drupal_static('i18n_object_info')) {
492
      // Clean static and permanent cache of the data and then re-run the property
493
      // building.
494
      drupal_static_reset('entity_get_property_info');
495
      cache_clear_all('entity_property_info:' . $GLOBALS['language']->language, 'cache');
496
      entity_get_property_info();
497
    }
498
    else {
499
      watchdog('i18n_field', 'Unable to run fall-back handling for entity property translation due missing "i18n_object_info" cache', array(), WATCHDOG_WARNING);
500
    }
501
  }
502
}
503

  
504
/**
505
 * Implements hook_module_implements_alter().
506
 */
507
function i18n_field_module_implements_alter(&$implementations, $hook) {
508
  if ($hook == 'i18n_object_info_alter') {
509
    // Move our hook implementation to the bottom.
510
    $group = $implementations['i18n_field'];
511
    unset($implementations['i18n_field']);
512
    $implementations['i18n_field'] = $group;
513
  }
514
}
drupal7/sites/all/modules/i18n/i18n_forum/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Multilingual forum module, part of the Internationalization (https://www.drupal.org/project/i18n) package, helps with the multilingual configuration of the site’s forums.
16

  
17
* For a full description of the module visit https://www.drupal.org/node/1396988
18

  
19
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
20

  
21

  
22
REQUIREMENTS
23
------------
24

  
25
This module requires the following modules:
26

  
27
* Internationalization (https://www.drupal.org/project/i18n)
28

  
29

  
30
RECOMMENDED MODULES
31
-------------------
32

  
33
* Internationalization Views (https://www.drupal.org/project/i18nviews)
34
* Language Icons (https://www.drupal.org/project/languageicons)
35
* Translation Overview (https://www.drupal.org/project/translation_overview)
36
* Localization Client (https://www.drupal.org/project/l10n_client)
37
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
38

  
39
INSTALLATION
40

  
41
------------
42

  
43
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. See https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
44

  
45

  
46
CONFIGURATION
47
-------------
48

  
49
To configure forum vocabulary
50

  
51
1. Enable the Multilingual forum module included with Internationalization.
52
2. Go to Administration > Structure > Taxonomy.
53
3. Click "edit vocabulary" for the Forums vocabulary.
54
4. Choose the translation mode (Localize or Translate).
55
5. Click "Save and translate" button.
56
6. Click "translate" link for a language.
57
7. Translate the "Name" and "Description" for the forum.
58
8. Click "Save translation" button.
59
9. Repeat steps 6 to 8 for each language.
60

  
61
To configure forum terms
62

  
63
1. Go to Administration > Structure > Forums.
64
2. Click "edit" link for a forum or container.
65
3. Click "Translate" tab.
66
4. Click "translate" link for a language.
67
5. Translate the "Name" and "Description" for the term.
68
6. Click "Save translation" button.
69
7. Repeat steps 4 to 6 for each language.
70
8. Repeat all steps for all terms.
71

  
72

  
73
MAINTAINERS
74
-----------
75

  
76
* Jose Reyero - https://www.drupal.org/u/jose-reyero
77
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
78
* Peter Philipp - https://www.drupal.org/u/das-peter
79
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
80
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
11
version = "7.x-1.14"
10
; Information added by Drupal.org packaging script on 2017-01-31
11
version = "7.x-1.15"
12 12
core = "7.x"
13 13
project = "i18n"
14
datestamp = "1477154943"
14
datestamp = "1485834792"
15 15

  
drupal7/sites/all/modules/i18n/i18n_menu/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Troubleshooting
10
* Maintainers
11

  
12

  
13
INTRODUCTION
14
------------
15

  
16
The Menu translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, allows users to select a translation mode for each menu.
17

  
18
* For a full description of the module, visit this page:
19
https://www.drupal.org/node/1113982
20

  
21
* To submit bug reports and feature suggestions, or to track changes:
22
https://www.drupal.org/project/issues/i18n
23

  
24

  
25
REQUIREMENTS
26
------------
27

  
28
This module requires the following modules:
29

  
30
* Internationalization (https://www.drupal.org/project/i18n)
31

  
32

  
33
RECOMMENDED MODULES
34
-------------------
35

  
36
* Internationalization Views (https://www.drupal.org/project/i18nviews)
37
* Language Icons (https://www.drupal.org/project/languageicons)
38
* Translation Overview (https://www.drupal.org/project/translation_overview)
39
* Localization Client (https://www.drupal.org/project/l10n_client)
40
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
41

  
42
To link menu item menus to nodes, it is useful to have the following modules:
43

  
44
* Entity translation i18n menu module, a sub module of Entity translation (https://www.drupal.org/project/entity_translation)
45
* Menu translation node module (https://www.drupal.org/project/i18n_menu_node)
46

  
47

  
48
INSTALLATION
49
------------
50

  
51
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information
52

  
53

  
54
CONFIGURATION
55
-------------
56

  
57
Language-specific menus
58
1. To create or edit a menu, navigate to Structure > Menus > (menu to edit) > Edit.
59
2. In the Translation mode section, choose Fixed Language and a Language field will appear.
60
3. Select a language, select Save, and add or update the menu items as needed.
61
The menu block will only appear when viewing content in the same language.
62

  
63
There are three modes available:
64

  
65
Translate and Localize:
66
You can create one menu for all languages, and translate or localize each menu item. There are two ways that menu items will be translated.
67
1. You can set a language when creating a custom menu item so that the menu item will only show up for that language. Menu items that link to nodes in a particular language will be treated this way.
68
2. You can localize other custom menu items without a language (for example, menu items linking to Views pages). Use the Translate tab to translate the menu item title and description. Translators can also use the "Translate interface" pages to translate these menu items.
69

  
70
Fixed Language:
71
If you choose Fixed Language, you'll have to set up a separate menu in each language. This could become tedious if have a lot of languages enabled on your site, but is useful if the content or menu structure is different for each language.
72

  
73
No Multilingual Options:
74
Only the menu will be translatable.
75

  
76
TROUBLESHOOTING
77
---------------
78

  
79
A menu item linked to a node will be displayed only when the node language matches the page language. This is due to how the menu system works and the "Language selection" feature in i18n. Therefore, to get translated menus items that link to nodes, you first need translated content. For more information visit https://www.drupal.org/docs/7/multilingual/translating-content.
80

  
81

  
82
MAINTAINERS
83
-----------
84

  
85
* Jose Reyero - https://www.drupal.org/u/jose-reyero
86
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
87
* Peter Philipp - https://www.drupal.org/u/das-peter
88
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
89
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
14
version = "7.x-1.14"
13
; Information added by Drupal.org packaging script on 2017-01-31
14
version = "7.x-1.15"
15 15
core = "7.x"
16 16
project = "i18n"
17
datestamp = "1477154943"
17
datestamp = "1485834792"
18 18

  
drupal7/sites/all/modules/i18n/i18n_menu/i18n_menu.module
53 53
  $items['admin/structure/menu/item/%menu_link'] = $items['admin/structure/menu/item/%menu_link/edit'];
54 54
  $items['admin/structure/menu/item/%menu_link']['type'] = MENU_CALLBACK;
55 55
  $items['admin/structure/menu/item/%menu_link/edit']['type'] = MENU_DEFAULT_LOCAL_TASK;
56
  $items['admin/structure/menu/manage/%menu']['title callback'] = 'i18n_menu_menu_overview_title';
57
}
58

  
59
/**
60
 * Preprocess theme_menu_admin_overview to translate menu name and description
61
 *
62
 * @param $variables
63
 */
64
function i18n_menu_preprocess_menu_admin_overview(&$variables) {
65
  $variables['title'] = i18n_string(array('menu', 'menu', $variables['name'], 'title'), $variables['title']);
66
  $variables['description'] = i18n_string(array('menu', 'menu', $variables['name'], 'description'), $variables['description']);
67
}
68

  
69
/**
70
 * Title callback for the menu overview page and links.
71
 */
72
function i18n_menu_menu_overview_title($menu) {
73
  return i18n_string(array('menu', 'menu', $menu['menu_name'], 'title'), $menu['title']);
56 74
}
57 75

  
58 76
/**
......
726 744
 * Add a "translate" link in operations column for each menu item.
727 745
 */
728 746
function i18n_menu_form_menu_overview_form_alter(&$form, &$form_state) {
729
  foreach (element_children($form) as $element) {
730
    if (substr($element, 0, 5) == 'mlid:') {
731
      $mlid = $form[$element]['#item']['mlid'];
732
      if (i18n_get_object('menu', $mlid)->get_translate_access()) {
733
        $form[$element]['operations']['translate'] = array(
734
          '#type' => 'link',
735
          '#title' => t('translate'),
736
          '#href' => "admin/structure/menu/item/{$mlid}/translate",
737
        );
747
  if (i18n_menu_mode($form['#menu']['menu_name'], I18N_MODE_MULTIPLE)) {
748
    foreach (element_children($form) as $element) {
749
      if (substr($element, 0, 5) == 'mlid:') {
750
        $item = $form[$element]["#item"];
751
        $mlid = $form[$element]['#item']['mlid'];
752
        if (i18n_get_object('menu', $mlid)->get_translate_access()) {
753
          $form[$element]['operations']['translate'] = array(
754
            '#type' => 'link',
755
            '#title' => t('translate'),
756
            '#href' => "admin/structure/menu/item/{$mlid}/translate",
757
          );
758
          $form[$element]['title']['#markup'] = l(_i18n_menu_link_title($item), $item['href'], $item['localized_options']);
759
        }
738 760
      }
739 761
    }
740 762
  }
......
901 923
}
902 924

  
903 925
/**
904
 * Implements hook_init().
905
 */
906
function i18n_menu_init() {
907

  
908
  // The only way to override the default preferred menu link for a path is to
909
  // inject it into the static cache of the function menu_link_get_preferred().
910

  
911
  // The problem with the default implementation is that it does not take the
912
  // language of a menu link into account. Whe having different menu trees for
913
  // different menus, this means that the active trail will not work for all but
914
  // one language.
915

  
916
  // The code below is identical to the mentioned function except the added
917
  // language condition on the query.
918

  
919
  // TODO: Adding an alter tag to the query would allow to do this with a simple
920
  // hook_query_alter() implementation.
921

  
922
  $preferred_links = &drupal_static('menu_link_get_preferred');
923

  
924
  $path = $_GET['q'];
925

  
926
  // Look for the correct menu link by building a list of candidate paths,
927
  // which are ordered by priority (translated hrefs are preferred over
928
  // untranslated paths). Afterwards, the most relevant path is picked from
929
  // the menus, ordered by menu preference.
930
  $item = menu_get_item($path);
931
  $path_candidates = array();
932
  // 1. The current item href.
933
  $path_candidates[$item['href']] = $item['href'];
934
  // 2. The tab root href of the current item (if any).
935
  if ($item['tab_parent'] && ($tab_root = menu_get_item($item['tab_root_href']))) {
936
    $path_candidates[$tab_root['href']] = $tab_root['href'];
937
  }
938
  // 3. The current item path (with wildcards).
939
  $path_candidates[$item['path']] = $item['path'];
940
  // 4. The tab root path of the current item (if any).
941
  if (!empty($tab_root)) {
942
    $path_candidates[$tab_root['path']] = $tab_root['path'];
943
  }
944
  // Retrieve a list of menu names, ordered by preference.
945
  $menu_names = menu_get_active_menu_names();
946
  // Use an illegal menu name as the key for the preferred menu link.
947
  $selected_menu = MENU_PREFERRED_LINK;
948
  // Put the selected menu at the front of the list.
949
  array_unshift($menu_names, $selected_menu);
950

  
951
  $query = db_select('menu_links', 'ml', array('fetch' => PDO::FETCH_ASSOC));
952
  $query->leftJoin('menu_router', 'm', 'm.path = ml.router_path');
953
  $query->fields('ml');
954
  // Weight must be taken from {menu_links}, not {menu_router}.
955
  $query->addField('ml', 'weight', 'link_weight');
956
  $query->fields('m');
957
  $query->condition('ml.link_path', $path_candidates, 'IN');
958

  
959
  // Only look menu links with none or the current language.
960
  $query->condition('ml.language', array(LANGUAGE_NONE, i18n_language_interface()->language), 'IN');
961

  
962
  // Sort candidates by link path and menu name.
963
  $candidates = array();
964
  foreach ($query->execute() as $candidate) {
965
    $candidate['weight'] = $candidate['link_weight'];
966
    $candidates[$candidate['link_path']][$candidate['menu_name']] = $candidate;
967
    // Add any menus not already in the menu name search list.
968
    if (!in_array($candidate['menu_name'], $menu_names)) {
969
      $menu_names[] = $candidate['menu_name'];
970
    }
971
  }
972

  
973
  // Store the most specific link for each menu. Also save the most specific
974
  // link of the most preferred menu in $preferred_link.
975
  foreach ($path_candidates as $link_path) {
976
    if (isset($candidates[$link_path])) {
977
      foreach ($menu_names as $menu_name) {
978
        if (empty($preferred_links[$path][$menu_name]) && isset($candidates[$link_path][$menu_name])) {
979
          $candidate_item = $candidates[$link_path][$menu_name];
980
          $map = explode('/', $path);
981
          _menu_translate($candidate_item, $map);
982
          if ($candidate_item['access']) {
983
            $preferred_links[$path][$menu_name] = $candidate_item;
984
            if (empty($preferred_links[$path][MENU_PREFERRED_LINK])) {
985
              // Store the most specific link.
986
              $preferred_links[$path][MENU_PREFERRED_LINK] = $candidate_item;
987
            }
988
          }
989
        }
926
 * Implements hook_query_TAG_alter()
927
 *
928
 * Using tag 'preferred_menu_links' added in menu_link_get_preferred().
929
 * See http://drupal.org/node/1854134
930
 */
931
function i18n_menu_query_preferred_menu_links_alter(QueryAlterableInterface $query) {
932
  global $language;
933
  // Get queried tables.
934
  $tables = $query->getTables();
935

  
936
  foreach ($tables as $alias => $table) {
937
    if ($table['table'] == 'menu_links') {
938
      // Add language filter, ensuring that we don't have any collision when
939
      // determining the active menu trail when there are multiple menu items
940
      // with same link path but different languages.
941
      if ($language) {
942
        $query->condition('language', array($language->language, LANGUAGE_NONE), 'IN');
990 943
      }
944
      break;
991 945
    }
992 946
  }
993 947
}
drupal7/sites/all/modules/i18n/i18n_node/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Multilingual content module, part of the Internationalization (https://www.drupal.org/project/i18n) package, provides extended multilingual options for nodes. These options help accommodate a variety of translation workflows by controlling how the language for nodes is set.
16

  
17
Note that the Multilingual content module lives in the i18n_node directory in the Internationalization package. Don't confuse this module with the core Content translation module.
18

  
19
* For a full description of the module visit https://www.drupal.org/node/1279644
20

  
21
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
22

  
23

  
24
REQUIREMENTS
25
------------
26

  
27
This module requires the following modules:
28

  
29
* Internationalization (https://www.drupal.org/project/i18n)
30

  
31

  
32
RECOMMENDED MODULES
33
-------------------
34

  
35
* Internationalization Views (https://www.drupal.org/project/i18nviews)
36
* Language Icons (https://www.drupal.org/project/languageicons)
37
* Translation Overview (https://www.drupal.org/project/translation_overview)
38
* Localization Client (https://www.drupal.org/project/l10n_client)
39
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
40

  
41

  
42
INSTALLATION
43

  
44
------------
45

  
46
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. See https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
47

  
48

  
49
CONFIGURATION
50
-------------
51

  
52
For each content type, the following Extended language options are available under the Multilingual Settings tab
53
1. "Set current language as default for new content" can be useful for content that is community-generated.
54
2. "Require language" prevents users from creating 'Language neutral' nodes.
55
3. "Lock language" prevents users from changing the language of a node after it's created.
56

  
57
Site-wide Settings for Node Translation
58
1. There are also site-wide settings provided to help streamline how multilingual content is created. Navigate to Config > Regional and language > Multilingual settings > Node Options.
59
2. "Switch interface for translating" switches the language of the user interface to the chosen language when a user translates a node. This is useful if users speak the language in which the translation is written. It means that after the node translation is saved, the language of the UI will match the language of the node.
60
3. "Hide content translation links" will prevent the language switcher links from appearing in nodes and teasers. This is useful if a language switcher block is enabled on the site.
61
4.You can also select the default language for new nodes if the corresponding content type doesn't have language support. By default, it is set to be in the default language of the site, but this can be changed to be language neutral. This is a useful option when thinking about forward compatibility for adding multilingual support to these content types in the future.
62

  
63

  
64
MAINTAINERS
65
-----------
66

  
67
* Jose Reyero - https://www.drupal.org/u/jose-reyero
68
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
69
* Peter Philipp - https://www.drupal.org/u/das-peter
70
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
71
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
13
version = "7.x-1.14"
12
; Information added by Drupal.org packaging script on 2017-01-31
13
version = "7.x-1.15"
14 14
core = "7.x"
15 15
project = "i18n"
16
datestamp = "1477154943"
16
datestamp = "1485834792"
17 17

  
drupal7/sites/all/modules/i18n/i18n_node/i18n_node.module
506 506
    }
507 507
  }
508 508
  elseif (variable_get('i18n_node_default_language_none', 0) && !isset($form['#node']->nid)) {
509
    // Override locale module setting default language to nodes. It is already in form_state.
510
    $form['language']['#value'] = $form_state['values']['language'] = LANGUAGE_NONE;
509
    // Only do this if the language is really disabled
510
    if (variable_get('language_content_type_' . $node->type, 0) == 0) {
511
      // Override locale module setting default language to nodes. It is already in form_state.
512
      $form['language']['#value'] = $form_state['values']['language'] = LANGUAGE_NONE;
513
    }
511 514
  }
512 515
  // Translate field names for title and body for the node edit form.
513 516
  if (!empty($form['title']['#title'])) {
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 2016-10-22
10
version = "7.x-1.14"
9
; Information added by Drupal.org packaging script on 2017-01-31
10
version = "7.x-1.15"
11 11
core = "7.x"
12 12
project = "i18n"
13
datestamp = "1477154943"
13
datestamp = "1485834792"
14 14

  
drupal7/sites/all/modules/i18n/i18n_redirect/README.txt
1
CONTENTS OF THIS FILE
2
---------------------------
3
  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Redirect translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, improves search engine optimization (SEO) for multilingual websites. 
16

  
17
It redirects anonymous users (including web crawlers) to the translation of the page in the requested language, if it exists, using a 301 redirect code. 
18

  
19
* For a full description of the module, visit this page:
20
https://www.drupal.org/node/1280468
21

  
22
* To submit bug reports and feature suggestions, or to track changes:
23
https://www.drupal.org/project/issues/i18n
24

  
25

  
26
REQUIREMENTS
27
------------
28

  
29
This module requires the following modules:
30

  
31
* Internationalization (https://www.drupal.org/project/i18n)
32

  
33
The Translation redirect module requires the implementation of hook_i18n_translate_path by another module for the redirect page to be determined. Currently, the Multilingual content, Path translation, and Taxonomy translation modules implement this hook. 
34

  
35

  
36
RECOMMENDED MODULES
37
-------------------
38

  
39
* Internationalization Views (https://www.drupal.org/project/i18nviews)
40
* Language Icons (https://www.drupal.org/project/languageicons)
41
* Translation Overview (https://www.drupal.org/project/translation_overview)
42
* Localization Client (https://www.drupal.org/project/l10n_client)
43
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
44

  
45

  
46
INSTALLATION
47
------------
48

  
49
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
50

  
51

  
52
CONFIGURATION
53
-------------
54

  
55
No configuration is necessary.  
56

  
57
For node translation, enable the Multilingual content and the Translation redirect modules. For non-node pages, the redirection hook must be implemented by the relevant module.
58
For example, for taxonomy pages, you should enable the Taxonomy translation module because the module provides the necessary hook code. If you are using the Path translation module to create translation sets for non-node pages, then it implements the hook code for determining the redirection page.
59

  
60

  
61
MAINTAINERS
62
-----------
63

  
64
* Jose Reyero - https://www.drupal.org/u/jose-reyero
65
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
66
* Peter Philipp - https://www.drupal.org/u/das-peter
67
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
68
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
8
version = "7.x-1.14"
7
; Information added by Drupal.org packaging script on 2017-01-31
8
version = "7.x-1.15"
9 9
core = "7.x"
10 10
project = "i18n"
11
datestamp = "1477154943"
11
datestamp = "1485834792"
12 12

  
drupal7/sites/all/modules/i18n/i18n_select/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Multilingual select module, part of the Internationalization (https://www.drupal.org/project/i18n) package, allows the user to define whether content is filtered by language on pages provided by Drupal core.
16

  
17
* For a full description of the module visit https://www.drupal.org/node/1279512
18

  
19
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
20

  
21

  
22
REQUIREMENTS
23
------------
24

  
25
This module requires the following modules:
26

  
27
* Internationalization (https://www.drupal.org/project/i18n)
28
* Variable (https://www.drupal.org/project/variable)
29

  
30

  
31
RECOMMENDED MODULES
32
-------------------
33

  
34
* Internationalization Views (https://www.drupal.org/project/i18nviews)
35
* Language Icons (https://www.drupal.org/project/languageicons)
36
* Translation Overview (https://www.drupal.org/project/translation_overview)
37
* Localization Client (https://www.drupal.org/project/l10n_client)
38
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
39

  
40

  
41
INSTALLATION
42
------------
43

  
44
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. See https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
45

  
46

  
47
CONFIGURATION
48
-------------
49

  
50
The module allows you to configure whether or not to filter pages by the current language. If the Taxonomy translation submodule is also enabled, an option will be available for how taxonomy term pages are filtered. It also allows the exclusion of the module’s language selection handling for some elements and certain paths.
51

  
52
1. Enable the Multilingual select module included with Internationalization.
53
2. Go to Configuration > Regional and language > Multilingual settings > Selection.
54
3. Select nodes and taxonomy can be filtered by language in the Content to Filter by Language field set.
55
4. The "Content Selection Mode" allows content with specific tags to be skipped by entering a list of tags.
56
5. The "Enable for Specific Pages" field set allows specific pages to be included by path.
57
6. After making choices click Save configuration.
58

  
59

  
60
MAINTAINERS
61
-----------
62

  
63
* Jose Reyero - https://www.drupal.org/u/jose-reyero
64
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
65
* Peter Philipp - https://www.drupal.org/u/das-peter
66
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
67
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
10
version = "7.x-1.14"
9
; Information added by Drupal.org packaging script on 2017-01-31
10
version = "7.x-1.15"
11 11
core = "7.x"
12 12
project = "i18n"
13
datestamp = "1477154943"
13
datestamp = "1485834792"
14 14

  
drupal7/sites/all/modules/i18n/i18n_string/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3
  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The String translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, provides support for other modules to translate user-defined strings. This is an API module that must be enabled only when required by other modules in the i18n package.
16

  
17

  
18
* For a full description of the module, visit this page:
19
https://www.drupal.org/node/1279668
20

  
21
* To submit bug reports and feature suggestions, or to track changes:
22
https://www.drupal.org/project/issues/i18n
23

  
24

  
25
REQUIREMENTS
26
------------
27

  
28
This module requires the following modules:
29

  
30
Internationalization (https://www.drupal.org/project/i18n)
31

  
32

  
33
RECOMMENDED MODULES
34
-------------------
35

  
36
* Internationalization Views (https://www.drupal.org/project/i18nviews)
37
* Language Icons (https://www.drupal.org/project/languageicons)
38
* Translation Overview (https://www.drupal.org/project/translation_overview)
39
* Localization Client (https://www.drupal.org/project/l10n_client)
40
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
41

  
42

  
43
INSTALLATION
44
------------
45

  
46
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
47

  
48

  
49
CONFIGURATION
50
-------------
51

  
52
Strings will be translated from the source languages. By default the source language is the site's default language, so changing the default language could break these translations.
53

  
54
1. You can set which language is used as the source language via Administration > Configuration > Regional and language > Multilingual settings > Strings. By default, only plain strings are enabled, so regular blocks are not fully translatable.
55
2. To allow Filtered HTML, Full HTML or Plain text select the appropriate radio box(es) and Save configuration.
56
3. To select the strings to be translated navigate to Administration > Configuration > Regional and language > Translate interface and select on Stings vertical tab. From here you can select which text groups to translate and select the Refresh strings tab.
57

  
58

  
59
FAQ
60
---
61

  
62
The String translation module allows you to configure which text formats are translatable. Formats like PHP Filter and Full HTML are translated before they are processed, so allowing a translator to edit these can be a security risk. This is particularly problematic when importing translations in bulk from a CSV file, since the translator's access to the import formats isn't verified by Drupal. After updating this setting, be sure to refresh the strings via Administration > Configuration > Regional and language > Translate interface > Strings so that strings in forbidden formats are deleted.
63

  
64

  
65
MAINTAINERS
66
-----------
67

  
68
* Jose Reyero - https://www.drupal.org/u/jose-reyero
69
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
70
* Peter Philipp - https://www.drupal.org/u/das-peter
71
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
72
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
14
version = "7.x-1.14"
13
; Information added by Drupal.org packaging script on 2017-01-31
14
version = "7.x-1.15"
15 15
core = "7.x"
16 16
project = "i18n"
17
datestamp = "1477154943"
17
datestamp = "1485834792"
18 18

  
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 2016-10-22
14
version = "7.x-1.14"
13
; Information added by Drupal.org packaging script on 2017-01-31
14
version = "7.x-1.15"
15 15
core = "7.x"
16 16
project = "i18n"
17
datestamp = "1477154943"
17
datestamp = "1485834792"
18 18

  
drupal7/sites/all/modules/i18n/i18n_taxonomy/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The Taxonomy translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, provides multiple options to translate taxonomy vocabularies and terms. For each vocabulary, there are four types of behaviors to choose from: Language-independent terms, Language-specific terms, Localized terms, and Mixed-language vocabulary.
16

  
17
* For a full description of the module visit https://www.drupal.org/node/1114016
18

  
19
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
20

  
21

  
22
REQUIREMENTS
23
------------
24

  
25
This module requires the following modules:
26

  
27
* Internationalization - https://www.drupal.org/project/i18n
28

  
29

  
30
RECOMMENDED MODULES
31
-------------------
32

  
33
* Internationalization Views - https://www.drupal.org/project/i18nviews
34
* Language Icons - https://www.drupal.org/project/languageicons
35
* Translation Overview - https://www.drupal.org/project/translation_overview
36
* Localization Client - https://www.drupal.org/project/l10n_client
37
* Internationalization contributions - https://www.drupal.org/project/i18n_contrib
38

  
39

  
40
INSTALLATION
41
------------
42

  
43
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
44

  
45

  
46
CONFIGURATION
47
-------------
48

  
49
Language-independent terms - only vocabulary will be translatable.
50
1. Navigate to Structure > Taxonomy.
51
2. Select the "edit vocabulary" link.
52
3. Select the "No multilingual options for terms".
53

  
54
Language-specific terms - vocabulary is only used for content in that language. The terms will only be available if the term language matches the UI language.
55
1. Navigate to Structure > Taxonomy and select the "edit vocabulary link".
56
2. Choose "Fixed Language" and a Language drop-down field will be displayed.
57
3. Select the language.
58
4. Select "Fixed Language" and Save.
59

  
60
Localized terms - Terms are common for all languages, but their name and description may be localized.
61
1. Navigate to Structure > Taxonomy > vocabulary-to-edit > Edit.
62
2. Select "Localize" and select Save.
63
3. Edit a term and there will be a Translate tab. Select this tab.
64
4. Select Translate, translate the Name and Description, select "Save translation", and repeat for all languages.
65
5. Repeat the process for all terms.
66
6. Navigate to Structure > Content types > term-to-edit > Manage display.
67
7. By default, the term reference is set to Link. Change this to "Link (localized)" and Save.
68
The vocabulary will be appropriate for the language.
69

  
70
Mixed-language vocabulary - Use for vocabularies with terms in multiple languages.
71
1. Navigate to Structure > Taxonomy > vocabulary-to-edit > Edit.
72
2. Select the Translate radio button and Save.
73
3. Edit a vocabulary term and there will be a new Language field. Choose a language and then select Save and translate.
74
4. There are two options, the user can either select "Add translation link" or the user can select an existing term in the Select translations form.
75
5. Create translations for the terms and add terms for specific languages only.
76
Now if the user edits a node associated with this vocabulary, only the relevant terms will appear.
77

  
78

  
79
MAINTAINERS
80
-----------
81

  
82
* Jose Reyero - https://www.drupal.org/u/jose-reyero
83
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
84
* Peter Philipp - https://www.drupal.org/u/das-peter
85
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
86
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
15
version = "7.x-1.14"
14
; Information added by Drupal.org packaging script on 2017-01-31
15
version = "7.x-1.15"
16 16
core = "7.x"
17 17
project = "i18n"
18
datestamp = "1477154943"
18
datestamp = "1485834792"
19 19

  
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module
1096 1096
    $query->join('taxonomy_term_hierarchy', 'h', 'h.tid = t.tid');
1097 1097
    $result = $query
1098 1098
      ->addTag('translatable')
1099
      ->addTag('term_access')
1099
      ->addTag('taxonomy_term_access')
1100 1100
      ->fields('t')
1101 1101
      ->fields('h', array('parent'))
1102 1102
      ->condition('t.vid', $vid)
......
1270 1270
    }
1271 1271
  }
1272 1272
}
1273

  
1274
/**
1275
 * Implements hook_views_pre_render().
1276
 */
1277
function i18n_taxonomy_views_pre_render(&$view) {
1278
  if(!module_exists('rules_scheduler')) {
1279
    global $language;
1280

  
1281
    foreach ($view->result as $delta => $term){
1282
      if (isset($term->tid)) {
1283
        i18n_string_translate_langcode($language->language);
1284
        $localized_term = i18n_taxonomy_localize_terms(taxonomy_term_load($term->tid));
1285
        $term->tid = $localized_term->tid;
1286
        $term->taxonomy_term_data_name = $localized_term->name;
1287
        $term->taxonomy_term_data_description = $localized_term->description;
1288
      }
1289
    }
1290
  }
1291
}
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.pages.inc
100 100
    $query = db_select('taxonomy_term_data', 't')
101 101
      ->fields('t', array('tid', 'name'));
102 102
    $query->addTag('translatable');
103
    $query->addTag('term_access');
103
    $query->addTag('taxonomy_term_access');
104 104
    // Disable i18n_select for this query
105 105
    $query->addTag('i18n_select');
106 106
    // Add language condition
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 2016-10-22
10
version = "7.x-1.14"
9
; Information added by Drupal.org packaging script on 2017-01-31
10
version = "7.x-1.15"
11 11
core = "7.x"
12 12
project = "i18n"
13
datestamp = "1477154943"
13
datestamp = "1485834792"
14 14

  
drupal7/sites/all/modules/i18n/i18n_user/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11

  
12
INTRODUCTION
13
------------
14

  
15
The User mail translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, translates emails sent from the User module.
16

  
17
* For a full description of the module, visit this page:
18
https://www.drupal.org/node/133977
19

  
20
* To submit bug reports and feature suggestions, or to track changes:
21
https://www.drupal.org/project/issues/i18n
22

  
23

  
24
REQUIREMENTS
25
------------
26

  
27
This module requires the following modules:
28

  
29
Internationalization (https://www.drupal.org/project/i18n)
30

  
31

  
32
RECOMMENDED MODULES
33
-------------------
34

  
35
* Internationalization Views (https://www.drupal.org/project/i18nviews)
36
* Language Icons (https://www.drupal.org/project/languageicons)
37
* Translation Overview (https://www.drupal.org/project/translation_overview)
38
* Localization Client (https://www.drupal.org/project/l10n_client)
39
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
40

  
41

  
42
INSTALLATION
43
------------
44

  
45
* This is a submodule of the Internationalization module. Install the Internationalization module as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/7/extending-drupal-7/installing-contributed-modules-find-import-enable-configure-drupal-7 for further information.
46

  
47

  
48
CONFIGURATION
49
-------------
50

  
51
To configure email translations
52
1. Navigate to Administration > Configuration > Regional and language > Multilingual settings and select the variables tab.
53
2. Select the "User emails" tab. Select the variables you would like translated and Save configuration.
54

  
55

  
56
MAINTAINERS
57
-----------
58

  
59
* Jose Reyero - https://www.drupal.org/u/jose-reyero
60
* Florian Weber (webflo) - https://www.drupal.org/u/webflo
61
* Peter Philipp - https://www.drupal.org/u/das-peter
62
* Joseph Olstad - https://www.drupal.org/u/joseph.olstad
63
* Nathaniel Catchpole - https://www.drupal.org/u/catch
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 2016-10-22
8
version = "7.x-1.14"
7
; Information added by Drupal.org packaging script on 2017-01-31
8
version = "7.x-1.15"
9 9
core = "7.x"
10 10
project = "i18n"
11
datestamp = "1477154943"
11
datestamp = "1485834792"
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 = $message['language'];
12
    $language = (isset($message['language']) ? $message['language'] : language_default());
13 13
    $variables = array('user' => $message['params']['account']);
14 14
    $key = $message['key'];
15 15

  
drupal7/sites/all/modules/i18n/i18n_variable/README.txt
1
CONTENTS OF THIS FILE
2
---------------------
3

  
4
* Introduction
5
* Requirements
6
* Recommended modules
7
* Installation
8
* Configuration
9
* Maintainers
10

  
11
INTRODUCTION
12
------------
13

  
14
The Variable translation module, part of the Internationalization (https://www.drupal.org/project/i18n) package, allows the user to translate text and settings that are stored in Drupal as variables. These variables include text such as 'site name' and 'site slogan', as well as settings like 'Default front page' and 'Default 404 page'.
15

  
16
* For a full description of the module, visit https://www.drupal.org/node/1113374
17

  
18
* To submit bug reports and feature suggestions, or to track changes visit https://www.drupal.org/project/issues/i18n
19

  
20

  
21
REQUIREMENTS
22
------------
23

  
24
This module requires the following modules:
25

  
26
* Internationalization (https://www.drupal.org/project/i18n)
27
* Variable (https://www.drupal.org/project/variable)
28

  
29

  
30
RECOMMENDED MODULES
31
-------------------
32

  
33
* Internationalization Views (https://www.drupal.org/project/i18nviews)
34
* Language Icons (https://www.drupal.org/project/languageicons)
35
* Translation Overview (https://www.drupal.org/project/translation_overview)
36
* Localization Client (https://www.drupal.org/project/l10n_client)
37
* Internationalization contributions (https://www.drupal.org/project/i18n_contrib)
38

  
39

  
40
INSTALLATION
41
------------
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff