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)

x86
macOS
defect
Not set
normal

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: nobody → ali
Status: NEW → ASSIGNED
I am not able to reproduce this on master.
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 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.
Attachment #8343205 - Flags: review- → review?(scott)
Attachment #8343205 - Flags: review?(scott) → review+
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.

Attachment

General

Created:
Updated:
Size: