-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create islandora-8-multilingual.md #1093
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f393bfd
Create islandora-8-multilingual.md
Natkeeran 4c72b93
Update islandora-8-multilingual.md
Natkeeran e1baa56
Update islandora-8-multilingual.md
Natkeeran 8fb3b39
Update islandora-8-multilingual.md
Natkeeran 78dad33
Rename islandora-8-multilingual.md to multilingual.md
Natkeeran 6bb7833
Update mkdocs.yml
Natkeeran d7bff1b
Update mkdocs.yml
Natkeeran 29a1325
Merge branch 'master' into Natkeeran-patch-3
Natkeeran a2d2084
Update mkdocs.yml
Natkeeran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Islandora 8 enables you to build full fledged multilingual repositories leveraging the multilingual support provided by Drupal core modules. In this guide, we will describe the steps needed to setup a basic multilingual Islandora 8 site. | ||
|
||
Drupal 8 comes with four modules for [multilingual support](https://www.drupal.org/docs/8/multilingual/choosing-and-installing-multilingual-modules). Islandora 8 enables Language and Content Translation modules by default. | ||
|
||
## Adding Languages | ||
From the top menu, go to Configuration >> Regional and language >> Languages (`http://localhost:8000/admin/config/regional/language`). Add a language. | ||
|
||
You can place the default language selector block to switch between languages. To create the language switcher block go to Structure >> Block layout. Click Place block in a region of your choice. Search for `Language switcher` block and click `Place block`. | ||
|
||
## Adding Multilingual Menus | ||
From the top menu, go to Configuration >> Regional and language >> Content language and translation. Check `Custom menu link` under `Custom language settings`. Scroll down to `Custom menu link` section and check all the relevant fields and Save the configurations. Clear the cache (Configuration >> Development >> Performance). | ||
|
||
From the top menu, go to Structure >> Menu. Edit "Main navigation" menu. Default home menu item cannot be translated due to [this issue](https://www.drupal.org/project/drupal/issues/2838106). Disable that menu item. Click `Add link` to create a new menu item. Provide a menu title (i.e Home) and input `<front>` for the link field. Save. Right click on the Operations beside the new menu link and click the Translate button. Translate the menu link title for the language added above and save. | ||
|
||
Go back to home. The language switcher will enable you to switch the language/content of the menu and content. | ||
|
||
## Adding a Multilingual Repository Item | ||
From the top menu, go to Content >> Add content >> Repository item. Provide the required fields and save the object. Click the Translate tab of the object, provide a title in the second language and fill any translatable fields (i.e description). Add the media for the object. Media object can be translated similar to the repositiry item node. | ||
|
||
Go back to home, you should be able to view content in the language selected in the language switcher. | ||
|
||
## Field Label Translations | ||
If you need the field labels of the Repositiry Item displayed in a different language, additional configuration is needed. `Configuration translation` module in the core needs to be enabled. Note that this will enable User Interface translation as well. Each field label needs to be translated. Cache should be cleared to see the changes. | ||
|
||
|
||
## Further Reading | ||
* [Multilingual guide](https://www.drupal.org/docs/8/multilingual) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The section is titled Menus in Drupal, not Menu