mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
searx, app, translation, language-selection: Fix license header
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b86f3ff675
commit
54cf2566d8
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
|||||||
@ -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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% comment %}
|
{% 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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
|||||||
@ -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
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as
|
# 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
|
request.session[translation.LANGUAGE_SESSION_KEY] = language_code
|
||||||
else:
|
else:
|
||||||
response.set_cookie(
|
response.set_cookie(
|
||||||
settings.LANGUAGE_COOKIE_NAME, language_code,
|
settings.LANGUAGE_COOKIE_NAME,
|
||||||
|
language_code,
|
||||||
max_age=settings.LANGUAGE_COOKIE_AGE,
|
max_age=settings.LANGUAGE_COOKIE_AGE,
|
||||||
path=settings.LANGUAGE_COOKIE_PATH,
|
path=settings.LANGUAGE_COOKIE_PATH,
|
||||||
domain=settings.LANGUAGE_COOKIE_DOMAIN,
|
domain=settings.LANGUAGE_COOKIE_DOMAIN,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user