koha.git
20 years agoNew scripts for translation into Chinese and other languages where English
acli [Thu, 19 Feb 2004 21:24:30 +0000 (21:24 +0000)]
New scripts for translation into Chinese and other languages where English
word order is too different than the word order of the target language to
yield meaningful translations.

The new scripts use a different translation file format (namely standard
gettext-style PO files).

This seems to reasonably work (e.g., producing an empty en_GB translation
then installing seems to not corrupt the "translated" files), but it likely
will still contain some bugs. There is also little documentation, but try
to run perldoc on the .p[lm] files to see what's there. There are also some
spurious warnings (both from bugs in the new scripts and from buggy third-
party Locale::PO module).

20 years agoNew NPL templates
oleonard [Thu, 19 Feb 2004 19:19:55 +0000 (19:19 +0000)]
New NPL templates

20 years agoNew NPL templates
oleonard [Thu, 19 Feb 2004 18:59:36 +0000 (18:59 +0000)]
New NPL templates

20 years agoAdding item information variable declarations to 'Waiting' section already present...
oleonard [Wed, 18 Feb 2004 16:51:20 +0000 (16:51 +0000)]
Adding item information variable declarations to 'Waiting' section already present in 'Reserved' section

20 years agoWarn against Apache #include directive
acli [Wed, 18 Feb 2004 06:56:19 +0000 (06:56 +0000)]
Warn against Apache #include directive

20 years agoUpdated w.r.t. the text-extract2.pl filter.
acli [Wed, 18 Feb 2004 06:39:34 +0000 (06:39 +0000)]
Updated w.r.t. the text-extract2.pl filter.

20 years agoAdding variable declarations so that 'waiting' screen shows same information 'reserve...
oleonard [Tue, 17 Feb 2004 22:15:33 +0000 (22:15 +0000)]
Adding variable declarations so that 'waiting' screen shows same information 'reserved' screen does, adding more address info

20 years agoThe previous change was wrong.
acli [Tue, 17 Feb 2004 07:45:17 +0000 (07:45 +0000)]
The previous change was wrong.

20 years agoAllow trim to return the trimmed whitespace if the caller wants them.
acli [Tue, 17 Feb 2004 07:26:29 +0000 (07:26 +0000)]
Allow trim to return the trimmed whitespace if the caller wants them.

20 years agoDon't extract strings from the VALUE attributes of RADIO type INPUT fields;
acli [Tue, 17 Feb 2004 06:30:38 +0000 (06:30 +0000)]
Don't extract strings from the VALUE attributes of RADIO type INPUT fields;
these aren't translatable.

20 years agoInsert the filename of the token into the TmplToken object too
acli [Tue, 17 Feb 2004 05:42:27 +0000 (05:42 +0000)]
Insert the filename of the token into the TmplToken object too

20 years agoConverted TmplTokenizer into a class. Everything still seems ok, but it is
acli [Tue, 17 Feb 2004 05:07:04 +0000 (05:07 +0000)]
Converted TmplTokenizer into a class. Everything still seems ok, but it is
not tested thoroughly.

20 years agoStill more bugfixes for my own bugs.
acli [Tue, 17 Feb 2004 03:17:48 +0000 (03:17 +0000)]
Still more bugfixes for my own bugs.

$readahead is now an array @readahead which can contain TmplToken objects,
so "ungetting" tokens should not disturb the line number counter any more.

20 years agoFixed more bugs during the modularization
acli [Tue, 17 Feb 2004 03:02:39 +0000 (03:02 +0000)]
Fixed more bugs during the modularization

20 years agoFurther breaking up of the TmplTokenizer module.
acli [Tue, 17 Feb 2004 02:45:27 +0000 (02:45 +0000)]
Further breaking up of the TmplTokenizer module.
A couple of minor fixes.

20 years agoAvoid direct accessing of variables inside the module
acli [Mon, 16 Feb 2004 23:50:56 +0000 (23:50 +0000)]
Avoid direct accessing of variables inside the module

20 years agoSome functions should not be in the module; these are now removed.
acli [Mon, 16 Feb 2004 23:46:34 +0000 (23:46 +0000)]
Some functions should not be in the module; these are now removed.

20 years agoPulled the tokenizer out into a module. Hope this has been done right.
acli [Mon, 16 Feb 2004 23:42:57 +0000 (23:42 +0000)]
Pulled the tokenizer out into a module. Hope this has been done right.

20 years agoMinor factoring of construction of warning messages.
acli [Mon, 16 Feb 2004 22:50:34 +0000 (22:50 +0000)]
Minor factoring of construction of warning messages.

20 years agoDon't bother warning about TMPL_VAR if the key is onclick, onblur, etc.
acli [Sat, 14 Feb 2004 09:50:11 +0000 (09:50 +0000)]
Don't bother warning about TMPL_VAR if the key is onclick, onblur, etc.
We don't know how to warn/what to suggest, & that will only confuse people

20 years agoFix spurious warnings if attribute is in the form foo="bar"</TMPL_IF>
acli [Sat, 14 Feb 2004 09:41:28 +0000 (09:41 +0000)]
Fix spurious warnings if attribute is in the form foo="bar"</TMPL_IF>

20 years agoMake a reasonable suggestion for ESCAPE= if we warn about lack of it
acli [Sat, 14 Feb 2004 09:33:09 +0000 (09:33 +0000)]
Make a reasonable suggestion for ESCAPE= if we warn about lack of it

20 years agoFixed spurious warning about unescaped < inside cdata
acli [Sat, 14 Feb 2004 09:23:34 +0000 (09:23 +0000)]
Fixed spurious warning about unescaped < inside cdata

20 years agoMinor change to make the "closed start tag" warning more understandable
acli [Sat, 14 Feb 2004 09:10:20 +0000 (09:10 +0000)]
Minor change to make the "closed start tag" warning more understandable

20 years agoDon't complain about strange attribute syntax if what we see is a
acli [Sat, 14 Feb 2004 08:49:21 +0000 (08:49 +0000)]
Don't complain about strange attribute syntax if what we see is a
reasonable templating control flow directive (if, else, unless).

20 years agoHave to make it know what "closed start tag" notation is; other it spews
acli [Sat, 14 Feb 2004 08:03:02 +0000 (08:03 +0000)]
Have to make it know what "closed start tag" notation is; other it spews
out more than a screenful or text for an "unknown token" when such notation
is seen

20 years agoFixed problem recognizing tags in the form of <foo ... bar=<!-- TMPL_VAR ... >>
acli [Sat, 14 Feb 2004 07:49:37 +0000 (07:49 +0000)]
Fixed problem recognizing tags in the form of <foo ... bar=<!-- TMPL_VAR ... >>

20 years agoDon't extract TMPL_VAR's as if they were translatable
acli [Sat, 14 Feb 2004 07:13:09 +0000 (07:13 +0000)]
Don't extract TMPL_VAR's as if they were translatable

20 years agoDon't complain about </TMPL_IF> or </TMPL_LOOP> being strange attribute
acli [Sat, 14 Feb 2004 07:07:36 +0000 (07:07 +0000)]
Don't complain about </TMPL_IF> or </TMPL_LOOP> being strange attribute
syntax; they are fine.

The way TMPL_VAR is warned probably makes more sense now.

20 years agoThis should be still more correct regarding when to warn about TMPL_VAR
acli [Sat, 14 Feb 2004 06:16:36 +0000 (06:16 +0000)]
This should be still more correct regarding when to warn about TMPL_VAR
in attributes

20 years agoMore correct version of previous change
acli [Sat, 14 Feb 2004 05:50:55 +0000 (05:50 +0000)]
More correct version of previous change

20 years agoMake sure that if an attribute contains < or >, a warning is given; these
acli [Sat, 14 Feb 2004 05:46:38 +0000 (05:46 +0000)]
Make sure that if an attribute contains < or >, a warning is given; these
warnings aren't pedantic because (1) if it's a templating directive, it
might expand into something containing a real < and/or >, and (2) if it
contains >, the browser will close the current tag, and (3) if it contains
< and the browser knows what "SGML closed start tags" are (e.g., Mozilla),
the browser will also close the current tag.

20 years agoHmm. I didn't know there can be whitespace before and/or after = in
acli [Sat, 14 Feb 2004 05:35:04 +0000 (05:35 +0000)]
Hmm. I didn't know there can be whitespace before and/or after = in
attributes...

20 years agoHandle leading or trailing &nbsp;'s as leading or trailing spaces.
acli [Fri, 13 Feb 2004 03:49:26 +0000 (03:49 +0000)]
Handle leading or trailing &nbsp;'s as leading or trailing spaces.
Make sure they are all trimmed off.

$re_end_entity is now used (by the above); there are &nbsp's (no ;)
in our templates.

20 years agoSome needed HTML syntax corrections.
acli [Fri, 13 Feb 2004 02:46:02 +0000 (02:46 +0000)]
Some needed HTML syntax corrections.

20 years agoThe fixed search.marc/search.tmpl (nothing between <textarea></textarea>)
acli [Fri, 13 Feb 2004 02:42:06 +0000 (02:42 +0000)]
The fixed search.marc/search.tmpl (nothing between <textarea></textarea>)
caused an eof token to be incorrectly generated by next_token(). This
is now fixed.

20 years agoDon't mindlessly spew out 40 lines of text in a warning message if we get
acli [Fri, 13 Feb 2004 01:48:58 +0000 (01:48 +0000)]
Don't mindlessly spew out 40 lines of text in a warning message if we get
too confused.  Just say we are too confused.

20 years agoThis way of reporting line numbers should make more sense,
acli [Fri, 13 Feb 2004 01:27:03 +0000 (01:27 +0000)]
This way of reporting line numbers should make more sense,
esp. for pathetic cases like search.marc/search.tmpl
(missing closing " for an attribute)

20 years agoDisplay something useful if the user doesn't specify -f
acli [Fri, 13 Feb 2004 01:20:03 +0000 (01:20 +0000)]
Display something useful if the user doesn't specify -f

20 years agoDon't issue warnings for unquoted attributes containing [^-\.a-zA-Z0-9]
acli [Fri, 13 Feb 2004 01:14:18 +0000 (01:14 +0000)]
Don't issue warnings for unquoted attributes containing [^-\.a-zA-Z0-9]
unless --pedantic-warnings is given. These don't seem to cause any trouble,
even in Mozilla's standards compliant mode.

20 years agoPaul's problem #1 is now fixed: Bug in regular expression $re_directive.
acli [Fri, 13 Feb 2004 01:03:18 +0000 (01:03 +0000)]
Paul's problem #1 is now fixed: Bug in regular expression $re_directive.
Put my "grander plan" :-) in the comments

20 years agoDon't extract purely-numeric strings like "1" either
acli [Fri, 13 Feb 2004 00:48:52 +0000 (00:48 +0000)]
Don't extract purely-numeric strings like "1" either

20 years agoSeems like I wasn't careful enough recognizing unknown tokens. Incomplete
acli [Fri, 13 Feb 2004 00:42:52 +0000 (00:42 +0000)]
Seems like I wasn't careful enough recognizing unknown tokens.  Incomplete
tags like "<b foo" at the end of the file seems to be discarded silently by
Mozilla, even in quirks mode. We now display a warning for these (in case
these ever come up by accident).

20 years agoMinor wording rewrite in warning
acli [Thu, 12 Feb 2004 18:25:43 +0000 (18:25 +0000)]
Minor wording rewrite in warning

20 years agoWarn about unquoted attribute values containing [^-\.a-zA-Z0-9]
acli [Thu, 12 Feb 2004 18:19:17 +0000 (18:19 +0000)]
Warn about unquoted attribute values containing [^-\.a-zA-Z0-9]

20 years agoextract_attributes now knows what XML-style self-closing tags are
acli [Thu, 12 Feb 2004 17:58:24 +0000 (17:58 +0000)]
extract_attributes now knows what XML-style self-closing tags are

20 years agoWarn about <<Prev
acli [Thu, 12 Feb 2004 17:44:59 +0000 (17:44 +0000)]
Warn about <<Prev

20 years agoIt now knows what << Prev is, but it may still be confused by other kinds
acli [Thu, 12 Feb 2004 17:38:42 +0000 (17:38 +0000)]
It now knows what << Prev is, but it may still be confused by other kinds
of tag lookalikes

20 years agodeleting subs duplicated by error
tipaul [Thu, 12 Feb 2004 13:40:56 +0000 (13:40 +0000)]
deleting subs duplicated by error

20 years agoHandle attributes which are TMPL_VAR's better. It was choking on
acli [Thu, 12 Feb 2004 09:38:20 +0000 (09:38 +0000)]
Handle attributes which are TMPL_VAR's better. It was choking on
systempreferences.tmpl.

20 years agoDon't extract strings in hidden values
acli [Thu, 12 Feb 2004 09:26:54 +0000 (09:26 +0000)]
Don't extract strings in hidden values

20 years agonew feature : stocktaking/inventory.
tipaul [Thu, 12 Feb 2004 09:16:18 +0000 (09:16 +0000)]
new feature : stocktaking/inventory.
Look in reports menu
(no DB changes)

20 years agoignoring .tmpl that are hidden files (.somthing.tmpl). hidden files are generated...
tipaul [Thu, 12 Feb 2004 09:13:40 +0000 (09:13 +0000)]
ignoring .tmpl that are hidden files (.somthing.tmpl). hidden files are generated by tools like emacs

20 years agoThis should be good enough to replace text-extract.pl, but some real
acli [Thu, 12 Feb 2004 09:02:39 +0000 (09:02 +0000)]
This should be good enough to replace text-extract.pl, but some real
testing is needed.

20 years agoThis is an experimental filter, based on simple scanning, that *should*
acli [Thu, 12 Feb 2004 08:55:14 +0000 (08:55 +0000)]
This is an experimental filter, based on simple scanning, that *should*
(ultimately) work better than the standard filter based on real parsing
of the .tmpl files.

20 years agosynch'ing 2.0.0 branch (RC4 tag) and head
tipaul [Wed, 11 Feb 2004 08:57:16 +0000 (08:57 +0000)]
synch'ing 2.0.0 branch (RC4 tag) and head

20 years agosynch'ing 2.0.0 branch (RC4 tag) and head
tipaul [Wed, 11 Feb 2004 08:42:01 +0000 (08:42 +0000)]
synch'ing 2.0.0 branch (RC4 tag) and head

20 years agosynch'ing 2.0.0 branch and head
tipaul [Wed, 11 Feb 2004 08:35:31 +0000 (08:35 +0000)]
synch'ing 2.0.0 branch and head

20 years agoexit(-1) after usage() is not needed
acli [Tue, 10 Feb 2004 09:42:18 +0000 (09:42 +0000)]
exit(-1) after usage() is not needed

20 years agoMinor correction in help text
acli [Tue, 10 Feb 2004 09:40:21 +0000 (09:40 +0000)]
Minor correction in help text
This handling for --help works too, and is less wordy

20 years agoArrays are always defined. We should check its length instead.
acli [Tue, 10 Feb 2004 09:36:44 +0000 (09:36 +0000)]
Arrays are always defined. We should check its length instead.

20 years agoSync to en template
acli [Tue, 10 Feb 2004 08:36:13 +0000 (08:36 +0000)]
Sync to en template

20 years agoSync to en, not yet translated
acli [Tue, 10 Feb 2004 08:22:24 +0000 (08:22 +0000)]
Sync to en, not yet translated

20 years agoThis is more consistent
acli [Tue, 10 Feb 2004 08:02:25 +0000 (08:02 +0000)]
This is more consistent

20 years agoNew file from en
acli [Tue, 10 Feb 2004 07:54:36 +0000 (07:54 +0000)]
New file from en

20 years agoSGML syntax correction
acli [Tue, 10 Feb 2004 07:54:16 +0000 (07:54 +0000)]
SGML syntax correction

20 years ago$script_name in template causes runtime error. Should be a TMPL_VAR
acli [Tue, 10 Feb 2004 07:38:57 +0000 (07:38 +0000)]
$script_name in template causes runtime error. Should be a TMPL_VAR

20 years agoSync to new en template
acli [Tue, 10 Feb 2004 07:33:35 +0000 (07:33 +0000)]
Sync to new en template

20 years agoSGML syntax corrections
acli [Tue, 10 Feb 2004 07:07:42 +0000 (07:07 +0000)]
SGML syntax corrections

20 years agoMinor updates
acli [Tue, 10 Feb 2004 06:08:35 +0000 (06:08 +0000)]
Minor updates

20 years agoMarkup error
acli [Tue, 10 Feb 2004 05:58:45 +0000 (05:58 +0000)]
Markup error

20 years agoNew "About" templates from en
acli [Tue, 10 Feb 2004 05:56:32 +0000 (05:56 +0000)]
New "About" templates from en
Minor visual improvements to parameters-{top,bottom}.inc

20 years agoThis makes the fonts look more like the English version
acli [Tue, 10 Feb 2004 05:51:58 +0000 (05:51 +0000)]
This makes the fonts look more like the English version

20 years agoPedantic SGML syntax correction
acli [Tue, 10 Feb 2004 04:59:09 +0000 (04:59 +0000)]
Pedantic SGML syntax correction

20 years agoSpurious attribute in BODY removed
acli [Tue, 10 Feb 2004 04:57:27 +0000 (04:57 +0000)]
Spurious attribute in BODY removed

20 years agoThis wording seems to be more commonly used
acli [Tue, 10 Feb 2004 04:46:12 +0000 (04:46 +0000)]
This wording seems to be more commonly used

20 years agoSync to en (new file)
acli [Tue, 10 Feb 2004 04:40:56 +0000 (04:40 +0000)]
Sync to en (new file)

20 years agoA couple of minor, pedantic SGML syntax corrections
acli [Tue, 10 Feb 2004 03:26:06 +0000 (03:26 +0000)]
A couple of minor, pedantic SGML syntax corrections

20 years agoVarious SGML syntax corrections (needed)
acli [Tue, 10 Feb 2004 03:25:43 +0000 (03:25 +0000)]
Various SGML syntax corrections (needed)
Sync to English template (minor)
Some visual layout corrections

20 years agoThis makes a bit more sense
acli [Tue, 10 Feb 2004 03:19:52 +0000 (03:19 +0000)]
This makes a bit more sense

20 years agoVarious pedantic SGML syntax corrections (e.g., <!----...--> must contain
acli [Tue, 10 Feb 2004 03:13:41 +0000 (03:13 +0000)]
Various pedantic SGML syntax corrections (e.g., <!----...--> must contain
a multiple of 4 hyphens)

Inserted some blank rows in admin-home for visual consistency.

20 years agoMinor improvements
acli [Tue, 10 Feb 2004 03:08:00 +0000 (03:08 +0000)]
Minor improvements

20 years agoSync to en
acli [Tue, 10 Feb 2004 03:01:36 +0000 (03:01 +0000)]
Sync to en

20 years agoChanged DTD declaration so that Mozilla will use standards mode for this.
acli [Tue, 10 Feb 2004 03:00:59 +0000 (03:00 +0000)]
Changed DTD declaration so that Mozilla will use standards mode for this.

20 years agoUse more standard translation for "About"
acli [Tue, 10 Feb 2004 03:00:50 +0000 (03:00 +0000)]
Use more standard translation for "About"

20 years agoChanged DTD declaration so that Mozilla will use standards mode for this.
acli [Tue, 10 Feb 2004 03:00:37 +0000 (03:00 +0000)]
Changed DTD declaration so that Mozilla will use standards mode for this.
Use more standard translation for "About"
Minor updates

20 years agoSync to en/include/common-style.css
acli [Tue, 10 Feb 2004 02:55:01 +0000 (02:55 +0000)]
Sync to en/include/common-style.css

20 years agoWe can't use A.home, A.about, etc. for Chinese, otherwise the padding will
acli [Tue, 10 Feb 2004 02:53:09 +0000 (02:53 +0000)]
We can't use A.home, A.about, etc. for Chinese, otherwise the padding will
cause the links to become very ugly; this is better. (It is probably better
for other translations as well...)

20 years agoSpelling mistake
acli [Tue, 10 Feb 2004 00:58:49 +0000 (00:58 +0000)]
Spelling mistake

20 years agoThis allows the user to type zh_TW and still get Chinese from the zh-TW
acli [Tue, 10 Feb 2004 00:43:21 +0000 (00:43 +0000)]
This allows the user to type zh_TW and still get Chinese from the zh-TW
directory.

20 years agoMinor spelling correction.
acli [Mon, 9 Feb 2004 23:34:08 +0000 (23:34 +0000)]
Minor spelling correction.
Don't proceed if the user specified an unknown option.

20 years agoFix of bug 711, "No message named WhereisMySQL in Install.pm".
acli [Mon, 9 Feb 2004 22:36:32 +0000 (22:36 +0000)]
Fix of bug 711, "No message named WhereisMySQL in Install.pm".

Added defined() check for
"Use of uninitialized value in -e at Install.pm line 2085, <STDIN> line 32."

20 years agoAdded variables available to template: streetaddress, city, phone, cardnumber. Added...
oleonard [Mon, 26 Jan 2004 19:32:36 +0000 (19:32 +0000)]
Added variables available to template: streetaddress, city, phone, cardnumber.  Added FIXME comments to sections where HTML should be moved to template

20 years agoBug 605 fixed
rangi [Wed, 21 Jan 2004 20:49:54 +0000 (20:49 +0000)]
Bug 605 fixed

20 years agoFix for bug 605, committing here as well as the stable branch
rangi [Thu, 15 Jan 2004 23:33:29 +0000 (23:33 +0000)]
Fix for bug 605, committing here as well as the stable branch

20 years agoChanged to use biblionumber as the key for biblios, rather than ISBN
rangi [Mon, 12 Jan 2004 20:00:09 +0000 (20:00 +0000)]
Changed to use biblionumber as the key for biblios, rather than ISBN
Perhaps should be biblioitemnumber, but seems to work fine

20 years agosync'ing with rel_2_0 (mostly prepare/execute pb, bug #662)
tipaul [Mon, 12 Jan 2004 16:58:20 +0000 (16:58 +0000)]
sync'ing with rel_2_0 (mostly prepare/execute pb, bug #662)

20 years agosynch'ing with rel_2_0
tipaul [Mon, 12 Jan 2004 16:55:48 +0000 (16:55 +0000)]
synch'ing with rel_2_0

20 years agosynch'ing with rel_2_0 version
tipaul [Mon, 12 Jan 2004 16:55:05 +0000 (16:55 +0000)]
synch'ing with rel_2_0 version

20 years agoAdded Pate's Koha rss stuff.
joshferraro [Fri, 9 Jan 2004 20:44:42 +0000 (20:44 +0000)]
Added Pate's Koha rss stuff.