Table of Contents for
Drupal 8 Quick Start Guide

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Drupal 8 Quick Start Guide by J. Ayen Green Published by Packt Publishing, 2018
  1. Drupal 8 Quick Start Guide
  2. Title Page
  3. Copyright and Credits
  4. Drupal 8 Quick Start Guide
  5. Dedication
  6. Packt Upsell
  7. Why subscribe?
  8. Packt.com
  9. Contributors
  10. About the author
  11. About the reviewers
  12. Packt is searching for authors like you
  13. Table of Contents
  14. Preface
  15. Who this book is for
  16. What this book covers
  17. To get the most out of this book
  18. Download the color images
  19. Conventions used
  20. Get in touch
  21. Reviews
  22. Finding Your Way around Drupal
  23. Installing Drupal
  24. Readying the environment
  25. Running the Drupal installation script
  26. Site information
  27. Site maintenance account
  28. Regional settings
  29. Update notifications
  30. The behind-the-scenes tour
  31. Administration menu
  32. Tabs
  33. System message area
  34. Search widget
  35. User menu
  36. Main navigation
  37. Main content area
  38. Summary
  39. Structuring Content Types
  40. What is content?
  41. Content as fields
  42. Understanding content types
  43. Defining the content type
  44. Submission form settings
  45. Publishing options
  46. Display settings
  47. Menu settings
  48. Managing content type fields
  49. Designing a content type
  50. Content type settings
  51. Fielding the content type
  52. Field types
  53. Our content type field
  54. Adding fields to the content type
  55. Summary
  56. Managing Users
  57. User types
  58. User roles
  59. Managing permissions
  60. Users
  61. Creating a user account
  62. Summary
  63. Creating and Editing Content
  64. Using the WYSIWYG editor
  65. Title*
  66. Body
  67. Summary Field
  68. Body text
  69. Text format
  70. Tags
  71. Images
  72. Publishing the content
  73. Additional settings
  74. Revision log message
  75. Menu Settings
  76. Comment Settings
  77. URL Path Settings
  78. Authoring Information
  79. Promotion Options
  80. Completing the process
  81. Summary
  82. Making Drupal Even More Useful
  83. Pathauto
  84. Paragraphs
  85. Content moderation
  86. States
  87. Transitions
  88. Workflow application
  89. Summary
  90. Grabbing Global Readership
  91. Declaring additional languages
  92. Translating content
  93. User language selection
  94. Translating the user interface
  95. Summary
  96. Feeding the Masses – RSS
  97. Why feeds?
  98. Selecting content for a feed
  99. Modifying content for feed selection
  100. Pick-me flags
  101. Tags
  102. Views
  103. Creating the container view
  104. Creating the Pets feed
  105. Display name
  106. Title
  107. Format
  108. Feed settings
  109. Filtering the criteria
  110. Sort criteria
  111. Creating the Travel feed
  112. Title
  113. Feed settings
  114. Format
  115. Filtering criteria
  116. Creating the Leftovers feed
  117. Title
  118. Feed settings
  119. Format
  120. Filtering criteria
  121. Creating the Feed Links block
  122. Summary
  123. Welcome Home!
  124. BAD home page!
  125. Design improvements
  126. Too much content!
  127. No access to content
  128. No RSS feeds menu
  129. We need a Terms and Conditions page
  130. Making the changes
  131. Improving the Frontpage view
  132. Title
  133. Format
  134. Fields
  135. Filtering criteria
  136. Block settings
  137. Pager
  138. Adding an Archive
  139. Adding the RSS Feeds menu
  140. Fixing the Footer menu
  141. Summary
  142. Other Books You May Enjoy
  143. Leave a review - let other readers know what you think

Grabbing Global Readership

In the previous chapter we learned about expanding the capabilities and features of Drupal. In this chapter we will look at expanding our readership.

The internet makes the world a smaller place. You might create a blog or online store, assuming that your users will be domestic, and be surprised to find that some of them are half a world away. Then, after consideration, you might realize that with most of the world living somewhere outside your own country, global readership can expose your content to many more people.

There is a complicating factor, though. Many of these users—perhaps most—do not speak the same language. You could leave it up to the reader's browser to translate the content, but let's be honest, instantaneous translation such as that provided by Google is problematic at the least with regard to straightforward, unambiguous, dictionary-approved source text, but even more so with colloquial and idiomatic usage.

I often tell the story of a former client who wanted the UI of his English site to be available in Japanese as well. The site sold car parts. The site owner opted for low-budget translation, and that likely resulted in the use of online AI translation. The result was much lower than expected sales. Why? While the translation was fine for menu items such as carburetors and seats, the term used for Bodies turned out to mean Corpses. Oops!

If a global market is important for the increased usage and success of your site, it is worth having the translation done by those knowledgeable in the two languages and in similar style for both. In other words, using the Queen's English for content and Spanish street slang is probably not your intention. Nor is, again, using Spanish as an example, having the translation be proper Madrid Spanish while your readers are predominantly Latin American.

So you decide to have your content and UI professionally translated. Then what? Do you have to have the equivalent of two sites in order to support two languages?

That is, create separate menus and pieces of content for each? Nope. Drupal has you covered, and just how it does this is what we will be covering in this chapter:

  • How to declare additional languages
  • How to execute a UI translation
  • Entering content translations
  • Enabling the user to select a preferred language

When Drupal is installed, the installer selects a default language for the site. In most cases, that language is English. What if there are other languages spoken within our target market? What if our country has more than one official language, or unofficial languages, or English isn't either? The site can be configured to support additional languages, and that is what we must do in order to be able to take advantage of internationalization. To get started, navigate to the Extend page (/admin/modules).

Scrolling down, you will find the Multilingual section:

Each of these modules are part of Drupal's core, in core, and has a different purpose related to internationalization:

  • Configuration Translation: For translating configuration settings, such as views, site name, menus, and blocks
  • Content Translation: For translating content, such as nodes, taxonomy terms, and custom blocks
  • Interface Translation: For translating registration forms, content submission forms, and administration interfaces
  • Language: For declaring additional languages that are usable for translation
  • Language Icons: For providing flags to represent languages when switching between them