Difference between revisions of "Default language"

From ICA-AtoM
Jump to navigation Jump to search
Line 6: Line 6:
  
 
This is done by making a change in the ''/apps/qubit/config/settings.yml'' file. At the very bottom of the file (approximately line 97) is 'default_culture' setting. There may be a '#' character which comments out this setting. Delete the '#' and change the value from 'en' to the letter [http://www.loc.gov/standards/iso639-2/php/code_list.php ISO-639-'''1'''] for your preferred default language, e.g. 'pt' for Portuguese, 'nl' for Dutch, 'fr' for French, etc.
 
This is done by making a change in the ''/apps/qubit/config/settings.yml'' file. At the very bottom of the file (approximately line 97) is 'default_culture' setting. There may be a '#' character which comments out this setting. Delete the '#' and change the value from 'en' to the letter [http://www.loc.gov/standards/iso639-2/php/code_list.php ISO-639-'''1'''] for your preferred default language, e.g. 'pt' for Portuguese, 'nl' for Dutch, 'fr' for French, etc.
 +
 +
The ICA-AtoM configuration files use the YAML format, which uses spaces and linebreaks as delimiters. Therefore, if you delete the '#' character be careful to leave exactly four spaces from the left column to the first letter in 'default_language'.
 +
 +
Once you make this change and save the settings.yml file, you will have to delete the cache for this setting to take effect. The simplest way to do that is to delete the contents of the /cache directory.

Revision as of 23:48, 2 March 2009

Please note that ICA-AtoM is no longer actively supported by Artefactual Systems.
Visit https://www.accesstomemory.org for information about AtoM, the currently supported version.

Configure the default language

Main Page > (UM) User manual > UM-7 Administer ICA-AtoM > UM-7.6 Configure the default language

When you first install ICA-AtoM, the site's default language is set to English. This means that whenever a user visits your site it will automatically load the English interface. However, you may wish to have the site load in another language by default.

This is done by making a change in the /apps/qubit/config/settings.yml file. At the very bottom of the file (approximately line 97) is 'default_culture' setting. There may be a '#' character which comments out this setting. Delete the '#' and change the value from 'en' to the letter ISO-639-1 for your preferred default language, e.g. 'pt' for Portuguese, 'nl' for Dutch, 'fr' for French, etc.

The ICA-AtoM configuration files use the YAML format, which uses spaces and linebreaks as delimiters. Therefore, if you delete the '#' character be careful to leave exactly four spaces from the left column to the first letter in 'default_language'.

Once you make this change and save the settings.yml file, you will have to delete the cache for this setting to take effect. The simplest way to do that is to delete the contents of the /cache directory.