View | Details | Raw Unified | Return to bug 20988
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt (-16 / +17 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo;
4
<title>[% t('Koha ›') %]
4
    [% IF ( nopermission ) %]Access denied[% END %]
5
    [% IF ( nopermission ) %][% t('Access denied') %][% END %]
5
    [% IF ( timed_out ) %]Session timed out[% END %]
6
    [% IF ( timed_out ) %][% t('Session timed out') %][% END %]
6
    [% IF ( different_ip ) %]IP address change[% END %]
7
    [% IF ( different_ip ) %][% t('IP address change') %][% END %]
7
    [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
8
    [% IF ( invalid_username_or_password ) %][% t('Invalid username or password') %][% END %]
8
    [% IF ( loginprompt ) %]Log in to the Koha web installer[% END %]
9
    [% IF ( loginprompt ) %][% t('Log in to the Koha web installer') %][% END %]
9
</title>
10
</title>
10
[% INCLUDE 'installer-doc-head-close.inc' %]
11
[% INCLUDE 'installer-doc-head-close.inc' %]
11
</head>
12
</head>
Lines 15-42 Link Here
15
        <div class="row">
16
        <div class="row">
16
            <div id="installer-login" class="installer-main col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
17
            <div id="installer-login" class="installer-main col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
17
18
18
                <h1 id="logo"><a href="#">Koha</a></h1>
19
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
19
20
20
                [% IF ( nopermission ) %]
21
                [% IF ( nopermission ) %]
21
                    <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
22
                    <div id="login_error" class="alert alert-danger"><strong>[% t('Error:') %] </strong>[% t('Unauthorized user') %] <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">[% t('click to log out') %]</a></div>
22
                [% END %]
23
                [% END %]
23
24
24
                [% IF ( timed_out ) %]
25
                [% IF ( timed_out ) %]
25
                <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Session timed out, please log in again</div>
26
                <div id="login_error" class="alert alert-danger"><strong>[% t('Error:') %] </strong>[% t('Session timed out, please log in again') %]</div>
26
                [% END %]
27
                [% END %]
27
28
28
                [% IF ( different_ip ) %]
29
                [% IF ( different_ip ) %]
29
                <div id="login_error" class="alert alert-danger"><strong>Error: </strong>IP address has changed, please log in again </div>
30
                <div id="login_error" class="alert alert-danger"><strong>[% t('Error:') %] </strong>[% t('IP address has changed, please log in again') %] </div>
30
                [% END %]
31
                [% END %]
31
32
32
                [% IF ( invalid_username_or_password ) %]
33
                [% IF ( invalid_username_or_password ) %]
33
                <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Invalid username or password</div>
34
                <div id="login_error" class="alert alert-danger"><strong>[% t('Error:') %] </strong>[% t('Invalid username or password') %]</div>
34
                [% END %]
35
                [% END %]
35
36
36
                [% IF ( loginprompt ) %]
37
                [% IF ( loginprompt ) %]
37
                    <h2>Welcome to the Koha [%- Koha.Version.release -%] web installer</h2>
38
                    <h2>[% t('Welcome to the Koha') %] [%- Koha.Version.release -%] [% t('web installer') %]</h2>
38
39
39
                    <p>Before we begin, please verify you have the correct credentials to continue. Please log in with the username and password given to you by your systems administrator and located in your <code>koha-conf.xml</code> configuration file.</p>
40
                    <p>[% t('Before we begin, please verify you have the correct credentials to continue. Please log in with the username and password given to you by your systems administrator and located in your') %] <code>[% t('koha-conf.xml') %]</code> [% t('configuration file.') %]</p>
40
41
41
                    <form action="[% url %]" method="post" id="mainform">
42
                    <form action="[% url %]" method="post" id="mainform">
42
                        [% FOREACH INPUT IN INPUTS %]
43
                        [% FOREACH INPUT IN INPUTS %]
Lines 44-57 Link Here
44
                        [% END %]
45
                        [% END %]
45
46
46
                        <fieldset>
47
                        <fieldset>
47
                            <legend>Please enter your username and password</legend>
48
                            <legend>[% t('Please enter your username and password') %]</legend>
48
49
49
                            <div class="form-group">
50
                            <div class="form-group">
50
                                <label>Username:</label>
51
                                <label>[% t('Username:') %]</label>
51
                                <input type="text" class="form-control" name="userid" id="userid" value="[% userid %]" size="20" tabindex="1" />
52
                                <input type="text" class="form-control" name="userid" id="userid" value="[% userid %]" size="20" tabindex="1" />
52
                            </div>
53
                            </div>
53
                            <div class="form-group">
54
                            <div class="form-group">
54
                                <label>Password:</label>
55
                                <label>[% t('Password:') %]</label>
55
                                <input type="password" class="form-control" name="password" id="password" value="" size="20" tabindex="2" />
56
                                <input type="password" class="form-control" name="password" id="password" value="" size="20" tabindex="2" />
56
                            </div>
57
                            </div>
57
                            <input id="submit" type="submit" class="btn btn-primary" value="Log in" tabindex="3" />
58
                            <input id="submit" type="submit" class="btn btn-primary" value="Log in" tabindex="3" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt (-21 / +22 lines)
Lines 1-16 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
<title>[% t('Koha › Web installer ›') %]
3
    [% UNLESS ( language ) %] Choose your language [% END %]
4
    [% UNLESS ( language ) %] [% t('Choose your language') %] [% END %]
4
    [% IF ( language ) %]
5
    [% IF ( language ) %]
5
        [% UNLESS ( checkmodule ) %]
6
        [% UNLESS ( checkmodule ) %]
6
            [% IF ( missing_modules ) %]
7
            [% IF ( missing_modules ) %]
7
                Perl modules missing
8
                [% t('Perl modules missing') %]
8
            [% END %]
9
            [% END %]
9
            [% IF ( problems ) %]
10
            [% IF ( problems ) %]
10
                Perl version obsolete
11
                [% t('Perl version obsolete') %]
11
            [% END %]
12
            [% END %]
12
        [% END %]
13
        [% END %]
13
        Check Perl dependencies
14
        [% t('Check Perl dependencies') %]
14
    [% END %]
15
    [% END %]
15
</title>
16
</title>
16
[% INCLUDE 'installer-doc-head-close.inc' %]
17
[% INCLUDE 'installer-doc-head-close.inc' %]
Lines 19-35 Link Here
19
    <div class="row">
20
    <div class="row">
20
        <div id="installer-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
21
        <div id="installer-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
21
22
22
            <h1 id="logo"><a href="#">Koha</a></h1>
23
            <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
23
24
24
            [% UNLESS ( language ) %]
25
            [% UNLESS ( language ) %]
25
                <h2>Web installer &rsaquo; Choose your language</h2>
26
                <h2>[% t('Web installer › Choose your language') %]</h2>
26
                <p>You are about to install Koha.</p>
27
                <p>[% t('You are about to install Koha.') %]</p>
27
28
28
                <p>Please pick your language from the following list. If your language is not listed, please inform your system administrator.</p>
29
                <p>[% t('Please pick your language from the following list. If your language is not listed, please inform your system administrator.') %]</p>
29
30
30
                <form name="language" method="post" action="install.pl">
31
                <form name="language" method="post" action="install.pl">
31
                    <div class="form-group">
32
                    <div class="form-group">
32
                        <label for="language">Select a language: </label>
33
                        <label for="language">[% t('Select a language:') %] </label>
33
                        <select id="language" name="language">
34
                        <select id="language" name="language">
34
                            [% IF ( installer_languages_loop ) %]
35
                            [% IF ( installer_languages_loop ) %]
35
                                [% FOREACH installer_languages_loo IN installer_languages_loop %]
36
                                [% FOREACH installer_languages_loo IN installer_languages_loop %]
Lines 53-76 Link Here
53
            [% IF ( language ) %]
54
            [% IF ( language ) %]
54
                [% UNLESS ( checkmodule ) %]
55
                [% UNLESS ( checkmodule ) %]
55
                    [% IF ( missing_modules ) %]
56
                    [% IF ( missing_modules ) %]
56
                        <h2>Web installer &rsaquo; Perl modules missing</h2>
57
                        <h2>[% t('Web installer › Perl modules missing') %]</h2>
57
                        <p>Some Perl modules are missing. <span class="label label-danger">Important: </span>Required modules must be installed before you may continue.<br />
58
                        <p>[% t('Some Perl modules are missing.') %] <span class="label label-danger">[% t('Important:') %] </span>[% t('Required modules must be installed before you may continue.') %]<br />
58
                        <ul>
59
                        <ul>
59
                            [% FOREACH missing_module IN missing_modules %]
60
                            [% FOREACH missing_module IN missing_modules %]
60
                                <li><strong>[% missing_module.name %]</strong> [% IF ( missing_module.require ) %]<span class="label label-danger">Required</span>[% END %]
61
                                <li><strong>[% missing_module.name %]</strong> [% IF ( missing_module.require ) %]<span class="label label-danger">[% t('Required') %]</span>[% END %]
61
                                    <br /> Version: [% missing_module.version %]
62
                                    <br /> [% t('Version:') %] [% missing_module.version %]
62
                                    <br /> Usage: [% missing_module.usage %]
63
                                    <br /> [% t('Usage:') %] [% missing_module.usage %]
63
                                </li>
64
                                </li>
64
                            [% END %]
65
                            [% END %]
65
                        </ul>
66
                        </ul>
66
                    [% END %]
67
                    [% END %]
67
68
68
                    [% IF ( problems ) %]
69
                    [% IF ( problems ) %]
69
                        <h2>Web installer &rsaquo; Perl version too old</h2>
70
                        <h2>[% t('Web installer › Perl version too old') %]</h2>
70
                        <p>I encountered some problems.</p>
71
                        <p>[% t('I encountered some problems.') %]</p>
71
                        <ul>
72
                        <ul>
72
                            [% IF ( perlversion ) %]
73
                            [% IF ( perlversion ) %]
73
                                <li>Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).</li>
74
                                <li>[% t('Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).') %]</li>
74
                            [% END %]
75
                            [% END %]
75
                        </ul>
76
                        </ul>
76
                    [% END %]
77
                    [% END %]
Lines 81-89 Link Here
81
                    </form>
82
                    </form>
82
83
83
                [% ELSE # IF checkmodule %]
84
                [% ELSE # IF checkmodule %]
84
                    <h2>Web installer &rsaquo; Check Perl dependencies</h2>
85
                    <h2>[% t('Web installer › Check Perl dependencies') %]</h2>
85
                    <p>All required Perl modules appear to be installed.</p>
86
                    <p>[% t('All required Perl modules appear to be installed.') %]</p>
86
                    <p> All dependencies installed.</p>
87
                    <p> [% t('All dependencies installed.') %]</p>
87
88
88
                    <form name="checkmodules" role="form" action="install.pl">
89
                    <form name="checkmodules" role="form" action="install.pl">
89
                        <input type="hidden" name="step" value="2" />
90
                        <input type="hidden" name="step" value="2" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step2.tt (-23 / +24 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE HtmlTags %]
2
[% USE HtmlTags %]
2
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Database settings</title>
3
[% INCLUDE 'doc-head-open.inc' %]<title>[% t('Koha › Web installer › Database settings') %]</title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'installer-doc-head-close.inc' %]
4
</head>
5
</head>
5
6
Lines 8-59 Link Here
8
        <div class="row">
9
        <div class="row">
9
            <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
10
            <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
10
11
11
                <h1 id="logo"><a href="#">Koha</a></h1>
12
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
12
                <h2>Web installer &rsaquo; Database settings</h2>
13
                <h2>[% t('Web installer › Database settings') %]</h2>
13
                <h3>Database settings:</h3>
14
                <h3>[% t('Database settings:') %]</h3>
14
                <ul>
15
                <ul>
15
                    <li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
16
                    <li><em>[% t('Database type:') %] </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
16
                    <li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
17
                    <li><em>[% t('Database name:') %] </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
17
                    <li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code'-%]</li>
18
                    <li><em>[% t('Database host:') %] </em> [%- hostname | $HtmlTags tag=>'code'-%]</li>
18
                    <li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li>
19
                    <li><em>[% t('Database port:') %] </em> [%- port| $HtmlTags tag=>'code' -%] [% t('(probably okay if blank)') %]</li>
19
                    <li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li>
20
                    <li><em>[% t('Database user:') %] </em> [%- user | $HtmlTags tag=>'code' -%]</li>
20
                </ul>
21
                </ul>
21
22
22
                [% IF ( dbconnection ) %]
23
                [% IF ( dbconnection ) %]
23
                    <form name="checkdbparameters" method="post" action="install.pl">
24
                    <form name="checkdbparameters" method="post" action="install.pl">
24
                        [% IF ( checkdatabaseaccess ) %]
25
                        [% IF ( checkdatabaseaccess ) %]
25
                            <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
26
                            <div class="alert alert-success" role="alert"><p>[% t('Connection established.') %]</p></div>
26
                            [% IF ( checkdatabasecreated ) %]
27
                            [% IF ( checkdatabasecreated ) %]
27
                                <ul>
28
                                <ul>
28
                                    <li>Database [% dbname | $HtmlTags tag=>'code'%] exists.</li>
29
                                    <li>[% t('Database') %] [% dbname | $HtmlTags tag=>'code'%] [% t('exists.') %]</li>
29
                                [% IF ( checkgrantaccess ) %]
30
                                [% IF ( checkgrantaccess ) %]
30
                                    <li>User [% user | $HtmlTags tag=>'code' %]  has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li>
31
                                    <li>[% t('User') %] [% user | $HtmlTags tag=>'code' %]  [% t('has all required privileges on database') %] [% dbname | $HtmlTags tag=>'code' %].</li>
31
                                    </ul>
32
                                    </ul>
32
                                [% ELSE %]
33
                                [% ELSE %]
33
                                    </ul>
34
                                    </ul>
34
                                    <p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code'%].</p>
35
                                    <p class="error">[% t('User') %] [% user | $HtmlTags tag=>'code' %] [% t('doesn\'t have enough privilege on database') %] [% dbname | $HtmlTags tag=>'code'%].</p>
35
                                    <p class="tip">Ask for or make a change in the user's privileges. User [% user | $HtmlTags tag=>'code' %] must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on database [% dbname | $HtmlTags tag=>'code' %].</p>
36
                                    <p class="tip">[% t('Ask for or make a change in the user\'s privileges. User') %] [% user | $HtmlTags tag=>'code' %] [% t('must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on database') %] [% dbname | $HtmlTags tag=>'code' %].</p>
36
                                    <p>Need help? See manual for [% IF ( mysql ) %]
37
                                    <p>[% t('Need help? See manual for') %] [% IF ( mysql ) %]
37
                                            <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">MySQL</a>
38
                                            <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">[% t('MySQL') %]</a>
38
                                        [% ELSE %]
39
                                        [% ELSE %]
39
                                            <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">PostgreSQL</a>
40
                                            <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">[% t('PostgreSQL') %]</a>
40
                                        [% END %]
41
                                        [% END %]
41
                                    </p>
42
                                    </p>
42
                                [% END %]
43
                                [% END %]
43
                            [% ELSE %]
44
                            [% ELSE %]
44
                                <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
45
                                <div class="alert alert-danger" role="alert"><p>[% t('No database named') %] [% dbname | $HtmlTags tag=>'code' %] [% t('detected.') %]</p></div>
45
                                <p>Please create the database before continuing.</p>
46
                                <p>[% t('Please create the database before continuing.') %]</p>
46
                            [% END %]
47
                            [% END %]
47
                        [% ELSE %]
48
                        [% ELSE %]
48
                            <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
49
                            <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
49
                            <div class="tip">
50
                            <div class="tip">
50
                                <ul>
51
                                <ul>
51
                                    <li>Check that your database is running.</li>
52
                                    <li>[% t('Check that your database is running.') %]</li>
52
                                    <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
53
                                    <li>[% t('Check your database settings in') %] [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
53
                                    <li>Check the hostname setting in [% INCLUDE txt_kohaconf_xml %]. Some database servers require [% '127.0.0.1' | $HtmlTags tag=>'code' %] rather than [% 'localhost' | $HtmlTags tag=>'code' %].</li>
54
                                    <li>[% t('Check the hostname setting in') %] [% INCLUDE txt_kohaconf_xml %][% t('. Some database servers require') %] [% '127.0.0.1' | $HtmlTags tag=>'code' %] [% t('rather than') %] [% 'localhost' | $HtmlTags tag=>'code' %].</li>
54
                                </ul>
55
                                </ul>
55
                            </div>
56
                            </div>
56
                            <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
57
                            <p>[% t('Please correct these errors.') %] <a href="/cgi-bin/koha/installer/install.pl">[% t('Then start the installer again.') %]</a>
57
                        [% END %]
58
                        [% END %]
58
                        [% UNLESS ( error ) %]
59
                        [% UNLESS ( error ) %]
59
                            <input type="hidden" name="step" value="3" />
60
                            <input type="hidden" name="step" value="3" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-57 / +57 lines)
Lines 1-34 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
3
3
<title>Koha &rsaquo; Web installer &rsaquo;
4
<title>[% t('Koha › Web installer ›') %]
4
     [% IF ( proposeimport ) %]
5
     [% IF ( proposeimport ) %]
5
         Set up database
6
         [% t('Set up database') %]
6
     [% END %]
7
     [% END %]
7
     [% IF ( importdatastructure ) %]
8
     [% IF ( importdatastructure ) %]
8
         [% IF ( error ) %]
9
         [% IF ( error ) %]
9
           Error creating database tables
10
           [% t('Error creating database tables') %]
10
         [% ELSE %]
11
         [% ELSE %]
11
           Database tables created
12
           [% t('Database tables created') %]
12
         [% END %]
13
         [% END %]
13
     [% END %]
14
     [% END %]
14
     [% IF ( default ) %]
15
     [% IF ( default ) %]
15
        [% IF ( upgrading ) %]
16
        [% IF ( upgrading ) %]
16
            Update database
17
            [% t('Update database') %]
17
        [% ELSE %]
18
        [% ELSE %]
18
            Install basic configuration settings
19
            [% t('Install basic configuration settings') %]
19
        [% END %]
20
        [% END %]
20
     [% END %]
21
     [% END %]
21
     [% IF ( choosemarc ) %]
22
     [% IF ( choosemarc ) %]
22
        Select your MARC flavor
23
        [% t('Select your MARC flavor') %]
23
     [% END %]
24
     [% END %]
24
     [% IF ( selectframeworks ) %]
25
     [% IF ( selectframeworks ) %]
25
        Selecting default settings
26
        [% t('Selecting default settings') %]
26
     [% END %]
27
     [% END %]
27
     [% IF ( addframeworks ) %]
28
     [% IF ( addframeworks ) %]
28
        Default data loaded
29
        [% t('Default data loaded') %]
29
     [% END %]
30
     [% END %]
30
     [% IF ( finish ) %]
31
     [% IF ( finish ) %]
31
        Installation complete
32
        [% t('Installation complete') %]
32
     [% END %]
33
     [% END %]
33
</title>
34
</title>
34
35
Lines 43-63 Link Here
43
    <div class="container-fluid">
44
    <div class="container-fluid">
44
        <div class="row">
45
        <div class="row">
45
            <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
46
            <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
46
                <h1 id="logo"><a href="#">Koha</a></h1>
47
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
47
                [% IF ( finish ) %]
48
                [% IF ( finish ) %]
48
                    <h2>Web installer &rsaquo; Installation complete</h2>
49
                    <h2>[% t('Web installer › Installation complete') %]</h2>
49
                    <h3>Congratulations, installation complete</h3>
50
                    <h3>[% t('Congratulations, installation complete') %]</h3>
50
                    <p>This page will redirect in 10 seconds. <a href="/cgi-bin/koha/installer/onboarding.pl">If not, click here to start onboarding process.</a></p>
51
                    <p>[% t('This page will redirect in 10 seconds.') %] <a href="/cgi-bin/koha/installer/onboarding.pl">[% t('If not, click here to start onboarding process.') %]</a></p>
51
                [% END %]
52
                [% END %]
52
53
53
                [% IF ( choosemarc ) %]
54
                [% IF ( choosemarc ) %]
54
                    <h2>Select your MARC flavor</h2>
55
                    <h2>[% t('Select your MARC flavor') %]</h2>
55
56
56
                    <form name="frameworkselection" method="post" action="install.pl">
57
                    <form name="frameworkselection" method="post" action="install.pl">
57
                        <input type="hidden" name="step" value="3" />
58
                        <input type="hidden" name="step" value="3" />
58
                        <input type="hidden" name="op" value="selectframeworks" />
59
                        <input type="hidden" name="op" value="selectframeworks" />
59
60
60
                        <p>MARC stands for Machine Readable Cataloging. A MARC record contains bibliographic information about an item. MARC21 is used globally, UNIMARC tends to be used in a few European countries. </p>
61
                        <p>[% t('MARC stands for Machine Readable Cataloging. A MARC record contains bibliographic information about an item. MARC21 is used globally, UNIMARC tends to be used in a few European countries.') %] </p>
61
62
62
                        [% FOREACH flavourloo IN flavourloop %]
63
                        [% FOREACH flavourloo IN flavourloop %]
63
                            [% IF ( flavourloo.label == "Unimarc") %]
64
                            [% IF ( flavourloo.label == "Unimarc") %]
Lines 75-91 Link Here
75
                [% END # / IF choosemarc %]
76
                [% END # / IF choosemarc %]
76
77
77
                [% IF ( selectframeworks ) %]
78
                [% IF ( selectframeworks ) %]
78
                    <h2>Web installer &rsaquo; Selecting default settings</h2>
79
                    <h2>[% t('Web installer › Selecting default settings') %]</h2>
79
80
80
81
81
                    <form name="frameworkselection" method="post" action="install.pl">
82
                    <form name="frameworkselection" method="post" action="install.pl">
82
                        <input type="hidden" name="step" value="3" />
83
                        <input type="hidden" name="step" value="3" />
83
                        <input type="hidden" name="op" value="addframeworks" />
84
                        <input type="hidden" name="op" value="addframeworks" />
84
                        [% IF ( frameworksloop ) %]
85
                        [% IF ( frameworksloop ) %]
85
                            <h3>MARC frameworks: [% marcflavour %]</h3>
86
                            <h3>[% t('MARC frameworks:') %] [% marcflavour %]</h3>
86
                            [% IF ( en_marc_frameworks ) %]
87
                            [% IF ( en_marc_frameworks ) %]
87
                                <h4><span class="error">No MARC frameworks are available for your language.
88
                                <h4><span class="error">[% t('No MARC frameworks are available for your language.') %]
88
                                Defaulting to the frameworks supplied for English (en)<span></h4>
89
                                [% t('Defaulting to the frameworks supplied for English (en)') %]<span></h4>
89
                            [% END %]
90
                            [% END %]
90
                            [% FOREACH frameworksloo IN frameworksloop %]
91
                            [% FOREACH frameworksloo IN frameworksloop %]
91
                                <h4>[% frameworksloo.label %]</h4>
92
                                <h4>[% frameworksloo.label %]</h4>
Lines 93-109 Link Here
93
                                <div class="checkboxes">
94
                                <div class="checkboxes">
94
95
95
                                    <p>
96
                                    <p>
96
                                        <a class="selectall [% frameworksloo.label FILTER lower %]" href="#">Select all</a>
97
                                        <a class="selectall [% frameworksloo.label FILTER lower %]" href="#">[% t('Select all') %]</a>
97
                                        <a class="deselectall [% frameworksloo.label FILTER lower %]" href="#">Select none</a>
98
                                        <a class="deselectall [% frameworksloo.label FILTER lower %]" href="#">[% t('Select none') %]</a>
98
                                    </p>
99
                                    </p>
99
100
100
                                    [% FOREACH framework IN frameworksloo.frameworks %]
101
                                    [% FOREACH framework IN frameworksloo.frameworks %]
101
                                        <div class="checkbox">
102
                                        <div class="checkbox">
102
                                            <label>
103
                                            <label>
103
                                                [% IF ( framework.checked ) %]
104
                                                [% IF ( framework.checked ) %]
104
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" checked="checked" />
105
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname%]" checked="checked" />
105
                                                [% ELSE %]
106
                                                [% ELSE %]
106
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" />
107
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname%]" />
107
                                                [% END %]
108
                                                [% END %]
108
                                                [% framework.fwkdescription %]
109
                                                [% framework.fwkdescription %]
109
                                                <em>([% framework.fwkname %])</em>
110
                                                <em>([% framework.fwkname %])</em>
Lines 115-125 Link Here
115
                            [% END # / FOREACH frameworksloo %]
116
                            [% END # / FOREACH frameworksloo %]
116
                        [% END # / IF frameworkdsloop %]
117
                        [% END # / IF frameworkdsloop %]
117
118
118
                        <h3>Other data</h3>
119
                        <h3>[% t('Other data') %]</h3>
119
120
120
                        [% IF ( en_sample_data ) %]
121
                        [% IF ( en_sample_data ) %]
121
                            <h4><span class="error">No sample data and settings are available for your language.
122
                            <h4><span class="error">[% t('No sample data and settings are available for your language.') %]
122
                            Defaulting to the samples supplied for English (en)<span></h4>
123
                            [% t('Defaulting to the samples supplied for English (en)') %]<span></h4>
123
                        [% END %]
124
                        [% END %]
124
125
125
                        [% FOREACH levelloo IN levelloop %]
126
                        [% FOREACH levelloo IN levelloop %]
Lines 128-135 Link Here
128
                            <div class="checkboxes">
129
                            <div class="checkboxes">
129
130
130
                                <p>
131
                                <p>
131
                                    <a class="selectall [% levelloo.label FILTER lower %]" href="#">Select all</a>
132
                                    <a class="selectall [% levelloo.label FILTER lower %]" href="#">[% t('Select all') %]</a>
132
                                    <a class="deselectall [% levelloo.label FILTER lower %]" href="#">Select none</a>
133
                                    <a class="deselectall [% levelloo.label FILTER lower %]" href="#">[% t('Select none') %]</a>
133
                                </p>
134
                                </p>
134
135
135
                                [% FOREACH framework IN levelloo.frameworks %]
136
                                [% FOREACH framework IN levelloo.frameworks %]
Lines 148-170 Link Here
148
                            </div>
149
                            </div>
149
                        [% END # / FOREACH levelloo %]
150
                        [% END # / FOREACH levelloo %]
150
151
151
                        <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete. Please be patient.</p>
152
                        <p>[% t('When you\'ve made your selections, please click \'Import\' below to begin the process. It may take a while to complete. Please be patient.') %]</p>
152
153
153
                        <p><input type="submit" value="Import" class="btn btn-primary" /></p>
154
                        <p><input type="submit" value="Import" class="btn btn-primary" /></p>
154
                    </form>
155
                    </form>
155
                [% END # / IF selectframeworks %]
156
                [% END # / IF selectframeworks %]
156
157
157
                [% IF ( addframeworks ) %]
158
                [% IF ( addframeworks ) %]
158
                    <h2>Web installer &rsaquo; Default data loaded</h2>
159
                    <h2>[% t('Web installer › Default data loaded') %]</h2>
159
                    [% FOREACH lis IN list %]
160
                    [% FOREACH lis IN list %]
160
                        [% IF lis.level == 'mandatory' %]
161
                        [% IF lis.level == 'mandatory' %]
161
                            <h3>Mandatory data added</h3>
162
                            <h3>[% t('Mandatory data added') %]</h3>
162
                        [% ELSIF lis.level == 'optional' %]
163
                        [% ELSIF lis.level == 'optional' %]
163
                            <h3>Optional data added</h3>
164
                            <h3>[% t('Optional data added') %]</h3>
164
                        [% ELSIF lis.level == 'mysql' %]
165
                        [% ELSIF lis.level == 'mysql' %]
165
                            <h3>MySQL data added</h3>
166
                            <h3>[% t('MySQL data added') %]</h3>
166
                        [% ELSE %]
167
                        [% ELSE %]
167
                            <h3>[% lis.level FILTER ucfirst %] data added</h3>
168
                            <h3>[% lis.level FILTER ucfirst %] [% t('data added') %]</h3>
168
                        [% END %]
169
                        [% END %]
169
                        <ul>
170
                        <ul>
170
                            [% FOREACH fwklis IN lis.fwklist %]
171
                            [% FOREACH fwklis IN lis.fwklist %]
Lines 176-191 Link Here
176
                        </ul>
177
                        </ul>
177
                    [% END %]
178
                    [% END %]
178
179
179
                    <h3>Basic installation complete.</h3>
180
                    <h3>[% t('Basic installation complete.') %]</h3>
180
181
181
                    <p>In the next steps you will be guided through some basic requirements like defining Koha user with all administrative privileges (superlibrarian).</p>
182
                    <p>[% t('In the next steps you will be guided through some basic requirements like defining Koha user with all administrative privileges (superlibrarian).') %]</p>
182
183
183
                    <form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish">
184
                    <form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish">
184
                        <h4>
185
                        <h4>
185
                            You can help the Koha community by sharing your statistics with us.
186
                            [% t('You can help the Koha community by sharing your statistics with us.') %]
186
                        </h4>
187
                        </h4>
187
                        <p>
188
                        <p>
188
                            If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the Administration module.
189
                            [% t('If you wish to share some of your data, please enable the functionality in the &#34;Share your usage statistics&#34; section of the Administration module.') %]
189
                        </p>
190
                        </p>
190
191
191
                        <input type="hidden" name="step" value="3" />
192
                        <input type="hidden" name="step" value="3" />
Lines 199-210 Link Here
199
200
200
                [% IF ( importdatastructure ) %]
201
                [% IF ( importdatastructure ) %]
201
                    [% IF ( error ) %]
202
                    [% IF ( error ) %]
202
                        <p>The following error occurred while importing the database structure:</p>
203
                        <p>[% t('The following error occurred while importing the database structure:') %]</p>
203
                        <div class="alert alert-warning"><p>[% error %] </p></div>
204
                        <div class="alert alert-warning"><p>[% error %] </p></div>
204
                        <p>Please contact your system administrator</p>
205
                        <p>[% t('Please contact your system administrator') %]</p>
205
                    [% ELSE %]
206
                    [% ELSE %]
206
                        <h2>Web installer &rsaquo; Success</h2>
207
                        <h2>[% t('Web installer › Success') %]</h2>
207
                        <div class="alert alert-success"><p>Database tables created</p></div>
208
                        <div class="alert alert-success"><p>[% t('Database tables created') %]</p></div>
208
                        <form action="install.pl" method="post">
209
                        <form action="install.pl" method="post">
209
                            <input type="hidden" name="step" value="3" />
210
                            <input type="hidden" name="step" value="3" />
210
                            <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
211
                            <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
Lines 213-220 Link Here
213
                [% END # / IF importdatastructure %]
214
                [% END # / IF importdatastructure %]
214
215
215
                [% IF ( proposeimport ) %]
216
                [% IF ( proposeimport ) %]
216
                    <h2>Web installer &rsaquo; Set up database</h2>
217
                    <h2>[% t('Web installer › Set up database') %]</h2>
217
                    <p>Now we're ready to create the database tables and fill them with some default data.</p>
218
                    <p>[% t('Now we\'re ready to create the database tables and fill them with some default data.') %]</p>
218
                    <form action="install.pl" method="post">
219
                    <form action="install.pl" method="post">
219
                        <input type="hidden" name="step" value="3" />
220
                        <input type="hidden" name="step" value="3" />
220
                        <input type="hidden" name="op" value="importdatastructure" />
221
                        <input type="hidden" name="op" value="importdatastructure" />
Lines 224-243 Link Here
224
225
225
                [% IF ( default ) %]
226
                [% IF ( default ) %]
226
                    [% IF ( upgrading ) %]
227
                    [% IF ( upgrading ) %]
227
                        <h2>Web installer &rsaquo; Update database</h2>
228
                        <h2>[% t('Web installer › Update database') %]</h2>
228
                        <p>We are upgrading from Koha [% dbversion %] to [% kohaversion %]</p>
229
                        <p>[% t('We are upgrading from Koha') %] [% dbversion %] [% t('to') %] [% kohaversion %]</p>
229
                        <p><a href="install.pl?step=3&amp;op=updatestructure" class="btn btn-primary">Update your database</a></p>
230
                        <p><a href="install.pl?step=3&op=updatestructure" class="btn btn-primary">[% t('Update your database') %]</a></p>
230
                    [% ELSE %]
231
                    [% ELSE %]
231
                        <h2>Web installer &rsaquo; Install basic configuration settings</h2>
232
                        <h2>[% t('Web installer › Install basic configuration settings') %]</h2>
232
                        <p>We are ready to do some basic configuration.</p>
233
                        <p>[% t('We are ready to do some basic configuration.') %]</p>
233
                        <p><a href="install.pl?step=3&amp;op=choosemarc" class="btn btn-primary">Continue to the next step</a></p>
234
                        <p><a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">[% t('Continue to the next step') %]</a></p>
234
                    [% END %]
235
                    [% END %]
235
                [% END # / IF default %]
236
                [% END # / IF default %]
236
237
237
                [% IF ( updatestructure ) %]
238
                [% IF ( updatestructure ) %]
238
                    <h2>Updating database structure</h2>
239
                    <h2>[% t('Updating database structure') %]</h2>
239
                    [% IF ( has_update_succeeds ) %]
240
                    [% IF ( has_update_succeeds ) %]
240
                        <p>Update report :</p>
241
                        <p>[% t('Update report :') %]</p>
241
                        <ul>
242
                        <ul>
242
                            [% FOREACH update_repor IN update_report %]
243
                            [% FOREACH update_repor IN update_report %]
243
                                <li>[% update_repor.line |html %]</li>
244
                                <li>[% update_repor.line |html %]</li>
Lines 245-251 Link Here
245
                        </ul>
246
                        </ul>
246
                    [% END %]
247
                    [% END %]
247
                    [% IF ( has_update_errors ) %]
248
                    [% IF ( has_update_errors ) %]
248
                        <p>Update errors :</p>
249
                        <p>[% t('Update errors :') %]</p>
249
                        <ul>
250
                        <ul>
250
                            [% FOREACH update_error IN update_errors %]
251
                            [% FOREACH update_error IN update_errors %]
251
                                <li class="update_error">[% update_error.line |html %]</li>
252
                                <li class="update_error">[% update_error.line |html %]</li>
Lines 253-261 Link Here
253
                        </ul>
254
                        </ul>
254
                    [% END %]
255
                    [% END %]
255
                    [% UNLESS ( has_update_errors ) %]
256
                    [% UNLESS ( has_update_errors ) %]
256
                        <p>Everything went okay. Update done.</p>
257
                        <p>[% t('Everything went okay. Update done.') %]</p>
257
                    [% END %]
258
                    [% END %]
258
                    <p><a href="install.pl?step=3&amp;op=finished" class="btn btn-primary">Continue to log in to Koha</a></p>
259
                    <p><a href="install.pl?step=3&op=finished" class="btn btn-primary">[% t('Continue to log in to Koha') %]</a></p>
259
               [% END # / IF updatestructure %]
260
               [% END # / IF updatestructure %]
260
            </div> <!-- / #installer-step3 -->
261
            </div> <!-- / #installer-step3 -->
261
        </div> <!-- / .row -->
262
        </div> <!-- / .row -->
262
- 

Return to bug 20988