Version 2.1 é uma versão legada, e esses documentos já não são mais mantidos.

Default language

Administrators can easily change the available languages in the Language menu in the Site settings. When a user visits your AtoM site it will load the English interface by default. However, you may wish to have the site load in another language.

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 AtoM application files on your web server.

apps/qubit/config/settings.yml

all:
 .settings:
  default_culture: en

If you cannot find the setting default_culture, add it under the section .settings. The default value is “en”, which can be replaced with 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 AtoM configuration files use the YAML format, where the data structure hierarchy is maintained by outline indentation. The specific number of spaces in the indentation is unimportant as long as parallel elements have the same left justification and the hierarchically nested elements are indented further. Notice that strings do not require enclosure in quotations.

Once you make this change and save the settings.yml file, you will have to clear the cache for this setting to take effect.

Back to top

Version 2.1

Conteúdos