1 / 7

VIVO-652

VIVO-652. VIVO language strings must be included in the theme. Problem. Currently, all properties used in VIVO templates are specified in the theme file A theme whose templates use no language properties still needs a large all.properties file. Challenges.

byron-gay
Download Presentation

VIVO-652

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VIVO-652 VIVO language strings must be included in the theme.

  2. Problem • Currently, all properties used in VIVO templates are specified in the theme file • A theme whose templates use no language properties still needs a large all.properties file.

  3. Challenges • Overriding is per-property, not per-file. • Must be a clear hierarchy: which file overrides which others: • Must adjust to languages: • all.properties • all_en.properties • all_en_US.properties • all_en_CA.properties

  4. Challenges • Want to keep open the possibility of named files: • visual.properties • "${i18n('visual').visualization_label}"

  5. Hierarchy by filename • Vitro: all.properties • VIVO: all-vivo.properties • VIVO-cornell: all-vivo-cornell.properties • Theme: wilma/all.properties • Other possibilities: • all.properties, all2.properties, all3.properties • 3 overrides 1?

  6. Hierarchy by location • Examples: • Vitro: i18n/all.properties • VIVO: i18n/vivo/all.properties • VIVO-Cornell: i18n/vivo/cornell/all.properties • Theme: wilma/i18n/all.properties • Rule: • Child directory are higher in the hierarchy than parent directory • Lower is higher?

  7. Separate hierarchies • Examples: • Vitro: i18n/all.properties • VIVO: i18n/vivo.properties • VIVO-Cornell: i18n/cornell.properties • Theme: wilma/i18n/theme.properties • Usage: specify which file: • title="${i18n('vivo').menu_support}"

More Related