Followup Bug 9381 - Add Catalan language

This followup adds Catalan language into languages
other than english.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Rebased to master

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Bernardo Gonzalez Kriegel 2013-02-16 12:28:05 -03:00 committed by Jared Camins-Esakov
parent ae4881a5b6
commit ce1ca0a1dc
9 changed files with 178 additions and 0 deletions

View file

@ -529,6 +529,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -535,6 +535,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -466,6 +466,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -531,6 +531,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -556,6 +556,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -529,6 +529,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -529,6 +529,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -529,6 +529,28 @@ VALUES( 'es', 'language', 'en', 'Spanish');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'fr', 'Espagnol');
-- Spanish, Catalan
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'ca', 'language', 'Catalan','2013-01-12' );
INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code)
VALUES( 'ca','cat');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'es', 'Catalán');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'en', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'fr', 'Catalan');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'ca', 'Català');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'ca', 'language', 'de', 'Katalanisch');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -6766,10 +6766,12 @@ if ( CheckVersion($DBversion) ) {
$dbh->do("INSERT INTO language_descriptions(subtag, type, lang, description) VALUES( 'ca', 'language', 'en', 'Catalan')");
$dbh->do("INSERT INTO language_descriptions(subtag, type, lang, description) VALUES( 'ca', 'language', 'fr', 'Catalan')");
$dbh->do("INSERT INTO language_descriptions(subtag, type, lang, description) VALUES( 'ca', 'language', 'ca', 'Català')");
$dbh->do("INSERT INTO language_descriptions(subtag, type, lang, description) VALUES( 'ca', 'language', 'de', 'Katalanisch')");
print "Upgrade to $DBversion done (Bug 9381: Add Catalan laguage)\n";
SetVersion ($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)