• Peter Serwylo's avatar
    Add language chooser to sidebar. · b2944792
    Peter Serwylo authored
    Use a dropdown instead of rendering each flag. Although it doesn't look
    as nice when there are only two or three options to choose from, it:
     * Works well with lots of translations.
     * Falls back gracefully when the relevant icon is not found.
    
    It redirects the browser via JS as soon as a new language is chosen.
    
    When JS is disabled, it falls back to showing a "Change" button, which
    in concert with a `.htaccess` `mod_rewrite` rule, takes incoming
    `lang=fr` query parameters and rewrites them to `/fr/...`
    
    Icons are from the
    https://github.com/googlei18n/region-flags/blob/gh-pages/COPYING
    project, which subsequently took them from Wikipedia and confirmed they
    are in the public domain.
    b2944792
Name
Last commit
Last update
..
lang Loading commit data...
posts/2017-04-04-new-ux Loading commit data...
CiaranG.jpg Loading commit data...
F-Droid.jpg Loading commit data...
NicoAlt.jpg Loading commit data...
bitcoin.png Loading commit data...
eighthave.jpg Loading commit data...
fdroid-logo.svg Loading commit data...
fdroid-screenshot.png Loading commit data...
flattr-badge-large.png Loading commit data...
mvdan.jpg Loading commit data...
paypal_donate_button.gif Loading commit data...
pserwylo.jpg Loading commit data...
roboto.ttf Loading commit data...