Class: TranslationLogger
- Inherits:
-
Object
- Object
- TranslationLogger
- Defined in:
- lib/jekyll/gettext/plugin.rb
Instance Method Summary collapse
- #call(unfound) ⇒ Object
-
#initialize ⇒ TranslationLogger
constructor
A new instance of TranslationLogger.
- #translations ⇒ Object
Constructor Details
#initialize ⇒ TranslationLogger
Returns a new instance of TranslationLogger.
9 10 11 |
# File 'lib/jekyll/gettext/plugin.rb', line 9 def initialize @translations = [] end |
Instance Method Details
#call(unfound) ⇒ Object
13 14 15 |
# File 'lib/jekyll/gettext/plugin.rb', line 13 def call(unfound) @translations.push(unfound) end |
#translations ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/jekyll/gettext/plugin.rb', line 17 def translations @translations.map do |msgid| translation = GetPomo::Translation.new translation.msgid = msgid translation.msgstr = "" translation end end |