Bug 14285: Bengali locale needs to be re-defined
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Thu, 28 May 2015 15:18:38 +0000 (12:18 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 1 Jun 2015 18:22:27 +0000 (15:22 -0300)
This patch renames translation files for Bengali
language, from ben-* to bn-IN-*.
Also adds India as region

To test:
1) Apply the patch
2) Run updatedatabase
3) Install Bengali language
cd misc/translator
perl translate install bn-IN
enable

Check correct description

4) Create and install a fake Bengali variant
cd misc/translator
perl translate create bn-XX
perl translate install bn-XX
enable both variants

Check correct rendering of region

Results comply with expected test plan outcome. Signed off for bn-IN
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/atomicupdate/bug-14285.sql [new file with mode: 0644]
installer/data/mysql/mandatory/subtag_registry.sql
misc/translator/po/bn-IN-marc-MARC21.po [moved from misc/translator/po/ben-marc-MARC21.po with 100% similarity]
misc/translator/po/bn-IN-marc-NORMARC.po [moved from misc/translator/po/ben-marc-NORMARC.po with 100% similarity]
misc/translator/po/bn-IN-marc-UNIMARC.po [moved from misc/translator/po/ben-marc-UNIMARC.po with 100% similarity]
misc/translator/po/bn-IN-opac-bootstrap.po [moved from misc/translator/po/ben-opac-bootstrap.po with 100% similarity]
misc/translator/po/bn-IN-pref.po [moved from misc/translator/po/ben-pref.po with 100% similarity]
misc/translator/po/bn-IN-staff-help.po [moved from misc/translator/po/ben-staff-help.po with 100% similarity]
misc/translator/po/bn-IN-staff-prog.po [moved from misc/translator/po/ben-staff-prog.po with 100% similarity]

diff --git a/installer/data/mysql/atomicupdate/bug-14285.sql b/installer/data/mysql/atomicupdate/bug-14285.sql
new file mode 100644 (file)
index 0000000..9c71a9e
--- /dev/null
@@ -0,0 +1,29 @@
+INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added)
+VALUES ( 'IN', 'region', 'India','2015-05-28');
+
+INSERT IGNORE INTO language_descriptions(subtag, type, lang, description)
+VALUES ( 'IN', 'region', 'en', 'India');
+
+INSERT IGNORE INTO language_descriptions(subtag, type, lang, description)
+VALUES ( 'IN', 'region', 'bn', 'ভারত');
+
+-- $DBversion = "3.21.00.XXX";
+-- if ( CheckVersion($DBversion) ) {
+--     $dbh->do(q|
+--         INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added)
+--         VALUES ( 'IN', 'region', 'India','2015-05-28');
+--     |);
+--
+--     $dbh->do(q|
+--         INSERT IGNORE INTO language_descriptions(subtag, type, lang, description)
+--         VALUES ( 'IN', 'region', 'en', 'India');
+--     |);
+--
+--     $dbh->do(q|
+--         INSERT IGNORE INTO language_descriptions(subtag, type, lang, description)
+--         VALUES ( 'IN', 'region', 'bn', 'ভারত');
+--     |);
+--
+--     print "Upgrade to $DBversion done (Bug 14285: Add new region India)\n";
+--     SetVersion ($DBversion);
+-- }
index aee0e9b..5dc2af2 100755 (executable)
@@ -1515,6 +1515,16 @@ VALUES ( 'ID', 'region', 'en', 'Indonesia');
 INSERT INTO language_descriptions(subtag, type, lang, description)
 VALUES ( 'ID', 'region', 'id', 'Indonesia');
 
+-- India
+INSERT INTO language_subtag_registry( subtag, type, description, added)
+VALUES ( 'IN', 'region', 'India','2015-05-28');
+
+INSERT INTO language_descriptions(subtag, type, lang, description)
+VALUES ( 'IN', 'region', 'en', 'India');
+
+INSERT INTO language_descriptions(subtag, type, lang, description)
+VALUES ( 'IN', 'region', 'bn', 'ভারত');
+
 -- Iceland
 INSERT INTO language_subtag_registry( subtag, type, description, added)
 VALUES ( 'IS', 'region', 'Iceland','2014-10-30');