WordPress.org

Making WordPress.org

Opened 10 days ago

Closed 10 days ago

Last modified 9 days ago

#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.


10 days ago

#2 @ocean90
10 days ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

#3 @atachibana
9 days ago

@ocean90

Thank you for the reference.
I didn't know there are on going discussion and some solution, though it should be fixed from GlotPress. I'll add comments if needed.

Note: See TracTickets for help on using tickets.