[Koha-patches] [PATCH] misc: Fix some typos in comments and documentation
Stefan Weil
sw at weilnetz.de
Sun Jun 14 22:42:57 CEST 2015
Most of them were found and fixed using codespell.
Signed-off-by: Stefan Weil <sw at weilnetz.de>
---
misc/cronjobs/cloud-kw.pl | 10 +++++-----
misc/cronjobs/fines.pl | 2 +-
misc/cronjobs/overdue_notices.pl | 6 +++---
misc/cronjobs/rss/README | 2 +-
misc/cronjobs/staticfines.pl | 2 +-
misc/devel/update_dbix_class_files.pl | 2 +-
misc/load_testing/benchmark_circulation.pl | 2 +-
misc/maintenance/MARC21_utf8_flag_fix.pl | 2 +-
misc/migration_tools/bulkmarcimport.pl | 6 +++---
misc/migration_tools/koha-svc.pl | 2 +-
misc/plack/koha.psgi | 2 +-
11 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/misc/cronjobs/cloud-kw.pl b/misc/cronjobs/cloud-kw.pl
index 82ce25f..9686415 100755
--- a/misc/cronjobs/cloud-kw.pl
+++ b/misc/cronjobs/cloud-kw.pl
@@ -128,12 +128,12 @@ sub new {
# RETURN:
# A 4-dimensionnal array in $self->{top_terms}
# [0] term
-# [1] term number of occurences
+# [1] term number of occurrences
# [2] term proportional relative weight in terms set E[0-1]
# [3] term logarithmic relative weight E [0-levels_cloud]
#
# This array is sorted alphabetically by terms ([0])
-# It can be easily sorted by occurences:
+# It can be easily sorted by occurrences:
# @t = sort { $a[1] <=> $a[1] } @{$self->{top_terms}};
#
sub scan {
@@ -236,7 +236,7 @@ sub scan {
#
-# Returns a HTML version of index top terms formated
+# Returns a HTML version of index top terms formatted
# as a 'tag cloud'.
#
sub html_cloud {
@@ -376,14 +376,14 @@ Configuration file looks like that:
=head1 IMPROVEMENTS
Generated top terms have more informations than those outputted from
-the time beeing. Some parameters could be easily added to improve
+the time being. Some parameters could be easily added to improve
this script:
=over
=item B<WithCount>
-In order to output terms with the number of occurences they
+In order to output terms with the number of occurrences they
have been found in Koha Catalogue by Zebra.
=item B<CloudLevels>
diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl
index 75d3fbb..538f962 100755
--- a/misc/cronjobs/fines.pl
+++ b/misc/cronjobs/fines.pl
@@ -3,7 +3,7 @@
# This script loops through each overdue item, determines the fine,
# and updates the total amount of fines due by each user. It relies on
# the existence of /tmp/fines, which is created by ???
-# Doesnt really rely on it, it relys on being able to write to /tmp/
+# Doesn't really rely on it, it relys on being able to write to /tmp/
# It creates the fines file
#
# This script is meant to be run nightly out of cron.
diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 7068d3d..f87f254 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -119,7 +119,7 @@ overdues that could not be emailed are sent in CSV format to the admin.
Produces html data. If patron does not have an email address or
-n (no mail) flag is set, an HTML file is generated in the specified
-directory. This can be downloaded or futher processed by library staff.
+directory. This can be downloaded or further processed by library staff.
The file will be called notices-YYYY-MM-DD.html and placed in the directory
specified.
@@ -127,7 +127,7 @@ specified.
Produces plain text data. If patron does not have an email address or
-n (no mail) flag is set, a text file is generated in the specified
-directory. This can be downloaded or futher processed by library staff.
+directory. This can be downloaded or further processed by library staff.
The file will be called notices-YYYY-MM-DD.txt and placed in the directory
specified.
@@ -268,7 +268,7 @@ overdues in the last 2 weeks for the MAIN library.
=head1 SEE ALSO
The F<misc/cronjobs/advance_notices.pl> program allows you to send
-messages to patrons in advance of thier items becoming due, or to
+messages to patrons in advance of their items becoming due, or to
alert them of items that have just become due.
=cut
diff --git a/misc/cronjobs/rss/README b/misc/cronjobs/rss/README
index b3967d5..421a4f8 100644
--- a/misc/cronjobs/rss/README
+++ b/misc/cronjobs/rss/README
@@ -27,7 +27,7 @@ content, or at least modify the ones present here, let's review the
config file and the template file.
A config file is divided into three sections; channel, image, and
-config. A section begins with the name of the section occuring alone
+config. A section begins with the name of the section occurring alone
on a line, and ends with the beginning of the next section (or the end
of the file). Each of these sections contains series of configuration
options in the form:
diff --git a/misc/cronjobs/staticfines.pl b/misc/cronjobs/staticfines.pl
index 1309c8b..eb5284c 100755
--- a/misc/cronjobs/staticfines.pl
+++ b/misc/cronjobs/staticfines.pl
@@ -3,7 +3,7 @@
# This script loops through each overdue item, determines the fine,
# and updates the total amount of fines due by each user. It relies on
# the existence of /tmp/fines, which is created by ???
-# Doesnt really rely on it, it relys on being able to write to /tmp/
+# Doesn't really rely on it, it relies on being able to write to /tmp/
# It creates the fines file
#
# This script is meant to be run nightly out of cron.
diff --git a/misc/devel/update_dbix_class_files.pl b/misc/devel/update_dbix_class_files.pl
index 9b080e0..a291cef 100755
--- a/misc/devel/update_dbix_class_files.pl
+++ b/misc/devel/update_dbix_class_files.pl
@@ -72,7 +72,7 @@ misc/devel/update_dbix_class_files.pl
--db_passwd=db-pass ...
The command in usually called from the root directory for the Koha source tree.
-If you are runing from another directory, use the --path switch to specify
+If you are running from another directory, use the --path switch to specify
a different path.
=head1 OPTIONS
diff --git a/misc/load_testing/benchmark_circulation.pl b/misc/load_testing/benchmark_circulation.pl
index 8974edb..5c6ecdb 100755
--- a/misc/load_testing/benchmark_circulation.pl
+++ b/misc/load_testing/benchmark_circulation.pl
@@ -71,7 +71,7 @@ my @mainpage;
print "--------------\n";
print "Koha circulation benchmarking utility\n";
print "--------------\n";
-print "Benchmarking with $max_tries occurences of each operation and $concurrency concurrent sessions \n";
+print "Benchmarking with $max_tries occurrences of each operation and $concurrency concurrent sessions \n";
print "Load testing staff client dashboard page";
for (my $i=1;$i<=$max_tries;$i++) {
push @mainpage,"$baseurl/mainpage.pl";
diff --git a/misc/maintenance/MARC21_utf8_flag_fix.pl b/misc/maintenance/MARC21_utf8_flag_fix.pl
index fda68be..b0efb8d 100755
--- a/misc/maintenance/MARC21_utf8_flag_fix.pl
+++ b/misc/maintenance/MARC21_utf8_flag_fix.pl
@@ -170,7 +170,7 @@ The default is to target all records with bad leaders.
=item B<--offset=N>
-Like an OFFSET statement in SQL, this tells the script to skip N of the targetted records.
+Like an OFFSET statement in SQL, this tells the script to skip N of the targeted records.
The default is 0, i.e. skip none of them.
=back
diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl
index 8d1f518..fc68e40 100755
--- a/misc/migration_tools/bulkmarcimport.pl
+++ b/misc/migration_tools/bulkmarcimport.pl
@@ -122,7 +122,7 @@ if ((not defined $sourcesubfield) && (not defined $sourcetag)){
}
-# Disable logging for the biblios and authorities import operation. It would unnecesarily
+# Disable logging for the biblios and authorities import operation. It would unnecessarily
# slow the import
# Disable the syspref cache so we can change logging settings
@@ -727,7 +727,7 @@ if set, do whatever is required
=item B<-k, -keepids>=<FIELD>
-Field store ids in I<FIELD> (usefull for authorities, where 001 contains the
+Field store ids in I<FIELD> (useful for authorities, where 001 contains the
authid for Koha, that can contain a very valuable info for authorities coming
from LOC or BNF. useless for biblios probably)
@@ -761,7 +761,7 @@ I<FILE> for the koha bib and source id
=item B<-keepids>
-Store ids in 009 (usefull for authorities, where 001 contains the authid for
+Store ids in 009 (useful for authorities, where 001 contains the authid for
Koha, that can contain a very valuable info for authorities coming from LOC or
BNF. useless for biblios probably)
diff --git a/misc/migration_tools/koha-svc.pl b/misc/migration_tools/koha-svc.pl
index 8d2acf5..055c238 100755
--- a/misc/migration_tools/koha-svc.pl
+++ b/misc/migration_tools/koha-svc.pl
@@ -77,7 +77,7 @@ This same script can be used as module (as it defines T<Koha::SVC> package) usin
require "koha-svc.pl"
-at begining of script. Rest of API is described below. Example of it's usage is at beginning of this script.
+at beginning of script. Rest of API is described below. Example of its usage is at beginning of this script.
=head2 new
diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi
index a35eb77..b0cd20a 100644
--- a/misc/plack/koha.psgi
+++ b/misc/plack/koha.psgi
@@ -28,7 +28,7 @@ $ENV{PLACK_DEBUG} = 1; # toggle debugging
$ENV{MEMCACHED_SERVERS} = "localhost:11211";
#$ENV{MEMCACHED_DEBUG} = 0;
-$ENV{PROFILE_PER_PAGE} = 1; # reset persistant and profile counters after each page, like CGI
+$ENV{PROFILE_PER_PAGE} = 1; # reset persistent and profile counters after each page, like CGI
#$ENV{INTRANET} = 1; # usually passed from script
#$ENV{DBI_AUTOPROXY}='dbi:Gofer:transport=null;cache=DBI::Util::CacheMemory'
--
2.1.4
More information about the Koha-patches
mailing list