[glotpress-updates] [GlotPress] #483: GlotPress should ignore gettext-tools comment markers during POT file import

GlotPress noreply at wordpress.org
Mon Aug 17 09:58:38 UTC 2015


#483: GlotPress should ignore gettext-tools comment markers during POT file
import
-------------------------+-----------------------------
 Reporter:  dd32         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Keywords:               |
-------------------------+-----------------------------
 When importing POT files, sometimes you'll run into a gettext-tools marker
 inside a generated pot file.

 As far as I can tell, it's most probably a bug in the gettext tools, but
 the first pot entry with a comment will result in having a project marker
 prefixed to it, for example:

 {{{
 #. #-#-#-#-#  theme-name.pot (Theme Project Name 1.0)  #-#-#-#-#
 #. Theme Name of the plugin/theme
 #: footer.php:123
 msgid "Theme Name"
 msgstr ""
 }}}

 The `#-#-#-#-#` marker comes from internally in the gettext tools:
 http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-tools/src/msgl-
 cat.c#n598 and is probably triggered by running `msguniq` on a pot file to
 combine any duplicates.

 I think GlotPress should internally strip that comment off entries as
 they're imported, as it adds no benefit to translators (other than being
 confusing).

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/483>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list