Module: GetText
- Extended by:
- GetText
- Included in:
- ActiveRecord::Base, ActiveRecord::Errors, ActiveRecord::Errors, ActiveRecord::Migration, ActiveRecord::Migration, ActiveRecord::RecordInvalid, GetText, ActiveRecordParser, ActiveRecordParser, I18n
- Defined in:
- lib/gettext_activerecord/tools.rb,
lib/gettext_activerecord/parser.rb
Defined Under Namespace
Modules: ActiveRecordParser
Instance Method Summary collapse
-
#update_pofiles(textdomain, files, app_version, options = {}) ⇒ Object
update_pofiles for ActiveRecord.
-
#update_pofiles_org ⇒ Object
:nodoc:.
Instance Method Details
#update_pofiles(textdomain, files, app_version, options = {}) ⇒ Object
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"]
25 26 27 28 |
# File 'lib/gettext_activerecord/tools.rb', line 25 def update_pofiles(textdomain, files, app_version, = {}) GetText::ActiveRecordParser.init() GetText.update_pofiles_org(textdomain, files, app_version, ) end |
#update_pofiles_org ⇒ Object
:nodoc:
18 |
# File 'lib/gettext_activerecord/tools.rb', line 18 alias :update_pofiles_org :update_pofiles |