replace call to base.lang by call to download_button.lang in base.py + r... #687

Merged
merged 1 commit into from Mar 18, 2013
Jump to file or symbol
Failed to load files and symbols.
+5 −5
Split
@@ -79,7 +79,7 @@ def test_added_lang_files(self):
request = type('request', (), {})()
template.render(request=request)
eq_(request.langfiles, ['dude', 'walter',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
def test_added_lang_files_inheritance(self):
@@ -96,7 +96,7 @@ def test_added_lang_files_inheritance(self):
request = type('request', (), {})()
template.render(request=request)
eq_(request.langfiles, ['donnie', 'smokey', 'jesus', 'dude', 'walter',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
@patch.object(settings, 'ROOT_URLCONF', 'l10n_utils.tests.test_files.urls')
@@ -110,7 +110,7 @@ def test_lang_files_order(self, translate):
"""
self.client.get('/de/some-lang-files/')
translate.assert_called_with(ANY, ['dude', 'walter', 'some_lang_files',
- 'main', 'base', 'newsletter'])
+ 'main', 'download_button', 'newsletter'])
@patch.object(env, 'loader', FileSystemLoader(TEMPLATE_DIRS))
@patch.object(settings, 'ROOT_URLCONF', 'l10n_utils.tests.test_files.urls')
@@ -123,4 +123,4 @@ def test_lang_files_default_order(self, translate):
"""
self.client.get('/de/active-de-lang-file/')
translate.assert_called_with(ANY, ['active_de_lang_file', 'main',
- 'base', 'newsletter'])
+ 'download_button', 'newsletter'])
View
@@ -39,7 +39,7 @@
FEED_CACHE = 3900
DOTLANG_CACHE = 60
-DOTLANG_FILES = ['main', 'base', 'newsletter']
+DOTLANG_FILES = ['main', 'download_button', 'newsletter']
# Paths that don't require a locale code in the URL.
# matches the first url component (e.g. mozilla.org/gameon/)