Ticket #3311: 0001-Remove-search-url-from-translation-strings-SL-3311.patch

File 0001-Remove-search-url-from-translation-strings-SL-3311.patch, 1.1 KB (added by humitos, 12 years ago)
  • browser.py

    From 9d83947088a0482936a3440eec9a0fb94ce3d76d Mon Sep 17 00:00:00 2001
    Message-Id: <9d83947088a0482936a3440eec9a0fb94ce3d76d.1335612366.git.humitos@gmail.com>
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Sat, 28 Apr 2012 08:24:09 -0300
    Subject: [PATCH Browse] Remove search url from translation strings SL #3311
    
    This string is not translatable, so it's removed from the list.
    
    Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
    ---
     browser.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/browser.py b/browser.py
    index 259d888..e628848 100644
    a b class TabbedView(BrowserNotebook): 
    136136        if soup_uri is None and not _NON_SEARCH_REGEX.match(url):
    137137            # If the string doesn't look like an URI, let's search it:
    138138            url_search = \
    139                 _('http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8')
     139                'http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8'
    140140            query_param = Soup.form_encode_hash({'q': url})
    141141            # [2:] here is getting rid of 'q=':
    142142            effective_url = url_search % query_param[2:]