Bugzilla – Attachment 39640 Details for
Bug 14285
Bengali locale needs to be re-defined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14285: Bengali locale needs to be re-defined
Bug-14285-Bengali-locale-needs-to-be-re-defined.patch (text/plain), 5.56 KB, created by
Bernardo Gonzalez Kriegel
on 2015-05-28 15:25:45 UTC
(
hide
)
Description:
Bug 14285: Bengali locale needs to be re-defined
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-05-28 15:25:45 UTC
Size:
5.56 KB
patch
obsolete
>From 473ed9c3999e26370ecfad20731de8898baf7b94 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Thu, 28 May 2015 12:18:38 -0300 >Subject: [PATCH] Bug 14285: Bengali locale needs to be re-defined > >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 >--- > installer/data/mysql/atomicupdate/bug-14285.sql | 30 ++++++++++++++++++++ > installer/data/mysql/mandatory/subtag_registry.sql | 10 +++++++ > .../{ben-marc-MARC21.po => bn-IN-marc-MARC21.po} | 0 > .../{ben-marc-NORMARC.po => bn-IN-marc-NORMARC.po} | 0 > .../{ben-marc-UNIMARC.po => bn-IN-marc-UNIMARC.po} | 0 > ...n-opac-bootstrap.po => bn-IN-opac-bootstrap.po} | 0 > misc/translator/po/{ben-pref.po => bn-IN-pref.po} | 0 > .../po/{ben-staff-help.po => bn-IN-staff-help.po} | 0 > .../po/{ben-staff-prog.po => bn-IN-staff-prog.po} | 0 > 9 files changed, 40 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug-14285.sql > rename misc/translator/po/{ben-marc-MARC21.po => bn-IN-marc-MARC21.po} (100%) > rename misc/translator/po/{ben-marc-NORMARC.po => bn-IN-marc-NORMARC.po} (100%) > rename misc/translator/po/{ben-marc-UNIMARC.po => bn-IN-marc-UNIMARC.po} (100%) > rename misc/translator/po/{ben-opac-bootstrap.po => bn-IN-opac-bootstrap.po} (100%) > rename misc/translator/po/{ben-pref.po => bn-IN-pref.po} (100%) > rename misc/translator/po/{ben-staff-help.po => bn-IN-staff-help.po} (100%) > rename misc/translator/po/{ben-staff-prog.po => bn-IN-staff-prog.po} (100%) > >diff --git a/installer/data/mysql/atomicupdate/bug-14285.sql b/installer/data/mysql/atomicupdate/bug-14285.sql >new file mode 100644 >index 0000000..5bf0636 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug-14285.sql >@@ -0,0 +1,30 @@ >+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); >+-- } >+ >diff --git a/installer/data/mysql/mandatory/subtag_registry.sql b/installer/data/mysql/mandatory/subtag_registry.sql >index aee0e9b..5dc2af2 100755 >--- a/installer/data/mysql/mandatory/subtag_registry.sql >+++ b/installer/data/mysql/mandatory/subtag_registry.sql >@@ -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'); >diff --git a/misc/translator/po/ben-marc-MARC21.po b/misc/translator/po/bn-IN-marc-MARC21.po >similarity index 100% >rename from misc/translator/po/ben-marc-MARC21.po >rename to misc/translator/po/bn-IN-marc-MARC21.po >diff --git a/misc/translator/po/ben-marc-NORMARC.po b/misc/translator/po/bn-IN-marc-NORMARC.po >similarity index 100% >rename from misc/translator/po/ben-marc-NORMARC.po >rename to misc/translator/po/bn-IN-marc-NORMARC.po >diff --git a/misc/translator/po/ben-marc-UNIMARC.po b/misc/translator/po/bn-IN-marc-UNIMARC.po >similarity index 100% >rename from misc/translator/po/ben-marc-UNIMARC.po >rename to misc/translator/po/bn-IN-marc-UNIMARC.po >diff --git a/misc/translator/po/ben-opac-bootstrap.po b/misc/translator/po/bn-IN-opac-bootstrap.po >similarity index 100% >rename from misc/translator/po/ben-opac-bootstrap.po >rename to misc/translator/po/bn-IN-opac-bootstrap.po >diff --git a/misc/translator/po/ben-pref.po b/misc/translator/po/bn-IN-pref.po >similarity index 100% >rename from misc/translator/po/ben-pref.po >rename to misc/translator/po/bn-IN-pref.po >diff --git a/misc/translator/po/ben-staff-help.po b/misc/translator/po/bn-IN-staff-help.po >similarity index 100% >rename from misc/translator/po/ben-staff-help.po >rename to misc/translator/po/bn-IN-staff-help.po >diff --git a/misc/translator/po/ben-staff-prog.po b/misc/translator/po/bn-IN-staff-prog.po >similarity index 100% >rename from misc/translator/po/ben-staff-prog.po >rename to misc/translator/po/bn-IN-staff-prog.po >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14285
:
39640
|
39646
|
39651
|
39711