- TUTORIAL #01 - Drupal Multilingual (i18n) Basic Configuration
- Core:
- drupal-7.50.tar
- Required modules:
- i18n-7.x-1.13.tar >>> https://www.drupal.org/project/i18n
- variable-7.x-2.5.tar >>> https://www.drupal.org/project/variable
- Activate the module > "Internationalization" and > "Multilingual content" in > "admin/modules", this message will appear > "(You must enable the Content translation, Locale, Variable, String translation modules to install Multilingual content. Would you like to continue with the above?)" and Click > "Continue".
- Download a file to add the desired language > "https://localize.drupal.org/download" es. (Italian - 7.50 (675.04 KB)) > "drupal-7.50.it.po".
- Import the language file you just downloaded. Go to > "admin/config/regional/translate/import", under "Import translation" Click > "Browse", select > "drupal-7.50.it.po", from Drop Down menu select > "Italian (Italiano)" and Click > "Import" at the bottom of the screen.
- Go to > "admin/config/regional/language/configure", under > "User interface text language detection" put the flag on > "URL" and Click > "Save settings" at the bottom of the screen.
- Go to > "admin/config/regional/language/edit/en", under > "Path prefix language code" (Text Area) put "en" prefix (without "") and Click > "Save language" at the bottom of the screen.
- As an example let's enable multilanguage in CType > "page" to > "admin/structure/types".
- Click on > "edit" on the right of CType > "Basic page (Machine name: page)", select the TAB > "Publishing options", under > "Multilingual support" select > "Enabled, with translation" and click > "Save content type" at the bottom of the screen.
- Click again on > "edit" on the right of CType > "Basic page (Machine name: page)", select the TAB > "Multilingual setting", under the > "Extended language options" flag the following three options > "Set current language as default for new content. | Require language (Do not allow Language Neutral). | Lock language (that cannot be changed).", keep the default selection below > "Extended language support" > "Normal - All enabled languages will be allowed." and click > "Save content type" at the bottom of the screen.
- Insert the first multilingual node > "node/add", choose > "Basic page", compile the Title and Body and Click on > "Save" at the bottom of the screen.
- After saving the node we shall see a new TAB (to right of TABs > "View and Edit") > "Translate", Click on TAB > "Translate", Click on > "add translation", modify the Title and Body in the Italian language and Click on > "Save" at the bottom of the screen.
- Now if we go > "admin/content" we will see two nodes (node/1 and node/2) in 2 languages (en and it).
spencer