Multilingual Drupal 8 – Drupal OpenDays Dublin 2014 – Apologise for my english



Multilingual Drupal 8 – Drupal OpenDays Dublin 2014 – Apologise for my english

0 0


d8multilingual

Multilingual in Drupal 8 presentation Drupal Open Days Dublin 2014

On Github luisrc7 / d8multilingual

Multilingual Drupal 8

Drupal OpenDays Dublin 2014

By: Luis Rodriguez

Apologise for my english

Why Multilingual

Could be a good feature and the main reason is to

Two official languages

Public sector work

Europe

Inprove your website / business

In this presentation:

Install Drupal 8 in another language Core modules (out-of-the-box) Full translation example Drupal 7 differences

Drupal 7

To get more options you have to download your language file and placed in your drupal folder installation and start the installation again

Drupal 7

And you just have the options that you have intalled availables

Drupal 8 - Select language

First of all this is how it looks the new installation interface for Drupal 8

Drupal 8 - Select language

And you can select any of multiple languages

Drupal 8 - Installed

After the Drupal 8 installation in spanish

Drupal 8 - Add language

Drupal 8 - New language

Please help to translate Drupal

https://localize.drupal.org

This is a good moment to ask for volunteers to help to translate Drupal 8 You can find all the information here: https://localize.drupal.org< And you can check the translation Progress

List of modules

Explain what is the function of each module The Content Translation module allows you to create and manage translations for your Drupal site content. You can specify which elements need to be translated at the content-type level for content items and comments, at the vocabulary level for taxonomy terms, and at the site level for user accounts. Other modules may provide additional elements that can be translated. For more information, see the online handbook entry for Content Translation. The Configuration Translation module allows configurations to be translated into different languages. Views, your site name, contact module categories, vocabularies, menus, blocks, and so on are all stored within the unified configuration system and can be translated with this module. Content, such as nodes, taxonomy terms, custom blocks, and so on are translatable with the Content Translation module in Drupal core, while the built-in user interface (such as registration forms, content submission and administration interfaces) are translated with the Interface Translation module. Use these three modules effectively together to translate your whole site to different languages.

Content Translation

By default you cannot add content in a specific language, first you must enable Content Translation You have to enable the translation for each specific content type.

Content Translation

Now you can add the content in a different language.

Content Translation

Now you have the translation tab to translate the node.

Content Translation

Now we are creating a translation for Article 2 in english.

Language Negotiation

Now we have to decide how to show the content in different languages.

Language Negotiation

We could place a switch block.

View Restriction

Now we have to restrict the views to show only selected language.

View Restriction

Now we have to restrict the views to show only selected language.

Result - English selected

Explain why the other article is always showing.

Result - Spanish selected

Explain why the other article is always showing.

No Language

Explain why the other article is always showing.

Summary

Translate admin interface.

Go to manage -> configuration -> Reg. and Language -> Languages and you can choose the website languages, then you should change your user language.

Summary

Translate admin interface.

Go to manage -> configuration -> Reg. and Language -> Languages and you can choose the website languages, then you should change your user language.

Summary

Create content in one language.

Go to content -> add content -> Article and we create a node selecting a language.

Summary

Translate actual content.

Go to tab translate tab and add or edit a translation.

Summary

Change view filter

Display only proper content and generic.

Summary

Menu Translation

This feature is not ready jet.

How to translate a menu, external link.

Summary

Taxonomy Translation

Like the content, it is not fully working now. Change the new entity FAPI

Summary

Translate String / Views

Like the content, it is not fully working now. Change the new entity FAPI

Summary

Language negociation

How to give the chance to switch language

Drupal 7

Internationalization

https://drupal.org/project/i18n

Internationalization views

https://drupal.org/project/i18nviews

Entity translation

https://drupal.org/project/entity_translation

String Overrides

https://drupal.org/project/stringoverrides

Translation Overview

https://drupal.org/project/translation_overview

Title

https://drupal.org/project/title

These are a bunch of modules you had to install.

Drupal 7

This is a screenshot from almost any multilingual site.

Go to content -> add content -> Article and we create a node selecting a language.
Go to content -> add content -> Article and we create a node selecting a language.

Resources

Drupal - drupal.org

Reveal.js on GitHub

I've just used Drupal 8 and this jQuery HTML framework for the presentation.

Thanks for listening

luis@iterate.ie

@luisrc7

Thanks, here they are my contacts.

Q & A

Any Question???