Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExcerpt from homePageMaps.js
        if ( area == "global" ) {
            text = " " + i18nStrings.countriesAndRegions;
        }
        else if ( area == "country" ) {
            text = " " + i18nStrings.statesString;
        }

...

i18nChecker

i18nChecker

...

This is a set of Ruby scripts that are distributed with VIVO, in the utilities/languageSupport/i18nChecker directory. Use them to scan your language properties files and your freemarker templates. The scripts look for common errors in the files.

Scanning language properties files

...

  • Warn if a specialized file has no default version.
  • Warn about duplicate keys, keys with empty values.
  • Warn about keys that do not appear in the default version.
  • If the "complete" flag is set,
    • Warn if the default version is not found.
    • Warn about missing keys, compared to the default version.

Scanning Freemarker templates

...

  • Warn about visible text that contains other than blank space or Freemarker expressions.
  • Visible text is:
    • Anything that is not inside a tag and not between <script> tags
    • title="" attributes on any tags
    • alert="" attributes on <img> tags
    • alt=""   attributes on <img> tags
    • value="" attributes on <input> tags with submit attributes

...