Bug 2742 Correct language names in install
Correct native versions of Danish and Dutch Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
083fd5776a
commit
d1a06829f6
8 changed files with 23 additions and 15 deletions
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -151,7 +151,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -151,7 +151,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -119,7 +119,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -137,7 +137,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -153,7 +153,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -151,7 +151,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -151,7 +151,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -135,7 +135,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'da','dan');
|
VALUES( 'da','dan');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'da', 'language', 'da', 'Dænsk');
|
VALUES ( 'da', 'language', 'da', 'Dansk');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'da', 'language', 'en', 'Danish');
|
VALUES( 'da', 'language', 'en', 'Danish');
|
||||||
|
@ -151,7 +151,7 @@ INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
|
||||||
VALUES( 'nl','dut');
|
VALUES( 'nl','dut');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES ( 'nl', 'language', 'nl', 'nedərlɑns');
|
VALUES ( 'nl', 'language', 'nl', 'Nederlands');
|
||||||
|
|
||||||
INSERT INTO language_descriptions(subtag, type, lang, description)
|
INSERT INTO language_descriptions(subtag, type, lang, description)
|
||||||
VALUES( 'nl', 'language', 'en', 'Dutch');
|
VALUES( 'nl', 'language', 'en', 'Dutch');
|
||||||
|
|
|
@ -3987,6 +3987,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||||
SetVersion ($DBversion);
|
SetVersion ($DBversion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$DBversion = '3.03.00.XXX';
|
||||||
|
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||||
|
$dbh->do( q|update language_descriptions set description = 'Nederlands' where lang = 'nl' and subtag = 'nl'|);
|
||||||
|
$dbh->do( q|update language_descriptions set description = 'Dansk' where lang = 'da' and subtag = 'da'|);
|
||||||
|
print "Upgrade to $DBversion done (Correct lnaguage descriptions)\n";
|
||||||
|
SetVersion ($DBversion);
|
||||||
|
}
|
||||||
|
|
||||||
=head1 FUNCTIONS
|
=head1 FUNCTIONS
|
||||||
|
|
||||||
=head2 DropAllForeignKeys($table)
|
=head2 DropAllForeignKeys($table)
|
||||||
|
|
Loading…
Reference in a new issue