Skip to content
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

Fix Inline Audio in non-english contained levels #28753

Merged
merged 1 commit into from
May 30, 2019

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented May 24, 2019

Specifically, make the InlineAudio component only attempt to derive the
source file for a message string if it's actually given a message
string.

Right now, attempting to view a contained level with audis such as
https://studio.code.org/s/express-2018/stage/14/puzzle/13 breaks in
non-english locales because InlineAudio is attempting to perform an
operation on a nonexistent string. This is expected to happen in
situations where we don't have a translated audio string.

Reported at https://codeorg.zendesk.com/agent/tickets/240243

Specifically, make the InlineAudio component only attempt to derive the
source file for a message string if it's actually given a message
string.

Right now, attempting to view a contained level with audis such as
https://studio.code.org/s/express-2018/stage/14/puzzle/13 breaks in
non-english locales because InlineAudio is attempting to perform an
operation on a nonexistent string. This is expected to happen in
situations where we don't have a translated audio string.
@Hamms Hamms requested a review from epeach May 24, 2019 22:06
@Hamms Hamms merged commit d7f1756 into staging May 30, 2019
@Hamms Hamms deleted the fix-non-en-contained-level-audio branch May 30, 2019 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant