COmanage Registry can be localized (configured with the deployment-specific text) in two ways: by creating language translation files, or by creating dynamic localizations.
Note that while most texts can be localized as described here, a few stragglers are not yet handled by the common mechanism (CO-117).
Language Translation Files
Language strings are rendered via lookup in a language translation file, which can be found in the file app/Lib/lang.php
. This is the best option to change the language of Registry. Note that the language in use is currently a platform wide setting, it cannot yet be adjusted on a CO-specific basis (CO-424).
Registry currently uses a custom localization format, which is scheduled to be replaced in a future release (CO-351).
Dynamic Localizations
Specific text strings can be dynamically changed on a per-CO basis, via Collaborations > CO > Configuration > Localizations. It is necessary to know the text key, which unfortunately is best found at the moment either by looking through the source code or by guessing. Changes take effect immediately, but only within the selected CO. This is the best option to change a small number of text strings.
As of Registry v4.0.0, dynamic localizations made in the COmanage CO will apply to the entire platform. However, if the same key is localized in a CO, the CO-specific localization will take precedence over the platform localization.
CSS Stylesheet |
---|
.home-banner { background: #ffffff; color: #d44415; font-size: 20px; padding: 20px; } .home-banner h1 { color: #5e2b97; font-size:2.5em; } .title-box { border: 0px solid #ff5b2d padding: 10px; padding-bottom: 30px; } .title-box > h2 { /*background: #5e2b97;*/ border-top: 3px solid #c2d6d6; bottom: 10px; /*color: #c2d6d6;*/ /*margin-left: -10px;*/ /*margin-right: -10px;*/ padding: 1em 0 0; position: relative; } .cfm-blog-image > img { display: block; margin-left: auto; margin-right: auto; } .lead > p { line-height: 2; font-size: 1.5em; } .about-box { border-top: 1px solid #c2d6d6; border-bottom: 2px solid #c2d6d6; padding: 10px; padding-top: 30px; padding-bottom: 30px; } .about-box > p { font-size: 0.9em; font-style: italic; } .about-box > h3 { font-size: 0.9em; } } |