commit ac0e310b0b4527240a418fc53ddd0b700046a917 Author: Arlo Breault arlolra@gmail.com Date: Sat May 4 15:23:33 2013 -0700
Use navigator.language for badge localization
See #8827 --- ChangeLog | 4 ++++ proxy/flashproxy.js | 5 +++++ 2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 57696cc..5e03710 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,10 @@ o Language tags for badge localization are now case-insensitive. Patch by Eduardo Stalinho. Fixes bug 8829.
+ o The badge localization is taken from the JavaScript property + window.navigator.language when possible. Patch by Arlo Breault. + Fixes bug 8827. + Changes in version 1.1 o Programs that use certificate pins now take a --disable-pin option that causes pins to be ignored. diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js index c6dc0cc..b7444e1 100644 --- a/proxy/flashproxy.js +++ b/proxy/flashproxy.js @@ -379,6 +379,11 @@ function get_langs() { if (param !== undefined) result.push(param);
+ // https://developer.mozilla.org/en/docs/DOM/window.navigator.language + if (typeof navigator !== undefined && navigator.language) { + result.push(navigator.language) + } + return result; }