Bugzilla – Attachment 39656 Details for
Bug 12017
Move language description out of database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12017 - 2 - Enable languages on web installer
Bug-12017---2---Enable-languages-on-web-installer.patch (text/plain), 3.28 KB, created by
Julian FIOL
on 2015-05-29 08:08:22 UTC
(
hide
)
Description:
Bug 12017 - 2 - Enable languages on web installer
Filename:
MIME Type:
Creator:
Julian FIOL
Created:
2015-05-29 08:08:22 UTC
Size:
3.28 KB
patch
obsolete
>From 415929c243f8f1d3bd18dc6fbba9c1c775b10b7e Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Fri, 25 Apr 2014 19:40:50 -0300 >Subject: [PATCH] Bug 12017 - 2 - Enable languages on web installer > >This patch modifies installer/step1.tt to use new >language descriptions. >Only parameter used is rfc4646 code. > >To test: >1. Do some fake translations, for example all langs >for l in $(cd misc/translator/po; ls *-pref.po | sed 's/-pref.po//'); do >mkdir koha-tmpl/intranet-tmpl/prog/$l; >mkdir koha-tmpl/opac-tmpl/bootstrap/$l; >mkdir koha-tmpl/opac-tmpl/prog/$l; >mkdir koha-tmpl/opac-tmpl/ccsr/$l; >done > >or make some lang dirs on intranet-tmpl/prog > >2. Apply the patch > >3. Edit your koha-conf.xml, change database name to a >new name, create that database and grant access, reload >staff page, log in with database user, you will be >redirected to step1 of web installer. > >4. Check names and codes for installed languages. > >Revert to your old database before proceed, >but left dirs. > >Signed-off-by: Julian FIOL <julian.fiol@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt >index 4fb70b5..464a45c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt >@@ -11,15 +11,15 @@ listed, please inform your systems administrator.</p> > <form name="language" method="post"> > <select name="language"> > [% IF ( installer_languages_loop ) %] >- [% FOREACH installer_languages_loo IN installer_languages_loop %] >+ [% FOREACH installer_languages_loo IN installer_languages_loop.sort('rfc4646_subtag') %] > [% IF ( installer_languages_loo.plural ) %] >- <optgroup label="[% installer_languages_loo.language %]"> >- [% FOREACH sublanguages_loo IN installer_languages_loo.sublanguages_loop %] >- <option value="[% sublanguages_loo.rfc4646_subtag %]">[% IF ( sublanguages_loo.native_description ) %][% sublanguages_loo.native_description %][% ELSE %][% sublanguages_loo.rfc4646_subtag %][% END %]</option> >+ <optgroup label="[% PROCESS native_description subtag = installer_languages_loo.language %]"> >+ [% FOREACH sublanguages_loo IN installer_languages_loo.sublanguages_loop.sort('rfc4646_subtag') %] >+ <option value="[% sublanguages_loo.rfc4646_subtag %]">[% PROCESS native_description subtag = sublanguages_loo.rfc4646_subtag %] [% PROCESS region_description subtag = sublanguages_loo.rfc4646_subtag %] ([% sublanguages_loo.rfc4646_subtag %])</option> > [% END %] > </optgroup> > [% ELSE %] >- <option value="[% installer_languages_loo.rfc4646_subtag %]">[% IF ( installer_languages_loo.native_description ) %][% installer_languages_loo.native_description %][% ELSE %][% installer_languages_loo.rfc4646_subtag %][% END %]</option> >+ <option value="[% installer_languages_loo.rfc4646_subtag %]">[% PROCESS native_description subtag = installer_languages_loo.rfc4646_subtag %] ([% installer_languages_loo.rfc4646_subtag %])</option> > [% END %] > [% END %] > [% END %] >-- >2.4.2
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 12017
:
26691
|
26694
|
26735
|
26736
|
26770
|
27687
|
27688
|
27689
|
27690
|
27691
|
27692
|
27693
|
27694
|
27695
|
27696
|
29898
|
29899
|
29900
|
29901
|
29902
|
29903
|
29904
|
29905
|
29906
|
29907
|
33337
|
33338
|
33339
|
33340
|
33341
|
33342
|
33343
|
33344
|
33345
|
33346
|
39304
|
39305
|
39306
|
39307
|
39308
|
39309
|
39310
|
39311
|
39312
|
39313
|
39644
|
39655
|
39656
|
39657
|
39658
|
39659
|
39660
|
39661
|
39662
|
39663
|
39664
|
39665
|
40285
|
40286
|
40287
|
40288
|
40289
|
40290
|
40291
|
40292
|
40293
|
40294
|
40295