Bugzilla – Attachment 76353 Details for
Bug 20988
[OMNIBUS] Internationalization: wrap all translatable text inside t() calls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/plugins
Bug-20988-koha-tmplintranet-tmplprogenmodulesplugi.patch (text/plain), 17.93 KB, created by
Julian Maurice
on 2018-06-25 07:23:07 UTC
(
hide
)
Description:
Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/plugins
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-06-25 07:23:07 UTC
Size:
17.93 KB
patch
obsolete
>From 18319f33b269524f35e97d27721df738df0e5a3f Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 25 Jun 2018 08:49:36 +0200 >Subject: [PATCH] Bug 20988: koha-tmpl/intranet-tmpl/prog/en/modules/plugins > >--- > .../en/modules/plugins/plugins-disabled.tt | 13 ++-- > .../prog/en/modules/plugins/plugins-home.tt | 67 ++++++++++--------- > .../prog/en/modules/plugins/plugins-upload.tt | 27 ++++---- > 3 files changed, 55 insertions(+), 52 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt >index dd42f5c7ad..92d905bc34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt >@@ -1,5 +1,6 @@ >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Plugins › Upload Plugin >+<title>[% t('Koha ⺠Tools ⺠Plugins ⺠Upload Plugin') %] > </title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >@@ -9,9 +10,9 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'circ-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> >-› <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a> >-› Plugins disabled >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> >+⺠<a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('Plugins') %]</a> >+[% t('⺠Plugins disabled') %] > </div> > > <div id="doc3" class="yui-t2"> >@@ -20,9 +21,9 @@ > <div class="yui-b"> > <div class="yui-g"> > <div class="yui-u first"> >- <h1>Plugins disabled!</h1> >+ <h1>[% t('Plugins disabled!') %]</h1> > >- <p>To enable Koha plugins, the system preference UseKohaPlugins must be enabled, and the flag enable_plugins must be set in the Koha configuration file</p> >+ <p>[% t('To enable Koha plugins, the system preference UseKohaPlugins must be enabled, and the flag enable_plugins must be set in the Koha configuration file') %]</p> > </div> > </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >index ee9c1a0d4c..78c786181c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >@@ -1,8 +1,9 @@ >+[% PROCESS 'i18n.inc' %] > [% USE Asset %] > [% USE KohaDates %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Plugins </title> >+<title>[% t('Koha ⺠Tools ⺠Plugins') %] </title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -11,9 +12,9 @@ > [% INCLUDE 'prefs-admin-search.inc' %] > > <div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> › >- <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › >- Plugins >+ <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ⺠>+ <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> ⺠>+ [% t('Plugins') %] > </div> > > <div id="doc3" class="yui-t1"> >@@ -24,49 +25,49 @@ > > [% IF ( CAN_user_plugins_manage ) %] > <div class="btn-toolbar" id="toolbar"> >- <a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default btn-sm"><i class="fa fa-upload"></i> Upload plugin</a> >+ <a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default btn-sm"><i class="fa fa-upload"></i> [% t('Upload plugin') %]</a> > <div class="btn-group"> >- <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> View plugins by class <span class="caret"></span></button> >+ <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> [% t('View plugins by class') %] <span class="caret"></span></button> > <ul class="dropdown-menu"> >- <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li> >- <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li> >- <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li> >- <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">View MARC conversion plugins</a></li> >- <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">View online payment plugins</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('View all plugins') %]</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">[% t('View report plugins') %]</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">[% t('View tool plugins') %]</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">[% t('View MARC conversion plugins') %]</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">[% t('View online payment plugins') %]</a></li> > </ul> > </div> > </div> > [% END %] >- <h1>Plugins</h1> >+ <h1>[% t('Plugins') %]</h1> > > [% UNLESS ( plugins ) %] > [% UNLESS ( method ) %] >- <div class="dialog message">No plugins installed</div> >+ <div class="dialog message">[% t('No plugins installed') %]</div> > [% ELSE %] > [% IF method == 'tool' %] >- <div class="dialog message">No plugins that can be used as a tool are installed</div> >+ <div class="dialog message">[% t('No plugins that can be used as a tool are installed') %]</div> > [% ELSIF method == 'report' %] >- <div class="dialog message">No plugins that can create a report are installed</div> >+ <div class="dialog message">[% t('No plugins that can create a report are installed') %]</div> > [% ELSIF method == 'to_marc' %] >- <div class="dialog message">No plugins that can convert files to MARC records are installed</div> >+ <div class="dialog message">[% t('No plugins that can convert files to MARC records are installed') %]</div> > [% ELSIF method == 'opac_online_payment' %] >- <div class="dialog message">No plugins that can process online payments via the public catalog are installed</div> >+ <div class="dialog message">[% t('No plugins that can process online payments via the public catalog are installed') %]</div> > [% ELSE %] >- <div class="dialog message">Unknown plugin type <i>[% method %]</i></div> >+ <div class="dialog message">[% t('Unknown plugin type') %] <i>[% method %]</i></div> > [% END %] > [% END %] > [% ELSE %] > <table> > <tr> >- <th>Name</th> >- <th>Description</th> >- <th>Author</th> >- <th>Plugin version</th> >- <th>Minimum Koha version</th> >- <th>Maximum Koha version</th> >- <th>Last updated</th> >+ <th>[% t('Name') %]</th> >+ <th>[% t('Description') %]</th> >+ <th>[% t('Author') %]</th> >+ <th>[% t('Plugin version') %]</th> >+ <th>[% t('Minimum Koha version') %]</th> >+ <th>[% t('Maximum Koha version') %]</th> >+ <th>[% t('Last updated') %]</th> > [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] >- <th>Actions</th> >+ <th>[% t('Actions') %]</th> > [% END %] > </tr> > >@@ -77,11 +78,11 @@ > [% plugin.metadata.description %] > > [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %] >- <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div> >+ <div class="error">[% t('Warning: This report was written for a newer version of Koha. Run at your own risk.') %]</div> > [% END %] > > [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %] >- <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div> >+ <div class="error">[% t('Warning: This report was written for an older version of Koha. Run at your own risk.') %]</div> > [% END %] > </td> > <td>[% plugin.metadata.author %]</td> >@@ -93,28 +94,28 @@ > <td class="actions"> > <div class="dropdown"> > <a class="btn btn-default btn-xs dropdown-toggle" id="pluginactions[% plugin.class %]" role="button" data-toggle="dropdown" href="#"> >- Actions <b class="caret"></b> >+ [% t('Actions') %] <b class="caret"></b> > </a> > <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="pluginactions[% plugin.class %]"> > [% IF ( CAN_user_plugins_report ) %] > [% IF plugin.can('report') %] >- <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report"><i class="fa fa-table"></i> Run report</a></li> >+ <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=report"><i class="fa fa-table"></i> [% t('Run report') %]</a></li> > [% END %] > [% END %] > > [% IF ( CAN_user_plugins_tool ) %] > [% IF plugin.can('tool') %] >- <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool"><i class="fa fa-wrench"></i> Run tool</a></li> >+ <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=tool"><i class="fa fa-wrench"></i> [% t('Run tool') %]</a></li> > [% END %] > [% END %] > > [% IF ( CAN_user_plugins_configure ) %] > [% IF plugin.can('configure') %] >- <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure"><i class="fa fa-cog"></i> Configure</a></li> >+ <li><a href="/cgi-bin/koha/plugins/run.pl?class=[% plugin.class %]&method=configure"><i class="fa fa-cog"></i> [% t('Configure') %]</a></li> > [% END %] > [% END %] > [% IF ( CAN_user_plugins_manage ) %] >- <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]"><i class="fa fa-trash"></i> Uninstall</a></li> >+ <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class %]"><i class="fa fa-trash"></i> [% t('Uninstall') %]</a></li> > [% END %] > </ul> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt >index 070c03d9e9..9a0dc5d6a6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt >@@ -1,5 +1,6 @@ >+[% PROCESS 'i18n.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Tools › Plugins › Upload Plugin >+<title>[% t('Koha ⺠Tools ⺠Plugins ⺠Upload Plugin') %] > </title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >@@ -9,9 +10,9 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'circ-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> >-› <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a> >-› Upload Plugins >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> >+⺠<a href="/cgi-bin/koha/plugins/plugins-home.pl">[% t('Plugins') %]</a> >+[% t('⺠Upload Plugins') %] > </div> > > <div id="doc3" class="yui-t2"> >@@ -20,25 +21,25 @@ > <div class="yui-b"> > <div class="yui-g"> > <div class="yui-u first"> >- <h1>Upload Koha Plugin</h1> >+ <h1>[% t('Upload Koha Plugin') %]</h1> > [% IF ( ERRORS ) %] > <div class="dialog alert"> > [% FOREACH ERROR IN ERRORS %] >- [% IF ( ERROR.NOTKPZ ) %]<li><b>The upload file does not appear to be a kpz file. The extension is not '.kpz'.</b></li> >- [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>This script is not able to create/write to the necessary temporary directory.</b></li> >- [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>The upload file appears to be empty.</b></li> >- [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li> >- [% ELSIF ( ERROR.NOWRITEPLUGINS ) %]<li><b>Cannot unpack file to the plugins directory.<br />Please verify that the Apache user can write to the plugins directory.</b></li> >- [% ELSE %]<li><b>[% ERROR.CORERR %] An unknown error has occurred.<br />Please review the error log for more details.</b></li>[% END %] >+ [% IF ( ERROR.NOTKPZ ) %]<li><b>[% t('The upload file does not appear to be a kpz file.') %] [% t('The extension is not \'.kpz\'.') %]</b></li> >+ [% ELSIF ( ERROR.NOWRITETEMP ) %]<li><b>[% t('This script is not able to create/write to the necessary temporary directory.') %]</b></li> >+ [% ELSIF ( ERROR.EMPTYUPLOAD ) %]<li><b>[% t('The upload file appears to be empty.') %]</b></li> >+ [% ELSIF ( ERROR.UZIPFAIL ) %]<li><b>[% ERROR.UZIPFAIL %] [% t('failed to unpack.') %]<br />[% t('Please verify the integrity of the zip file and retry.') %]</b></li> >+ [% ELSIF ( ERROR.NOWRITEPLUGINS ) %]<li><b>[% t('Cannot unpack file to the plugins directory.') %]<br />[% t('Please verify that the Apache user can write to the plugins directory.') %]</b></li> >+ [% ELSE %]<li><b>[% ERROR.CORERR %] [% t('An unknown error has occurred.') %]<br />[% t('Please review the error log for more details.') %]</b></li>[% END %] > [% END %] > </div> > [% END %] > <form method="post" action="/cgi-bin/koha/plugins/plugins-upload.pl" enctype="multipart/form-data"> > <fieldset class="brief"> >- <div class="hint"><b>NOTE:</b> Only KPZ file format is supported.</div> >+ <div class="hint"><b>[% t('NOTE:') %]</b> [% t('Only KPZ file format is supported.') %]</div> > <ol> > <li> >- <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" /> >+ <label for="uploadfile">[% t('Select the file to upload:') %] </label><input type="file" id="uploadfile" name="uploadfile" /> > </li> > </ol> > </fieldset> >-- >2.17.1
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 20988
:
76333
|
76334
|
76335
|
76336
|
76337
|
76338
|
76339
|
76340
|
76341
|
76342
|
76343
|
76344
|
76345
|
76346
|
76347
|
76348
|
76349
|
76350
|
76351
|
76352
|
76353
|
76354
|
76355
|
76356
|
76357
|
76358
|
76359
|
76360
|
76361
|
76362
|
76363
|
76364
|
76365
|
76934
|
76935