Projet

Général

Profil

Révision e013fa40

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_menu/README.txt
13 13
INTRODUCTION
14 14
------------
15 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.
16
The Menu translation module, part of the Internationalization
17
(https://www.drupal.org/project/i18n) package, allows users to select a
18
translation mode for each menu.
17 19

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

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

  
24 26

  
25 27
REQUIREMENTS
26 28
------------
27 29

  
28
This module requires the following modules:
30
This module requires the following module:
29 31

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

  
32 34

  
33 35
RECOMMENDED MODULES
34 36
-------------------
35 37

  
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)
38
* Internationalization Views - https://www.drupal.org/project/i18nviews
39
* Language Icons - https://www.drupal.org/project/languageicons
40
* Translation Overview - https://www.drupal.org/project/translation_overview
41
* Localization Client - https://www.drupal.org/project/l10n_client
42
* Internationalization contributions -
43
  https://www.drupal.org/project/i18n_contrib
41 44

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

  
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)
47
* Entity translation i18n menu module, a submodule of Entity translation -
48
  https://www.drupal.org/project/entity_translation
49
* Menu translation node module - https://www.drupal.org/project/i18n_menu_node
46 50

  
47 51

  
48 52
INSTALLATION
49 53
------------
50 54

  
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
55
This is a submodule of the Internationalization module. Install the
56
Internationalization module as you would normally install a contributed Drupal
57
module. Visit https://www.drupal.org/node/895232 for further information.
52 58

  
53 59

  
54 60
CONFIGURATION
55 61
-------------
56 62

  
57 63
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.
64
1. To create or edit a menu, navigate to Structure > Menus > (menu to edit) >
65
   Edit.
66
2. In the Translation mode section, choose Fixed Language and a Language field
67
   will appear.
60 68
3. Select a language, select Save, and add or update the menu items as needed.
61 69
The menu block will only appear when viewing content in the same language.
62 70

  
63
There are three modes available:
71
There are three modes available: Translate and Localize, Fixed Language, and No
72
Multilingual Options.
64 73

  
65 74
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.
75
The user can create one menu for all languages, and translate or localize each
76
menu item. There are two ways that menu items will be translated.
77
1. The user can set a language when creating a custom menu item so that the menu
78
   item will only show up for that language. Menu items that link to nodes in a
79
   particular language will be treated this way.
80
2. The user can localize other custom menu items without a language
81
   (for example, menu items linking to Views pages). Use the Translate tab to
82
   translate the menu item title and description. Translators can also use the
83
   "Translate interface" pages to translate these menu items.
69 84

  
70 85
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.
86
If the user chooses Fixed Language, they'll have to set up a separate menu in
87
each language. This could become tedious if have a lot of languages enabled on
88
the site, but is useful if the content or menu structure is different for each
89
language.
72 90

  
73 91
No Multilingual Options:
74 92
Only the menu will be translatable.
......
76 94
TROUBLESHOOTING
77 95
---------------
78 96

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

  
81 103

  
82 104
MAINTAINERS

Formats disponibles : Unified diff