Ticket #8827: 0001-Use-navigator.language-for-badge-localization.patch

File 0001-Use-navigator.language-for-badge-localization.patch, 759 bytes (added by arlolra, 7 years ago)
  • proxy/flashproxy.js

    From 7d9a3839f904ef5a09be1199ae6e93fd002b2eaa Mon Sep 17 00:00:00 2001
    From: Arlo Breault <arlolra@gmail.com>
    Date: Sat, 4 May 2013 15:23:33 -0700
    Subject: [PATCH] Use navigator.language for badge localization
    
    See #8827
    ---
     proxy/flashproxy.js | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
    index c3e6305..3e04059 100644
    a b function get_langs() { 
    379379    if (param !== undefined)
    380380        result.push(param);
    381381
     382    // https://developer.mozilla.org/en/docs/DOM/window.navigator.language
     383    if (typeof navigator !== undefined && navigator.language) {
     384      result.push(navigator.language)
     385    }
     386
    382387    return result;
    383388}
    384389