Neuen Kommentar schreiben

Welcome to the 4th installment of an 8-part blog series we're calling "The Ultimate Guide to Drupal 8." Whether you're a site builder, module or theme developer, or simply an end-user of a Drupal website, Drupal 8 has tons in store for you! This blog series will attempt to enumerate the major changes in Drupal 8. Successive posts will gradually get more technical, so feel free to skip to later parts (once they're published) if you're more on the geeky side.

Please note that since Drupal 8 is still under active development, some of the details below may change prior to its release. Still, since Drupal 8 is now feature-frozen, hopefully most info should remain relevant. Where applicable, Drupal 7 contrib equivalents of Drupal 8 features will be noted.

Multilingual++

In our last episode, we ran through a list of Site Builder Improvements in Drupal 8. One area that we skipped, since it's worthy of its own dedicated article, is Drupal 8's new multilingual capabilities.

(Note that most of this article has borrowed liberally from Gábor's excellent Drupal 8 Multilingual Tidbits series. So if you're interested in all of the details about D8MI, head over there for more!)

"Multilingual First"

You'll see Drupal 8's multilingual roots from your very first moment: at the beginning of the installer:

Drupal 8 auto-detects the language from your browser, and then auto-selects its option in the drop-down, for convenience. But even better, if you proceed in a non-English language (or later add a new language to your site), it'll automatically download the latest interface translations from https://localize.drupal.org/ so you can perform your entire site installation and set up in your native language! This is in contrast to Drupal 7, which presented users with a wall of text (in English, of course :P) explaining how to put download files into particular directories in order to proceed.

This works for right-to-left languages such as Arabic, too! (Note that Drupal 8 is still in development, so some translations may still be missing some strings, as is the case here.)

And finally, Drupal 8 also does away with the concept of English as a "special" language. If you select a language other than English here, the English option will no longer show up in your site configuration unless explicitly turned on. Also, because English is just a "normal" language, you can make English "translatable" so that you can convert e.g. "Log in / Log off" to "Sign in / Sign off."

Hooray for making Drupal more accessible to non-English speakers! (aka, the vast majority of the world. :))

Fewer modules, packing a bigger punch

Building a multilingual site in Drupal 7 requires somewhere around 30 contributed modules, and a lot of tricky configuration. In Drupal 8, all of this functionality (and more!) has all been streamlined into just four modules, together actually making Drupal 8 more multilingual-friendly than all of the Drupal 7 contributed modules combined!

Why four modules and not just one, you might ask? Because single-language non-English sites are also a valid use case, and even multilingual sites may or may not need some of these features (for example, a desire to always keep user-generated content in its native language). This sort of granularity allows site builders to choose whatever combination meets their sites' specific use cases.

Language selection on ALL the things!

Everything from system configuration settings, to site components such as blocks, views, and menus, to individual field values on content are translatable.

For "content" entities (comments, nodes, users, taxonomy terms, and so on) you have even more options, like the ability to configure the visibility of the language selector, and whether newly created content defaults to the site's default language, the content author's preferred language, or some other value.

More streamlined translation UIs

Additionally, tons of effort has been spent improving the user experience of Drupal 8's multilingual functionality. You'll see much more streamlined translation and well-integrated interfaces throughout.

Transliteration support

One final really handy addition to Drupal 8 is the inclusion of the Transliteration module to core. It automatically converts special characters such as "ç" and "ü" to "c" and "u" for friendlier machine names, file uploads, paths, and search results.

...And More!

Here are some extras for site builders that are worth mentioning:

Several of the pages in core that are using Views allow for much easier language-based customization, especially the admin views, where adding language filters, a language column, etc. are easy to click together.

Plain text

Keine HTML-Tags erlaubt.

Internet- und E-Mail-Adressen werden automatisch umgewandelt.

HTML - Zeilenumbrüche und Absätze werden automatisch erzeugt.

Filtered HTML

Use [acphone_sales], [acphone_sales_text], [acphone_support],
[acphone_international], [acphone_devcloud], [acphone_extra1] and
[acphone_extra2] as placeholders for Acquia phone numbers. Add class
"acquia-phones-link" to wrapper element to make number a link.

To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.