Bug 41332: Add Greek to KohaManualLanguage system preference

The Koha Manual has been translated into Greek:
https://koha-community.org/manual/latest/el/html/index.html

However, 'Greek' is missing from the list of languages
available in the 'KohaManualLanguage' System Preference.

This patch fixes that.

Test plan:

1) Without the patch, visit Administration > System preferences >
   Enhanced content, and under the 'Manual' section notice that
   'Greek' is missing from the options of the 'KohaManualLanguage'
   syspref dropdown.
2) Apply the patch, and run updatedatabase.pl
   The 'KohaManualLanguage' dropdown should now list 'Greek'.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Andreas Roussos 2025-12-01 09:32:16 +00:00 committed by Lucas Gass
parent 19209df1c0
commit 231a70ee45
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
4 changed files with 21 additions and 2 deletions

View File

@ -57,7 +57,7 @@ Use system preferences 'KohaManualLanguage' and 'KohaManualBaseURL' to properly
sub _get_base_url {
my ($preferred_language) = @_;
my @available_languages = qw( en ar cs es fr it pt_BR tz zh_TW );
my @available_languages = qw( el en ar cs es fr it pt_BR tz zh_TW );
my ($language) = grep {
my $preferred_short = substr $preferred_language, 0, 2;

View File

@ -0,0 +1,18 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "41332",
description => "Adds new option for Greek (el) to system preference 'KohaManualLanguage'",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
UPDATE systempreferences SET options = 'el|en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW' WHERE variable = 'KohaManualLanguage'
}
);
say_success( $out, "Added new option for Greek (el) to system preference 'KohaManualLanguage'" );
},
};

View File

@ -380,7 +380,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('JobsNotificationMethod','STOMP','polling|STOMP','Define the preferred job worker notification method','Choice'),
('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'),
('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'),
('KohaManualLanguage','en','en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
('KohaManualLanguage','en','el|en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'),
('LanguageToUseOnMerge','',NULL,'If set, the authority field having the given language code in its $7 subfield will be used in the bibliographic record if it exists, rather than the first field. The code can be in a short, 2 characters long form (example: ba for latin) or in a long, 8 characters long form, with the short form in position 5 and 6 starting from 1 (example: ba0yba0y for latin). A list of available codes can be found here: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d. Please note that this feature is available only for UNIMARC.','Free'),
('LibraryName','','','Define the library name as displayed on the OPAC',''),

View File

@ -422,6 +422,7 @@ Enhanced content:
- Language of the online manual
- pref: KohaManualLanguage
choices:
el: Greek
en: English
ar: Arabic
cs: Czech