Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 8 Quick Start Guide

You're reading from   Drupal 8 Quick Start Guide Get up and running with Drupal 8

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789340310
Length 128 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
J. Ayen Green J. Ayen Green
Author Profile Icon J. Ayen Green
J. Ayen Green
Arrow right icon
View More author details
Toc

User language selection

Being able to offer content in multiple languages is great, but only if the site visitor can take advantage of it. Drupal makes that easy with a language switcher. 

We need to enable another module. Navigate to Extend (/admin/modules) and enable the Language Icons module. Drupal will let you know that this module depends on the Interface Translation module and will ask whether you want to proceed with enabling both. Go ahead.

The Language Icons module provides flag icons for each language. It does this by way of a block that needs to be placed somewhere on the page. Let's do that.

  1. Navigate to Structure | Block layout (/admin/structure/block). You'll need to choose a region of the screen in which to have the language switcher block appear, such as Header or Sidebar first. I chose the latter.
  2. Click the Place block button beside whichever...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime