Bug 38630: (QA follow-up) Add copyright, license and/or POD

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit bbf0392359)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2025-01-16 08:32:02 +00:00 committed by Fridolin Somers
parent 045818de6e
commit 830146cb81
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
2 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package Koha::App::Plugin::Language;
# Copyright 2025 Koha development team
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it

View File

@ -1,5 +1,22 @@
package Koha::Language;
# Copyright 2025 Koha development team
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Koha 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
=head1 NAME
Koha::Language
@ -27,6 +44,14 @@ use Koha::Cache::Memory::Lite;
use constant REQUESTED_LANGUAGE_CACHE_KEY => 'requested_language';
=head1 METHODS
=head2 set_requested_language
Caches requested language
=cut
sub set_requested_language {
my ($class, $language) = @_;
@ -35,6 +60,12 @@ sub set_requested_language {
$cache->set_in_cache(REQUESTED_LANGUAGE_CACHE_KEY, $language);
}
=head2 get_requested_language
Gets requested language from cache
=cut
sub get_requested_language {
my ($class) = @_;