Localization

Colectica Portal can be translated to other languages. This functionality can also be used to change the text that is displayed for any reason. For example, your organization may wish to use different words to refer to metadata items (e.g., “Sweeps” instead of “Studies”).

To localize Colectica Portal, complete the following steps.

Localize the Content

Note

See https://github.com/Colectica/ColecticaPortal.LocalizationStarter for a project template that includes everything you need to translate Colectica Portal.

Note

The localization project can be edited and built with the free Visual Studio Community Edition.

To translate these resources to a new language:

  1. Rename the two resource files with the appropriate language. For example, if you are translating to Danish, you can rename the two files in the Resources folder to DdiItemStrings.da.resx and PortalStrings.da.resx.
  2. Edit the text in the resource files with your translations.

Build the Localization Assembly

  1. Build the project. This should create a file named bin\Debug\Colectica.Portal.resources.dll.

Deploy and Configure your Localization

To test your localized resources:

  1. Create a folder inside your Colectica Portal deployment directory. The folder should have the same name as your language (e.g., da\ for Danish).
  2. Copy the bin\Debug\Colectica.Portal.resources.dll file into this folder.
  3. Update the Language setting in appsettings.json with the code of the language you wish to use.
  4. Restart the Colectica Portal application in IIS.