Skip to content

Fix sprite-info pane for ‘wide’ languages#3225

Merged
chrisgarrity merged 1 commit intoscratchfoundation:developfrom
chrisgarrity:issue/2429-spriteinfo-too-wide
Oct 4, 2018
Merged

Fix sprite-info pane for ‘wide’ languages#3225
chrisgarrity merged 1 commit intoscratchfoundation:developfrom
chrisgarrity:issue/2429-spriteinfo-too-wide

Conversation

@chrisgarrity
Copy link
Contributor

Resolves

Proposed Changes

Move the labels above the inputs for languages that don’t fit in the width of the sprite-info pane.
screen shot 2018-09-25 at 8 29 05 am

Examples,
Abkhaz, Catalan, Greek...

renamed the rtl-locales lib file as locale-utils as it’s doing more than rtl now. RTL should probably move into the scratch-l10n repo, but should the wide-locales setting? That seems like something that is gui specific. I don’t like having to hard code the specific languages that don’t fit, but there didn’t seem to be a better way to handle it right now.

I left aligned the labels as it seemed to look better most of the time. They are middle aligned horizontally - does that make sense? /cc @carljbowman

Reason for Changes

The translations of the sprite-info labels in some languages end up being too wide for the fixed width of the sprite-info pane. When this happens the stage info gets pushed off the screen.

Test Coverage

Manually tested, current tests still run. It would probably be good to have someone else also look through all the languages to make sure I didn't miss any that should be in the 'wide' set.

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

Move the labels above the inputs for languages that don’t fix in the width of the sprite-info pane.

Because of the different widths of everything I left aligned them.

Examples,
Abkhaz, Catalan, Greek.

renamed the `rtl-locales` lib file as `locale-utils` as  it’s doing more than rtl now. RTL should probably move into the scratch-l10n repo, but should the `wide-locales` setting? That seems like something that is gui specific. I don’t like having to hard code the specific languages that don’t fit, but there didn’t seem to be a better way to handle it right now.
Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Tested in Safari and Chrome. Thanks @chrisgarrity.

@chrisgarrity chrisgarrity merged commit eb376df into scratchfoundation:develop Oct 4, 2018
@chrisgarrity chrisgarrity deleted the issue/2429-spriteinfo-too-wide branch October 9, 2018 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix sprite info area format when the translated language overflows the usual space.

2 participants