Closed
Bug 935145
Opened 12 years ago
Closed 11 years ago
Pop-up type field is empty by default in non-English versions
Categories
(Webmaker Graveyard :: Popcorn Maker, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: igoryen, Assigned: alicoding)
Details
Attachments
(1 file)
1) Popcorn
2) Set a non-English locale.
3) Add a pop-up event
4) The Popup's Type (Тип) input field is empty by default (should be 'Popup').
https://dl-web.dropbox.com/spa/49xeskca52abzlc/p1z6agu2.png
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ali
| Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8343205 -
Flags: review?(scott)
Comment 2•11 years ago
|
||
I am not able to reproduce this on master.
Comment 3•11 years ago
|
||
Comment on attachment 8343205 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/366
So, looks like this is chrome only.
I wonder why? I suspect their might be a better fix once we know more about this.
Sounds like there is more going on, and we're just correcting the symptom.
Attachment #8343205 -
Flags: review?(scott) → review-
Comment 4•11 years ago
|
||
Comment on attachment 8343205 [details] [review]
https://github.com/mozilla/popcorn.webmaker.org/pull/366
So after a bit of help, the issue here is if we translate that value too soon, it won't match any of the select values, thus it doesn't properly find the select default because type just so happens to have a value in the translation files, so we incorrectly pick it up and translate it too soon, then try to set the default to a translated value, but the keys for the select option are stored in english.
Firefox just so happens to default the first drop down if it doesn't have one, so it looks like it works.
We probably shouldn't be using translated values as identifies, and that was not intended, so this patch actually feels pretty sane.
Just add a comment.
| Assignee | ||
Updated•11 years ago
|
Attachment #8343205 -
Flags: review- → review?(scott)
Updated•11 years ago
|
Attachment #8343205 -
Flags: review?(scott) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
merged https://github.com/alicoding/popcorn.webmaker.org/commit/f0d7be7157a8372826c34e3e0353dd2250378048
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•