Sha256: 4cd2536a1fffc5e76094c06f9dd8db2eb3b826f65f97e15c245c3ddc78bbc09a
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
=begin tools.rb - Utility functions Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby or LGPL. =end require 'gettext/tools' require 'gettext_activerecord' require 'gettext_activerecord/parser' module GetText extend self alias :create_mofiles_org :create_mofiles #:nodoc: alias :update_pofiles_org :update_pofiles #:nodoc: # update_pofiles for ActiveRecord. # In this method, GetText::ActiveRecordParser.init is called # with "options". # (e.g.) # GetText.update_po_files("foo", Dir.glob("lib/**/*"), "1.0.0", :untranslate_classes = ["UntranslateClass"] def update_pofiles(textdomain, files, app_version, options = {}) GetText::ActiveRecordParser.init(options) GetText.update_pofiles_org(textdomain, files, app_version, options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gettext_activerecord-2.1.0 | lib/gettext_activerecord/tools.rb |