Module | GetText::ActiveRecordParser |
In: |
lib/gettext/parser/active_record.rb
|
Sets some preferences to parse ActiveRecord files.
"ClassName|FieldName" uses GetText.sgettext. So you don‘t need to translate the left-side of "|". See <Documents for Translators for more details(www.yotabanana.com/hiki/ruby-gettext-translate.html)>.
# File lib/gettext/parser/active_record.rb, line 61 61: def init(config) 62: if config 63: config.each{|k, v| 64: @config[k] = v 65: } 66: end 67: @ar_re = /class.*(#{@config[:activerecord_classes].join("|")})/ 68: end