# Copyright (C) 2014, 2016, 2017 Assaf Gordon
# Copyright (C) 2001-2011, 2013, 2017 Sylvain Beucler
# Copyright (C) 2013, 2014, 2017-2025 Ineiev
#
# This file is part of Savane.
#
# Code written before 2008-03-30 (commit 8b757b2565ff) is distributed
# under the terms of the GNU General Public license version 3 or (at your
# option) any later version; further contributions are covered by
# the GNU Affero General Public license version 3 or (at your option)
# any later version. The license notices for the AGPL and the GPL follow.
#
# Savane is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# Savane is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see
"; print _("Savane uses language negotiation to automatically\nselect " . "the translation the visitor prefers, and this is what we\ngenerally " . "recommend. In order to use this feature, you should\nconfigure your " . "preferred languages in your browser. However, this page\noffers " . "a way to override the mechanism of language negotiation for the\n" . "cases where configuring browser is hard or impossible. Note that each\n" . "domain (like savannah.gnu.org vs. savannah.nongnu.org) has its own\n" . "setting."); print "
\n"; print form_tag (); print form_hidden (['lang_uri' => utils_specialchars ($lang_uri)]); print ''
. form_checkbox ('cookie_for_a_year', $cookie_for_a_year, ['tabindex' => 1])
. '
\n";
print ''
. _("Your language choice will be stored in a cookie for a year.\n"
. "When unchecked, it will be cleared at the end of browser session.")
. "
\n "; print html_build_select_box_from_arrays ( array_keys ($locale_names), array_values ($locale_names), "language", $checked_language, true, _("Reset") ); print "
\n" . _("Use the topmost item (“Reset”) to clear the cookie\n" . "immediately.") . "
\n"; print form_footer (_("Set language")); $HTML->footer ([]); ?>