Bug 33915: Improve translation of title tags: Installer and onboarding
This patch updates installer and onboarding templates so that title tags can be more easily translated. To test, apply the patch and run through the installation and onboarding process. At each stage confirm that the page title is correct. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
fe22e14775
commit
34d52bc641
9 changed files with 107 additions and 53 deletions
|
@ -1,12 +1,25 @@
|
|||
[% USE raw %]
|
||||
[% USE Koha %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>
|
||||
[% IF ( nopermission ) %]Access denied[% END %]
|
||||
[% IF ( timed_out ) %]Session timed out[% END %]
|
||||
[% IF ( different_ip ) %]IP address change[% END %]
|
||||
[% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
|
||||
[% IF ( loginprompt ) %]Log in to the Koha web installer[% END %] › Koha
|
||||
</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% IF ( nopermission ) %]
|
||||
[% t("Access denied") | html %]
|
||||
[% END %]
|
||||
[% IF ( timed_out ) %]
|
||||
[% t("Session timed out") | html %]
|
||||
[% END %]
|
||||
[% IF ( different_ip ) %]
|
||||
[% t("IP address change") | html %]
|
||||
[% END %]
|
||||
[% IF ( invalid_username_or_password ) %]
|
||||
[% t("Invalid username or password") | html %]
|
||||
[% END %]
|
||||
[% IF ( loginprompt ) %]
|
||||
[% t("Log in to the Koha web installer") | html %]
|
||||
[% END %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% UNLESS ( language ) %] Choose your language [% END %]
|
||||
[% IF ( language ) %]
|
||||
[% UNLESS ( checkmodule ) %]
|
||||
[% IF ( missing_modules ) %]
|
||||
Perl modules missing
|
||||
[% t("Perl modules missing") | html %]
|
||||
[% END %]
|
||||
[% IF ( problems ) %]
|
||||
Perl version obsolete
|
||||
[% t("Perl version obsolete") | html %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
Check Perl dependencies
|
||||
[% END %] › Web installer › Koha
|
||||
</title>
|
||||
[% t("Check Perl dependencies") | html %]
|
||||
[% END %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
[% USE raw %]
|
||||
[% USE HtmlTags %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]<title>Database settings › Web installer › Koha</title>
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Database settings") | html %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,37 +1,40 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
||||
<title>
|
||||
[% IF ( proposeimport ) %]
|
||||
Set up database
|
||||
[% END %]
|
||||
[% IF ( importdatastructure ) %]
|
||||
[% IF ( error ) %]
|
||||
Error creating database tables
|
||||
[% ELSE %]
|
||||
Database tables created
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( default ) %]
|
||||
[% IF ( upgrading ) %]
|
||||
Update database
|
||||
<title>[% FILTER collapse %]
|
||||
[% IF ( proposeimport ) %]
|
||||
[% t("Set up database") | html %]
|
||||
[% END %]
|
||||
[% IF ( importdatastructure ) %]
|
||||
[% IF ( error ) %]
|
||||
[% t("Error creating database tables") | html %]
|
||||
[% ELSE %]
|
||||
Install basic configuration settings
|
||||
[% t("Database tables created") | html %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( choosemarc ) %]
|
||||
Select your MARC flavor
|
||||
[% END %]
|
||||
[% IF ( selectframeworks ) %]
|
||||
Selecting default settings
|
||||
[% END %]
|
||||
[% IF ( addframeworks ) %]
|
||||
Default data loaded
|
||||
[% END %]
|
||||
[% IF ( finish ) %]
|
||||
Installation complete
|
||||
[% END %] › Web installer › Koha
|
||||
</title>
|
||||
[% END %]
|
||||
[% IF ( default ) %]
|
||||
[% IF ( upgrading ) %]
|
||||
[% t("Update database") | html %]
|
||||
[% ELSE %]
|
||||
[% t("Install basic configuration settings") | html %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( choosemarc ) %]
|
||||
[% t("Select your MARC flavor") | html %]
|
||||
[% END %]
|
||||
[% IF ( selectframeworks ) %]
|
||||
[% t("Selecting default settings") | html %]
|
||||
[% END %]
|
||||
[% IF ( addframeworks ) %]
|
||||
[% t("Default data loaded") | html %]
|
||||
[% END %]
|
||||
[% IF ( finish ) %]
|
||||
[% t("Installation complete") | html %]
|
||||
[% END %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
||||
<title>Create a library › Web installer › Koha</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Create a library") | html %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
[% USE raw %]
|
||||
[% USE Koha %]
|
||||
[% USE KohaDates %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Add a patron category › Web installer › Koha</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Add a patron category") | html %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[%# The following if statement checks if the categories variable handed to this template %]
|
||||
[%# by onboarding.pl has data in it. If the categories variable does have data %]
|
||||
[%# in it this means that the user has previously imported sample patron category %]
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
[% USE Koha %]
|
||||
[% USE raw %]
|
||||
[% USE Koha %]
|
||||
[% USE Asset %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Create Koha administrator patron › Web installer › Koha</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Create Koha administrator patron") | html %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Create a new item type › Web installer › Koha</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Create a new item type") | html %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
[% USE raw %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% IF all_done %]
|
||||
Complete
|
||||
[% t("Onboarding complete") | html %]
|
||||
[% ELSE %]
|
||||
Create circulation rule
|
||||
[% END %] › Web installer › Koha
|
||||
</title>
|
||||
[% t("Create circulation rule") | html %]
|
||||
[% END %] ›
|
||||
[% t("Web installer") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'installer-doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Reference in a new issue