diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-01 12:55:44 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-01 12:55:44 +0200 |
commit | 084a2bd83b8599001cbf450cc9b409f2a341a80a (patch) | |
tree | fd06db42c972b0a0b77151fa3b7b98b85f4226bd /pyaggr3g470r/views.py | |
parent | Updated translation. (diff) | |
download | newspipe-084a2bd83b8599001cbf450cc9b409f2a341a80a.tar.gz newspipe-084a2bd83b8599001cbf450cc9b409f2a341a80a.tar.bz2 newspipe-084a2bd83b8599001cbf450cc9b409f2a341a80a.zip |
Updated translation.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 88bb45f7..f9a44228 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -119,7 +119,7 @@ def get_locale(): Called before each request to give us a chance to choose the language to use when producing its response. """ - return "fr"#request.accept_languages.best_match(conf.LANGUAGES.keys()) + return request.accept_languages.best_match(conf.LANGUAGES.keys()) # @@ -570,11 +570,11 @@ def edit_feed(feed_id=None): if request.method == 'GET': if feed_id is not None: form = AddFeedForm(obj=feed) - return render_template('edit_feed.html', action="Edit the feed", form=form, feed=feed, \ + return render_template('edit_feed.html', action=gettext("Edit the feed"), form=form, feed=feed, \ not_on_heroku = not conf.ON_HEROKU) # Return an empty form in order to create a new feed - return render_template('edit_feed.html', action="Add a feed", form=form, \ + return render_template('edit_feed.html', action=gettext("Add a feed"), form=form, \ not_on_heroku = not conf.ON_HEROKU) @app.route('/delete_feed/<feed_id>', methods=['GET']) |