[wp-meta] [Making WordPress.org] #3857: Translations: Treat strings with unique comments as unique

Making WordPress.org noreply at wordpress.org
Tue Oct 2 22:11:23 UTC 2018


#3857: Translations: Treat strings with unique comments as unique
--------------------------------------+--------------------
 Reporter:  garrett-eclipse           |      Owner:  (none)
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:
--------------------------------------+--------------------
 Hello,

 This originally stems from GP, but as it just uses the source POT strings
 than would be an issue with the string extractor or possible the core as
 it might require context be added instead of segregating by unique
 comments.

 Original GP - https://github.com/GlotPress/GlotPress-WP/issues/930

   When a string with multiple instances has a comment supplied that's
 unique for each instance those instances should all be unique rows instead
 of a merged instance as those comments can provide context which may lead
 to alternate translations.
   Some examples;
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357863&filters%5Btranslation_id%5D=38532994
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357860&filters%5Btranslation_id%5D=38532991
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357859&filters%5Btranslation_id%5D=38532990
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357858&filters%5Btranslation_id%5D=38532989
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357857&filters%5Btranslation_id%5D=38532988
   https://translate.wordpress.org/projects/wp/dev/admin/en-
 ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2357855&filters%5Btranslation_id%5D=38533010
   In most of the above cases the comment is to indicate what a param is
 and in the above it's different in some cases as in one it's about the
 page while the other is the term, etc.
   Due to this would make sense that each would be a unique translation.

 Let me know if this is more an issue of adding context via core code
 rather than updating the string extractor to take unique comments into
 account and distinguishing each unique instance as it's own string. If
 that's the case I'll open a core ticket to add context to strings.

 Thanks

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3857>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list