Translator Comments #12139
Labels
Internationalization (i18n)
Issues or PRs related to internationalization efforts
[Type] Bug
An existing feature does not function as intended
Describe the bug
While translating the latest strings from Gutenberg 4.5 I found that there's a case where the translator comment in the code isn't parsed properly so doesn't appear on translate.wordpress.org.
This may be related to #9464 but doesn't seem to be an exact match.
Code - https://plugins.trac.wordpress.org/browser/gutenberg/trunk/lib/client-assets.php#L1215
Translate Row - https://translate.wordpress.org/projects/wp-plugins/gutenberg/dev/en-ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=6925481&filters%5Btranslation_id%5D=59162362
I feel the issue is probably the translator comment in the code has text in the comment string prior to 'Translators:' prefix. May just need the comment split into two with the 'Translators:' comment in it's own comment block.
To Reproduce
Steps to reproduce the behavior:
https://translate.wordpress.org/projects/wp-plugins/gutenberg/dev/en-ca/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=6925481&filters%5Btranslation_id%5D=59162362
https://plugins.trac.wordpress.org/browser/gutenberg/trunk/lib/client-assets.php#L1215
Expected behavior
The translators comment should appear in translate.wordpress.org similar to the other one for Noto Serif font;
Screenshots
Here's the translator row which is missing the comment;
Here's the code which shows the comment;
Additional context
Gutenberg Version - 4.5
The text was updated successfully, but these errors were encountered: