X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/5fa302a431a4aa35a40f26bbadb8c26afcd8389b..c29cec255fb6484b4e06de7ff55e005ded99fae9:/fixup-migrate-gettext.rb diff --git a/fixup-migrate-gettext.rb b/fixup-migrate-gettext.rb index 506030d..b2d9c7c 100755 --- a/fixup-migrate-gettext.rb +++ b/fixup-migrate-gettext.rb @@ -88,6 +88,9 @@ class PoStr if '' != @type print "#. type:%s\n" % [@type] end + if @location + print "#: %s:%s\n" % [@location[:file], @location[:line]] + end if fuzzy? print "#, fuzzy\n" if '' != prevstr() @@ -135,13 +138,14 @@ strings.each do |entry| entry.status = '' #print "# clear fuzzy (space)\n" c = c + 1 + entry.output next end # Rewrite title strings, which lost '#' at the front if entry.prevclean.gsub(/^#+ +/, '') == entry.srcclean + # FIXME Not safe to clear fuzzy flag, might have bogus translation entry.status = '' - # FIXME if entry.dest[0].gsub!(/^#+ +/, '') || ('' == entry.dest[0] && entry.dest[1].gsub!(/^#+ +/, '')) #print "cleared fuzzy (title)\n"