[wp-meta] [Making WordPress.org] #5293: Translation: Strings in JavaScript files are always pointed to index.js without comments to translators.

Making WordPress.org noreply at wordpress.org
Sat Jun 27 14:36:26 UTC 2020


#5293: Translation: Strings in JavaScript files are always pointed to index.js
without comments to translators.
--------------------------------------+--------------------
 Reporter:  atachibana                |      Owner:  (none)
     Type:  enhancement               |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:
--------------------------------------+--------------------
 In translate.wordpress.org, all strings in JavaScript files (ex. Gutenberg
 resources) are reported as locating in index.js without comments.

 For example, string "Add block at position %1$d, Level %2$d" located in
 appender.js has useful comment to translators:

 {{{
         const appenderPositionDescription = sprintf(
                 /* translators: 1: The numerical position of the block
 that will be inserted. 2: The level of nesting for the block that will be
 inserted. */
                 __( 'Add block at position %1$d, Level %2$d' ),
                 position,
                 level
         );
 }}}

 But, in translate.wordpress.org, this string has following meta
 information only without comments.

 {{{
 References
     build/block-editor/index.js:11

 }}}

 When translator encounter this string, he/she have to search whole source
 code to find the string and above comments to know the meaning of %1$d and
 %2$d.

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


More information about the wp-meta mailing list