Skip to content

Bidirectional text (e.g. Hebrew with quotes around a part), in a category name fails to load #1721

@chrisgarrity

Description

@chrisgarrity
  • Switch to Hebrew
  • Try to add the translate extension, nothing happens

Alternately, If you first add the translate extension, then switch to Hebrew, the translate blocks category disappears:

hebrew-bug


Moved from scratchfoundation/scratch-vm#1390
/cc @ericrosenbaum

Copied from @picklesrus comment
This turns out to be a problem related to the characters in the translation of the category label into Hebrew.

Here's text that makes it fail: "message": "תרגום \"גוגל\""

The escaped quotes are confusing the category menu label - everything that comes after it in the toolbox xml definition gets cut off.

I plugged the that message into a category name in the default toolbox in the scratch-blocks playground and it fails similarly. It seems to be a problem with the scratch-blocks toolbox category name handling escaping in RTL. Plugging the same text into labels on blocks works fine though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions