Drupal 8 multilanguage, how it works

16
Drupal 8 multilanguage, how it works Anton Ivanov

Transcript of Drupal 8 multilanguage, how it works

Page 1: Drupal 8 multilanguage, how it works

Drupal 8 multilanguage,how it works

Anton Ivanov

Page 2: Drupal 8 multilanguage, how it works

How to on Drupal 7LocaleContent translationauto translations import?

Page 3: Drupal 8 multilanguage, how it works

How to on Drupal 7LocaleContent translationLocalization update

Page 4: Drupal 8 multilanguage, how it works

How to on Drupal 7Internationalizationfields translation entity?

Page 5: Drupal 8 multilanguage, how it works

How to on Drupal 7InternationalizationEntity Translation

$node->field_name['und'][0]['value'] = 'Some value';

$node->field_name['en'][0]['value'] = 'English value';$node->field_name['fr'][0]['value'] = 'Franch value';

Page 6: Drupal 8 multilanguage, how it works

Drupal 8 Installation Language is first Translations auto install Easy translation changes deploy

Page 7: Drupal 8 multilanguage, how it works

Drupal 8 Core modules Configuration Translation Content Translation Interface Translation Language

Page 8: Drupal 8 multilanguage, how it works

Drupal 8 Language page CRUD language No language unpublish English not required Override English strings

Page 9: Drupal 8 multilanguage, how it works

Drupal 8 Language detect Selected language Browser User Session URL Account administration pages

Page 10: Drupal 8 multilanguage, how it works

Drupal 8 Blocks Everything in blocks

Primary & Secondary menus Status messages Breadcrumbs Page title Page local tasks (tabs) Help text

Any quantity of block instances

Page 11: Drupal 8 multilanguage, how it works

Drupal 8 Views Pages & blocks is views now

Main page People page Content page New users block Recent content And many other..

Rendering language selection

Page 12: Drupal 8 multilanguage, how it works

Drupal 8 Config system YML files Active settings on DB Configs is translatable Translation restriction

Page 13: Drupal 8 multilanguage, how it works

Drupal 8 Node translation 2 ways on Drupal 7 Fields lvl on Drupal 8 only

Enable translation and select fields Set translation permissions (Entity/Bundle) Add new translation

Fields translation variants

Page 14: Drupal 8 multilanguage, how it works

Drupal 8 Node duplicate Translation with entity duplication

Not enable translation for node type Create node on “base” language Use Node clone (language copy creation) Create view with language filter

Page 15: Drupal 8 multilanguage, how it works

Drupal 8 Changes No Language neutral used: Not applicable

and Not specified instead Machine names transliteration from the box No get_t() & st() only t() now Placeholder “!” was removed use “:” on t() instead Context available on JS files also

Drupal.t('May', {}, {context: "Long month name"}); String translation edit on translation

search page

Page 16: Drupal 8 multilanguage, how it works

Anton Ivanov

Thank You! Questions?