#5293 closed enhancement (reported-upstream)
Translation: Strings in JavaScript files are always pointed to index.js without comments to translators.
Reported by: | atachibana | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
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.
Change History (3)
This ticket was mentioned in Slack in #polyglots by atachibana. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
See https://github.com/WordPress/gutenberg/issues/19006 and https://github.com/WordPress/gutenberg/pull/22990.