Bug 9519: fix code for Italian language search limiter
'ind' rather than 'ita' was set as the ISO639-2 language code for Italian in the fr-FR, it-IT, pl-PL, ru-RU, and uk-UA installation SQL. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> I checked nb-NO and de-DE - language code there had already been corrected. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
7e42bb7f38
commit
707733ed29
6 changed files with 11 additions and 5 deletions
|
@ -273,7 +273,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
|
|||
VALUES ( 'it', 'language', 'Italian','2005-10-16' );
|
||||
|
||||
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||
VALUES( 'it','ind');
|
||||
VALUES( 'it','ita');
|
||||
|
||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||
VALUES( 'it', 'language', 'it', 'Italiano');
|
||||
|
|
|
@ -314,7 +314,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
|
|||
VALUES ( 'it', 'language', 'Italian','2005-10-16' );
|
||||
|
||||
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||
VALUES( 'it','ind');
|
||||
VALUES( 'it','ita');
|
||||
|
||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||
VALUES( 'it', 'language', 'it', 'Italiano');
|
||||
|
|
|
@ -312,7 +312,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
|
|||
VALUES ( 'it', 'language', 'Italian','2005-10-16' );
|
||||
|
||||
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||
VALUES( 'it','ind');
|
||||
VALUES( 'it','ita');
|
||||
|
||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||
VALUES( 'it', 'language', 'it', 'Italiano');
|
||||
|
|
|
@ -312,7 +312,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
|
|||
VALUES ( 'it', 'language', 'Italian','2005-10-16' );
|
||||
|
||||
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||
VALUES( 'it','ind');
|
||||
VALUES( 'it','ita');
|
||||
|
||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||
VALUES( 'it', 'language', 'it', 'Italiano');
|
||||
|
|
|
@ -312,7 +312,7 @@ INSERT INTO language_subtag_registry( subtag, type, description, added)
|
|||
VALUES ( 'it', 'language', 'Italian','2005-10-16' );
|
||||
|
||||
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||
VALUES( 'it','ind');
|
||||
VALUES( 'it','ita');
|
||||
|
||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||
VALUES( 'it', 'language', 'it', 'Italiano');
|
||||
|
|
|
@ -7029,6 +7029,12 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.13.00.XXX";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do("UPDATE language_rfc4646_to_iso639 SET iso639_2_code='ita' WHERE rfc4646_subtag='it'");
|
||||
print "Upgrade to $DBversion done (Bug 9519: Wrong language code for Italian in the advanced search language limitations)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
||||
|
|
Loading…
Reference in a new issue