-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[I18n] Label "Move %s" - up/down/left/right not translatable #20655
Comments
This appears to have regressed as part of #16615. Notably: The labels were previously rendered in their full (and translated) forms, e.g. As described in the original issue, they are now concatenated, but the directional labels are not translatable: gutenberg/packages/block-editor/src/components/block-mover/index.js Lines 122 to 125 in cf7f028
gutenberg/packages/block-editor/src/components/block-mover/mover-description.js Lines 35 to 48 in cf7f028
|
I added this to the "WordPress 5.4 Must Have" project, since this is a regression of WordPress 5.4. However, it's not clear to me whether it can be fixed at this point, since the 5.4 RC has passed and is typically considered a string freeze. |
@pedro-mendonca Do you have a sense whether these labels would be better off implemented in their fully-expanded forms, vs. injected by placeholder? i.e.
|
The current placeholder form generates very small strings that probably need context. In the end, the current form uses 5 different strings that need very clear and specific contextualization. The simple __( 'Move up' ) form will end with just 4 strings, no mess. So... in my opinion... bring back old simple unconcatenated form :-) |
I opened a pull request to reintroduce full labels: #20664 |
Awesome, thanks! 👍 |
Strings are available since today for translators. As mentioned in the post, string changes may still occur. This case is something we should definitely get fixed for 5.4. |
I agree, it’s a bug, not a enhancement. |
Describe the bug
The labels of the buttons to move blocks, the label is partially missing i18n.
The string
Move %s
is correct, but the strings that can be included in the placeholder %s are not.The direction strings
up
,down
,left
andright
arent't translatable.To reproduce
Steps to reproduce the behavior:
en_US
Move
is translatable, the direction isn't.Expected behavior
The placeholder %s should include a translation of
up
,down
,left
orright
.Also, these very short strings MUST have a context.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: