CdmDataportalMultilingual » History » Version 2
Andreas Kohlbecker, 08/01/2017 09:41 AM
1 | 1 | Andreas Kohlbecker | # Multilingual set up of the Data Portal |
---|---|---|---|
2 | |||
3 | |||
4 | 1) Install the following modules |
||
5 | |||
6 | ~~~ |
||
7 | Multilingual Language Icons (languageicons) |
||
8 | Multilingual - Internationalization Internationalization (i18n) |
||
9 | Multilingual - Internationalization Menu translation (i18n_menu) |
||
10 | Multilingual - Internationalization Multilingual content (i18n_node) |
||
11 | Multilingual - Internationalization String translation (i18n_string) |
||
12 | Multilingual - Internationalization Translation sets (i18n_translation) |
||
13 | Multilingual - Internationalization Variable translation (i18n_variable) |
||
14 | ~~~ |
||
15 | |||
16 | Notes on automatic installation of translations: |
||
17 | 2 | Andreas Kohlbecker | |
18 | 1 | Andreas Kohlbecker | ~~~ |
19 | The translations can be named as $langcode.po or with names ending with $langcode.po. |
||
20 | |||
21 | Translations are only automatically imported during the installation of the module for |
||
22 | all the languages already set up on the site, |
||
23 | see https://api.drupal.org/api/drupal/includes!locale.inc/function/locale_batch_by_component/8.x for details. |
||
24 | |||
25 | If the module is already enabled you need to disable and re-enable it. Alternatively you can use the following drush command: |
||
26 | |||
27 | drush php-eval "locale_system_update(array('yourmodule_name'));drush_backend_batch_process();" |
||
28 | ~~~ |