diff --git a/utilities/i18nChecker/i18nChecker.rb b/utilities/i18nChecker/i18nChecker.rb new file mode 100644 index 00000000..39b14c4a --- /dev/null +++ b/utilities/i18nChecker/i18nChecker.rb @@ -0,0 +1,143 @@ +=begin +-------------------------------------------------------------------------------- + +A utility routine that scans I18n-related properties files and Freemarker +templates for obvious issues. + +Properties files: + Warn if a specialized file has no default version. + Warn about duplicate keys, keys with empty values. + Warn about file reference values with no corresponding file + 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. + +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