Projet

Général

Profil

Paste
Télécharger (3,72 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / i18n / i18n_menu / README.txt @ b3ab3446

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