From b9c8a6967fd595e96cc4e6eec869405da0cc3b6c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Nov 2021 18:35:46 -0300 Subject: [PATCH] Bug 29596: Add Yiddish language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds the Yiddish language to Koha. The language codes were taken from https://www.loc.gov/standards/iso639-2/php/code_list.php Sponsored-by: Universidad Nacional de San Martín Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind --- .../data/mysql/atomicupdate/bug_29596.pl | 41 +++++++++++++++++++ .../data/mysql/mandatory/subtag_registry.sql | 20 +++++++++ 2 files changed, 61 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_29596.pl diff --git a/installer/data/mysql/atomicupdate/bug_29596.pl b/installer/data/mysql/atomicupdate/bug_29596.pl new file mode 100755 index 0000000000..29178bd1d9 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_29596.pl @@ -0,0 +1,41 @@ +use Modern::Perl; + +return { + bug_number => "29596", + description => "Add Yiddish language", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh)}; + + + $dbh->do(q{ + INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added) + VALUES ( 'yi', 'language', 'Yiddish', NOW() ); + }); + + $dbh->do(q{ + INSERT IGNORE INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code) + VALUES ( 'yi','yid'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'yi', 'language', 'es', 'Yidis'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'yi', 'language', 'en', 'Yiddish'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'yi', 'language', 'fr', 'Yiddish'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'yi', 'language', 'de', 'Jiddisch'); + }); + }, +} diff --git a/installer/data/mysql/mandatory/subtag_registry.sql b/installer/data/mysql/mandatory/subtag_registry.sql index 08761d9256..6ad9b899c6 100644 --- a/installer/data/mysql/mandatory/subtag_registry.sql +++ b/installer/data/mysql/mandatory/subtag_registry.sql @@ -1874,3 +1874,23 @@ VALUES ('ik', 'language', 'Inupiaq', now()); INSERT INTO language_rfc4646_to_iso639 (rfc4646_subtag, iso639_2_code) VALUES ('ik', 'ipk'); + +-- Yiddish + +INSERT INTO language_subtag_registry( subtag, type, description, added) +VALUES ( 'yi', 'language', 'Yiddish', NOW() ); + +INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code) +VALUES ( 'yi','yid'); + +INSERT INTO language_descriptions(subtag, type, lang, description) +VALUES ( 'yi', 'language', 'es', 'Yidis'); + +INSERT INTO language_descriptions(subtag, type, lang, description) +VALUES ( 'yi', 'language', 'en', 'Yiddish'); + +INSERT INTO language_descriptions(subtag, type, lang, description) +VALUES ( 'yi', 'language', 'fr', 'Yiddish'); + +INSERT INTO language_descriptions(subtag, type, lang, description) +VALUES ( 'yi', 'language', 'de', 'Jiddisch'); -- 2.20.1