lib/gettext/tools/rmsgmerge.rb
# From GNU gettext source.
# 
# Merge the reference with the definition: take the #. and
#	#: comments from the reference, take the # comments from
# the definition, take the msgstr from the definition.  Add
# this merged entry to the output message list.      
From GNU gettext source.
Merge the reference with the definition: take the #. and
: comments from the reference, take the # comments from
the definition, take the msgstr from the definition.  Add
this merged entry to the output message list.
From GNU gettext source . Merge the reference with the definition : take the # . and : comments from the reference take the # comments from the definition take the msgstr from the definition . Add this merged entry to the output message list .
def change_reference_comment(msgid, podata)
        normal_comment = []
        dot_comment = []
        semi_comment = []
        is_fuzzy = false
        podata.comment(msgid).split(CRLF_RE).each do |l|
          if DOT_COMMENT_RE =~ l 
            dot_comment << l
          elsif SEMICOLON_COMMENT_RE =~ l
            semi_comment << l
          elsif FUZZY_RE =~ l
            is_fuzzy = true
          else
            normal_comment << l
          end
        end
        str = format_comment(normal_comment, dot_comment, semi_comment, is_fuzzy)
        podata.set_comment(msgid, str)        
      end
def change_reference_comment ( msgid , podata ) normal_comment = [ ] dot_comment = [ ] semi_comment = [ ] is_fuzzy = false podata . comment ( msgid ) . split ( CRLF_RE ) . each do | l | if DOT_COMMENT_RE =~ l dot_comment << l elsif SEMICOLON_COMMENT_RE =~ l semi_comment << l elsif FUZZY_RE =~ l is_fuzzy = true else normal_comment << l end end str = format_comment ( normal_comment , dot_comment , semi_comment , is_fuzzy ) podata . set_comment ( msgid , str ) end
From GNU gettext source.
From GNU gettext source .
msgid
<not_specific>
podata
<not_specific>