Skip to content

Sensing of block gets untranslated in some instances #6246

@chrisgarrity

Description

@chrisgarrity

Expected Behavior

When using a language other than English, the selected item in the sensing of block (e.g. backdrop #) should not revert to English when dragged into the workspace.

Actual Behavior

Thanks to #5392, this does not happen in most cases. However, if you have an invalid combination due to scratchfoundation/scratch-blocks#2144 (e.g. "backdrop# of sprite), the selected item reverts to English when it's dragged to the workspace.

Steps to Reproduce

  1. Create a new project
  2. Add a second sprite
  3. In the blocks palette, set the second argument of sensing of block in the palette to the stage, select 'backdrop#' as the item, and drag out the block, 'backdrop#' stays translated
  4. In the blocks palette, set the second argument to the other sprite - it doesn't change the first argument. When you drag out the block, backdrop# is reset to English.
  5. With the other sprite as the second argument, select a sprite attribute like 'x position', then switch the second argument to 'stage'. Drag the block out, and 'x position' will be switched to English.

Screen Shot 2020-10-07 at 5 23 22 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions