dolphin-emu / www

Dolphin Emulator official website source code (running on https://dolphin-emu.org/)
MIT License
120 stars 68 forks source link

Country redirect: Handle special language cases #71

Closed Neui closed 7 years ago

Neui commented 7 years ago

Don't replace - with _ in the normalized language-variable because the HTTP_ACCEPT_LANGUAGE-languages use - and the variable is splitted anyway. Also, the array TO_FULL_INVERTED uses - in the keys, so the special cases are now used.

Tested locally with pt-BR (Portuguese/Brazil in Firefox), fixes #60

delroth commented 7 years ago

I'm guessing there was a reason I did it this way, but I can't remember... I'll deploy this, thanks.