Difference between revisions of "Default language"
Line 6: | Line 6: | ||
This is done by making a change in the "/apps/qubit/config/settings.yml" file. This will have to be done by a system administrator who has access to the ICA-AtoM application files on your web server. | This is done by making a change in the "/apps/qubit/config/settings.yml" file. This will have to be done by a system administrator who has access to the ICA-AtoM application files on your web server. | ||
− | + | <pre> | |
+ | # apps/qubit/config/settings.yml | ||
+ | all: | ||
+ | .settings: | ||
+ | default_culture: en | ||
+ | </pre> | ||
+ | |||
+ | If you can't find the setting "default_culture", add it. The default value is "en", but you can use any other RFC 5646 code for your preferred default language, e.g. "fr" for French, "nl" for Dutch, "pt" for Portuguese, "es" for Spanish, etc. | ||
The ICA-AtoM configuration files use the YAML format, which uses spaces and line breaks 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". | The ICA-AtoM configuration files use the YAML format, which uses spaces and line breaks 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 | + | Once you make this change and save the settings.yml file, you will have to [[Clear cache|clear the cache]] for this setting to take effect. The simplest way to do that is to delete the contents of the "/cache" directory. On the very next ICA-AtoM page request the contents of this "/cache" directory will be re-created, including a new default language configuration setting. |
[[Category:User manual]] | [[Category:User manual]] |
Revision as of 10:13, 26 March 2012
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.
Main Page > User manual > Administer > 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. This will have to be done by a system administrator who has access to the ICA-AtoM application files on your web server.
# apps/qubit/config/settings.yml all: .settings: default_culture: en
If you can't find the setting "default_culture", add it. The default value is "en", but you can use any other RFC 5646 code for your preferred default language, e.g. "fr" for French, "nl" for Dutch, "pt" for Portuguese, "es" for Spanish, etc.
The ICA-AtoM configuration files use the YAML format, which uses spaces and line breaks 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 clear the cache for this setting to take effect. The simplest way to do that is to delete the contents of the "/cache" directory. On the very next ICA-AtoM page request the contents of this "/cache" directory will be re-created, including a new default language configuration setting.