-
Notifications
You must be signed in to change notification settings - Fork 65
Translations
Spotlight v2.0 provides new support for exhibit administrators and curators to create exhibits in multiple languages.
Translations can be managed for many user facing components within the Spotlight administrative dashboard directly. Multi language translations are now available for:
- general exhibit labels
- metadata field labels
- search related field labels
- browse category fields
- home, feature, and about pages
Spotlight's translations uses Rails i18n with an optional database backed backend, i18n-active_record. For adopters not using multilingual Exhibits, it is recommended to not change the I18n.backend
as it is in config/initializers/translation.rb
Spotlight v2.0 comes configured with ten languages out of the box, [de, en, es, fr, hu, it, nl, pt-BR, sq, zh]
. These are the languages chosen, only because they are the defaults available from Blacklight at the time of this feature development. To remove or add to this list, configure your config/application.rb
by setting the following:
# Setting English and Danish to be the only available languages
config.i18n_locales = {
da: 'Dansk',
en: 'English'
}
After doing this, you will likely also need to provide additional locales for Spotlight and other dependencies for your added language. Spotlight only has locale files available in English, but these can be can be translated to another language. Any additional language translations are most welcome as a contribution to the project.
Spotlight uses several other projects which may also need translations to take full advantage of Spotlight's internationalization.
- Blacklight - The parent project in which many translations are inherited from
- blacklight-gallery - Used by Spotlight to provide additional views
- blacklight-heatmaps - Useful for a map visualization
Configuration
- Blacklight
- Page widgets
- Resource scenarios
- Image sizes
- Queueing backends
- Creating a theme
- Configure S3 data storage
- Translations and Internationalization
- Adding new navigation menu items
Case studies
Building an exhibit
- Quickstart guide
- Configuration settings
- Adding and managing items
- Creating feature pages
- Creating about pages
- Creating browse categories
- Exhibit on exhibits - Stanford specific, yet generalizable
Development