-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
a20127b
to
cc0c7fc
Compare
@@ -39,7 +39,7 @@ def create_simple_fields(apps, schema_editor): | |||
), | |||
SimpleField( | |||
name='gender', | |||
label=u"Gender (e.g. “male”, “female”)", | |||
label=u"Gender (e.g. male, female)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! This change shouldn’t have been included in this PR. Can someone remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create a fixup when we merge all this in to remove this.
A few observations:
|
Already working on it! 👍 |
@struan @mhl: Commit 31bb538 reverts all the custom dropdown menu styling and instead styles up the Styling select boxes is the devil’s work, so I’ve tested this in IE8 and above, modern and old Firefox, and a few versions of Safari to check it all looks ok. In IE8–9 you get a duplication of dropdown arrows (one on the left, one on the right) but I think that's acceptable. |
I think @wfdd's first point still needs to be addressed here - I'm assuming that's why the following fails:
|
2eaf824
to
5297c31
Compare
} | ||
|
||
LANG_INFO = dict(locale.LANG_INFO.items() + EXTRA_LANG_INFO.items()) | ||
locale.LANG_INFO = LANG_INFO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be neater to do locale.LANG_INFO.update(EXTRA_LANG_INFO)
- I think the effect would be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't concat dict.items in Python 3 anyway.
5297c31
to
f9d0d76
Compare
f9d0d76
to
d3d5c76
Compare
Uses a select and the built in django language selector. We add some JS to autosubmit the form when you select an option from the dropdown. Need to submit the form using POST as the built in selector only accepts post requests.
set_language was broken in 1.8.10 so update to the latest 1.8 in order to fix that. See https://code.djangoproject.com/ticket/26308 for details
Foundation's suggested HTML for 4.3.2 includes loading a custom build of Modernizr, but we weren't including that in Javascript. This meant that the class="no-js" on the <html> element was never changed to "js"; also it's probable that some of the Foundation Javascript also relied on Modernizr so it seems best to include it. I would normally include a non-minified version of a third party library, since django-pipeline will compress it for production anyway, but I can't see an obvious way of getting this page: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load ... to generate a non-minified version :( Modernizr is MIT-licensed: https://modernizr.com/license/
If Django doesn't have the language info for a language then the language switching code bails out on switching to the language. This adds details for Welsh and Costa Rican Spanish to Django's language info so these will work in the switcher.
Now we've added the language switcher there are two forms on the page where the test expected one.
d3d5c76
to
f562976
Compare
Language switcher for #676.
Closed:
Open:
Feels a bit fiddly. Will revisit tomorrow morning with fresh eyes.