Project

General

Profile

Actions

feature request #5914

open

provide drupal installation profile for multilingual sites

Added by Andreas Kohlbecker almost 8 years ago. Updated almost 2 years ago.

Status:
New
Priority:
New
Category:
cdm-dataportal
Target version:
Start date:
Due date:
% Done:

50%

Estimated time:
(Total: 0:00 h)
Severity:
normal
Tags:

Description

requires steps:

1. install the required modules

IMPORTANT*: The translations supplied with the cdm_dataportal module will only be imported during the module installation if the according languages are set up *before installing the module!!!!

  1. enable language and i18n & i10N modules (see #5913 for details)

  2. enable all languages provided with the cdm_dataportal module.

  3. import the translations:

first install and enable l10n_upate

drush -l "<drupal-site>" en l10n_update

then import the translations

drush l10n-update-refresh
drush l10n-update --languages=...
  1. enable the cdm_dataportal module

Alternatively we could provide easy to use functions that allow portal maintainers to activate languages and to automatically import the according translations.

2. setup the language switcher

  1. place 'Language switcher' block in reqion 'navigation bar' and set the block title to ''

  2. add the following css rules to the 'CDM DataPortal base theme' 'User defined styles':

#block-locale-language {
  margin-top: -2.8em;
  float: right;
}

ul.language-switcher-locale-session {
  padding-right: 5px;
}
ul.language-switcher-locale-session li {
 display: inline;
}
ul.language-switcher-locale-session li a:link, 
ul.language-switcher-locale-session li a:visited {
 color: white;
}

3. Configure content types

This is recommended for the content types article and Basic page:

  1. in admin/structure/types/manage/{content_type} :

a. Publishing options > Multilingual support: (x)Enabled, with translation

a. submit form

a. Multilingual settings > Extended language options: Set current language as default for new content & [x Require language (Do not allow Language Neutral).

  1. admin/structure/types/manage/{content_type}/display :

a. set Language to Hidden

  1. go to /node/1/translate and click add translation or directly go to /node/add/page?translation=1&target=es}}. This will create {{{node/2 as spanish translation of node/1

5. Site set up

  1. go to /admin/config/system/site-information?variable_realm_key_language=es and set the spanish Default front page: [node/2]

  2. if you need to tranlate the site name, go to the same page as above and set the Site name

  3. multilingual front page variable : admin/config/regional/i18n/variable Site information > [x] Default front page

6. Set up menus

  1. in admin/structure/menu/manage/main-menu/edit Multilingual options >> Translation mode set (x) Fixed Language. and choose Language English

  2. got to admin/config/regional/translate/i18n_string check Menu and [x Clean up left over strings and submit the form

  3. Now a new Menu items can be added. The language of the menu item is determined by the node language it is pointing to.

7. Set permissions

Add permissions to @CDM admin@:

administer content translations 
administer languages

translate content               
translate interface             
translate user-defined strings 

Creating Profiles

Examples and Templates

The drupal module l10n_install could serve as template for our own installation profile. Source code for Drupal 7 is found here: http://cgit.drupalcode.org/l10n_install/tree/?h=7.x-1.x


Subtasks 3 (1 open2 closed)

feature request #5911: deploy spanisch translation with the cdm_dataportal moduleClosedAndreas Kohlbecker

Actions
bug #5912: translatable dynamic strings conform to drupal policyClosedAndreas Kohlbecker

Actions
feature request #5913: enable required i18n modules by defaultNewAndreas Kohlbecker

Actions

Related issues

Related to EDIT - task #8863: Create full documentation on multilingual setup of the Data Portal In ProgressKatja Luther04/27/202204/29/2022

Actions
Related to EDIT - task #10010: Install Spanish for Mexico Eflora dataportalClosedKatja Luther04/05/202204/08/2022

Actions
Actions #1

Updated by Andreas Müller almost 8 years ago

  • Assignee changed from Andreas Müller to Andreas Kohlbecker
  • Category changed from architecture to dataportal
Actions #2

Updated by Andreas Kohlbecker almost 8 years ago

  • Target version changed from Unassigned CDM tickets to Release 4.4
Actions #3

Updated by Andreas Kohlbecker almost 8 years ago

  • Priority changed from New to Priority13
Actions #4

Updated by Andreas Kohlbecker over 7 years ago

  • Description updated (diff)
  • Category deleted (cdm-dataportal)
  • Target version changed from Release 4.4 to Unassigned CDM tickets
  • Keywords set to multilingual
Actions #5

Updated by Andreas Kohlbecker over 7 years ago

  • Private changed from Yes to No
Actions #6

Updated by Andreas Kohlbecker over 7 years ago

  • Category set to Import
Actions #7

Updated by Andreas Müller about 2 years ago

  • Related to task #8863: Create full documentation on multilingual setup of the Data Portal added
Actions #8

Updated by Andreas Müller about 2 years ago

  • Related to task #10010: Install Spanish for Mexico Eflora dataportal added
Actions #9

Updated by Katja Luther almost 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF