Bug 9381: Add Catalan language

Simply add catalan language.

No translation yet, so can't be really tested.
But it will come soon.

Until then, to test:
1) cp misc/translator/po/es-ES* to ca-ES*
2) do perl translate install ca-ES,
3) apply the patch
4) run updatedatabase.pl
5) enable language and display on system preferences.
6) check labels

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

Rebased to current 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-01-12 23:23:33 -03:00 committed by Jared Camins-Esakov
parent 761c6213f4
commit ae4881a5b6
2 changed files with 31 additions and 0 deletions

View file

@ -631,6 +631,25 @@ VALUES( 'es', 'language', 'fr', 'Espagnol');
INSERT INTO language_descriptions(subtag, type, lang, description)
VALUES( 'es', 'language', 'de', 'Spanisch');
-- 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à');
-- Swedish
INSERT INTO language_subtag_registry( subtag, type, description, added)
VALUES ( 'sv', 'language', 'Swedish','2005-10-16' );

View file

@ -6758,6 +6758,18 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.11.00.XXX";
if ( CheckVersion($DBversion) ) {
$dbh->do("INSERT INTO language_subtag_registry( subtag, type, description, added) VALUES ( 'ca', 'language', 'Catalan','2013-01-12' )");
$dbh->do("INSERT INTO language_rfc4646_to_iso639(rfc4646_subtag,iso639_2_code) VALUES( 'ca','cat')");
$dbh->do("INSERT INTO language_descriptions(subtag, type, lang, description) VALUES( 'ca', 'language', 'es', 'Catalán')");
$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à')");
print "Upgrade to $DBversion done (Bug 9381: Add Catalan laguage)\n";
SetVersion ($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)