Skip to content

Multilingual Support

Nigel Banks edited this page Oct 24, 2013 · 3 revisions

First enable the Locale Module.

Then download https://drupal.org/project/i18n, it requires https://drupal.org/project/variable so you must download and enable that module as well. These modules will allow you to provide translations for various parts of your site aside from what Locale supports by default. You can enable them as per your translation requirements.

At the very least you will need to enable String translation to have support for translating SOLR Fields and Object Display Metadata.

To configure String translation navigate to: http://yoursite.com/admin/config/regional/i18n.

Check to make sure you have the following settings, make sure that you set Source language to English as modules that provide this functionally use English as the default language.

multilingual-settings multilingual-settings-strings

Next navigate to the Languages page and add any languages you wish to support: http://yoursite.com/admin/config/regional/language

Click on + Add Language and select the language you wish to enable. I've added Polish.

languages-list

Then set up the language configuration, click on the Detection and Selection tab or navigate to http://yoursite.com/admin/config/regional/language/configure.

You can set the order of detection and enable one or more methods of detecting the user language.

I'd recommend setting it to the following order:

languages-detection-and-selection

Now navigate to Translate Interface page: http://yoursite.com/admin/config/regional/translate

Select Import and import the Drupal Core Site translation files (*.po files) you require, they can be found here: https://localize.drupal.org

Make sure it's for your current version of Drupal, you may need to update your Drupal site to the latest version.

translate-import

You man have to refresh the string table for islandora, navigate to http://yoursite.com/admin/config/regional/translate

and select Strings. Select "Islandora" and "Islandora Solr" if displayed and submit the form.

translate-strings

You can now provide translations for the various strings provided by Islandora and Islandora Solr

You can see what languages you have installed and which have translations provided by the given strings. Languages that do not have translations have a strike-though.

Try limiting your searches to "Islandora" and "Islandora Solr" to avoid access noise.

translate-import

⚠️ This wiki is an archive for past meeting notes. For current minutes as well as onboarding materials, click here.

Clone this wiki locally