{"push_id":878176458,"size":1,"distinct_size":1,"ref":"refs/heads/SC-49-language-picker","head":"511e99470b077739969fa62d29b12407348dd75d","before":"5e7092565aa86997f7f99ac319de2d73e53f4a63","commits":[{"sha":"511e99470b077739969fa62d29b12407348dd75d","author":{"email":"ae5448b5dd7c672b945aefb8da64d713aa2c7b2b@gmail.com","name":"Neil Ashton"},"message":"Adding language picker\nAs it turns out, it's pretty simple to switch between languages\nin django-cms. It is simply a matter of navigating to the equivalent\nURL on the other language's section. django-cms's language-picker\ntemplate tag gives you an easy way to do this, supplying a `languages`\ncontext value that you can iterate over.\nThis adds:\n* a permanent \"Change Language\" item in the nav menu\n* a language-toggle widget in the base template (hidden by default)\n* templates which attach links in the widget to the appropriate pages\n* code to hook the Change Language item to the widget, revealing it\nThis \"just works\" in the sense that navigating to the proper CMS page\nsets the cookie to remember the language you were just on.","distinct":true,"url":"https://api.github.com/repos/theirc/ServiceInfo/commits/511e99470b077739969fa62d29b12407348dd75d"}]}