From 54cf2566d8ebecbc0f4519f72bc757ff5fec541e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 19 Oct 2019 19:44:14 -0700 Subject: [PATCH] searx, app, translation, language-selection: Fix license header Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- actions/searx | 2 +- plinth/app.py | 2 +- plinth/templates/language-selection.html | 2 +- plinth/translation.py | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/actions/searx b/actions/searx index 3d1b8045f..9f66a9de0 100755 --- a/actions/searx +++ b/actions/searx @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -# This file is part of Plinth. +# This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/plinth/app.py b/plinth/app.py index 6f604680c..085dc7dad 100644 --- a/plinth/app.py +++ b/plinth/app.py @@ -1,5 +1,5 @@ # -# This file is part of Plinth. +# This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/plinth/templates/language-selection.html b/plinth/templates/language-selection.html index 8c95bd6e5..152917789 100644 --- a/plinth/templates/language-selection.html +++ b/plinth/templates/language-selection.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% comment %} # -# This file is part of Plinth. +# This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as diff --git a/plinth/translation.py b/plinth/translation.py index df75dcd18..2f96282d7 100644 --- a/plinth/translation.py +++ b/plinth/translation.py @@ -1,5 +1,5 @@ # -# This file is part of Plinth. +# This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -66,7 +66,8 @@ def set_language(request, response, language_code): request.session[translation.LANGUAGE_SESSION_KEY] = language_code else: response.set_cookie( - settings.LANGUAGE_COOKIE_NAME, language_code, + settings.LANGUAGE_COOKIE_NAME, + language_code, max_age=settings.LANGUAGE_COOKIE_AGE, path=settings.LANGUAGE_COOKIE_PATH, domain=settings.LANGUAGE_COOKIE_DOMAIN,