Top Level Namespace
- Includes:
- Gonzui, Gonzui::GetText, WEBrick
Defined Under Namespace
Modules: FileUtils, Gonzui, URI, WEBrick Classes: Array, Dir, File, NullObject, ProgressBar, ReversedProgressBar, String
Constant Summary
Constants included from Gonzui
Gonzui::DB_VERSION, Gonzui::GONZUI_URI, Gonzui::HTTP_PORT, Gonzui::LicenseRegistry, Gonzui::OtherLicense, Gonzui::PKGDATADIR, Gonzui::SYSCONFDIR, Gonzui::VERSION
Instance Method Summary collapse
Methods included from Gonzui::GetText
#gettext, #gettext_noop, #load_catalog, #set_catalog
Instance Method Details
#main ⇒ Object
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/gonzui/gettext.rb', line 119 def main if ARGV.length < 2 puts "usage: ruby catalog-validator.rb <catalog directory> <source...>" exit end catalog_directory = ARGV.shift catalog_repository = CatalogRepository.new(catalog_directory) ok = true catalog_repository.each {|lang_name, catalog| set_catalog(catalog) ARGV.each {|source_file| validator = CatalogValidator.new(source_file, catalog) validator.validate validator..each {|| printf("%s: %s\n", lang_name, ) } ok = (ok and validator.ok?) } } if ok then exit else exit(1) end end |