Method: GetText::PoMessage#add_comment
- Defined in:
- lib/gettext/tools/pomessage.rb
#add_comment(new_comment) ⇒ Object
Support for extracted comments. Explanation s. www.gnu.org/software/gettext/manual/gettext.html#Names
45 46 47 48 49 50 51 |
# File 'lib/gettext/tools/pomessage.rb', line 45 def add_comment(new_comment) if (new_comment and ! new_comment.empty?) @comment ||= "" @comment += new_comment end to_s end |