Skip to content

Conversation

@luca-rath
Copy link
Contributor

@luca-rath luca-rath commented Jul 7, 2020

Add additional languages to the website

Goal

Our website is gaining traction in germany and france. To communicate with our new users in their native language we
want to add german an french as additional languages and translate our existing content.

Steps

  • Add the new languages to the config/webspaces/example.xml file
  • Run bin/console sulu:document:initialize to initialize the new languages
  • Change the url configuration in the same file
  • Log into the admin UI with user "admin" and password "admin"
  • Give the admin user permissions for the new languages (Contacts -> Edit Adam Ministrator -> Permissions -> Roles -> Add new languages).
  • Add content in the new languages
  • Implement a language switcher in your templates/base.html.twig

Hints

  • Use {{ dump(urls) }} in the Twig template to find out how Sulu provides urls for multiple languages

More Information

As Sulu is built for internationally focused companies, managing localized content is a core feature of the system.
Sulu does not only handle different languages, but also allows to manage different variations of a single language
among different countries.

Available localizations for the content of the website are defined in the webspace configuration file.

Links

@alexander-schranz alexander-schranz added the assignment Pull request for a assignment solution label Sep 23, 2020
@niklasnatter niklasnatter force-pushed the assignment/04 branch 2 times, most recently from 1325021 to d8834f7 Compare September 23, 2020 10:47
@niklasnatter niklasnatter force-pushed the assignment/04 branch 3 times, most recently from 95301c8 to 431e715 Compare October 23, 2020 15:14
@niklasnatter niklasnatter force-pushed the assignment/04 branch 2 times, most recently from 3c653f3 to e685d78 Compare March 31, 2021 10:51
@niklasnatter niklasnatter force-pushed the assignment/04 branch 2 times, most recently from 7d90680 to 671d719 Compare May 27, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assignment Pull request for a assignment solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants