]> git.koha-community.org Git - koha.git/log
koha.git
20 years ago"Title" problem fixed in English templates
acli [Mon, 23 Feb 2004 21:39:21 +0000 (21:39 +0000)]
"Title" problem fixed in English templates

20 years agoUse "Salutation" instead of "Title" for personal titles, for the benefit
acli [Mon, 23 Feb 2004 21:38:38 +0000 (21:38 +0000)]
Use "Salutation" instead of "Title" for personal titles, for the benefit
of translations.

20 years agoRemoving NPL-specific links
oleonard [Mon, 23 Feb 2004 21:32:49 +0000 (21:32 +0000)]
Removing NPL-specific links

20 years agoComment syntax fix to keep the translation tool quiet
acli [Mon, 23 Feb 2004 21:21:37 +0000 (21:21 +0000)]
Comment syntax fix to keep the translation tool quiet

20 years ago-v option (undocumented) for more verbose output
acli [Mon, 23 Feb 2004 20:04:33 +0000 (20:04 +0000)]
-v option (undocumented) for more verbose output

20 years agoFixed bug in "create" action reported by Benedict
acli [Mon, 23 Feb 2004 20:04:04 +0000 (20:04 +0000)]
Fixed bug in "create" action reported by Benedict

20 years agoBit a bit lenient on whether a file name has been set
acli [Mon, 23 Feb 2004 19:56:47 +0000 (19:56 +0000)]
Bit a bit lenient on whether a file name has been set

20 years agoConsistency fix
acli [Mon, 23 Feb 2004 19:18:54 +0000 (19:18 +0000)]
Consistency fix

20 years agoFixed a bug which caused </script> to be not recognized as a tag
acli [Mon, 23 Feb 2004 18:49:56 +0000 (18:49 +0000)]
Fixed a bug which caused </script> to be not recognized as a tag

20 years agoSpelling mistake
acli [Mon, 23 Feb 2004 09:27:16 +0000 (09:27 +0000)]
Spelling mistake

20 years agoOops, "Title" is untranslatable. Need to fix the English templates some time
acli [Mon, 23 Feb 2004 06:48:26 +0000 (06:48 +0000)]
Oops, "Title" is untranslatable. Need to fix the English templates some time

20 years agoUpdate including correction
acli [Mon, 23 Feb 2004 06:38:51 +0000 (06:38 +0000)]
Update including correction

20 years agoFrom the old translation
acli [Mon, 23 Feb 2004 06:28:12 +0000 (06:28 +0000)]
From the old translation

20 years agoMinor update
acli [Mon, 23 Feb 2004 06:11:53 +0000 (06:11 +0000)]
Minor update

20 years ago"Polish" should be capitalized
acli [Mon, 23 Feb 2004 06:11:44 +0000 (06:11 +0000)]
"Polish" should be capitalized

20 years agoMissed this one. This need to have the meta tag too.
acli [Mon, 23 Feb 2004 06:08:25 +0000 (06:08 +0000)]
Missed this one. This need to have the meta tag too.

20 years agoInterim update
acli [Mon, 23 Feb 2004 06:05:56 +0000 (06:05 +0000)]
Interim update

20 years agoInterim update
acli [Mon, 23 Feb 2004 05:56:19 +0000 (05:56 +0000)]
Interim update

20 years agoMore bugs that prevented some strings from being translated properly.
acli [Mon, 23 Feb 2004 05:51:30 +0000 (05:51 +0000)]
More bugs that prevented some strings from being translated properly.
This time it's a trimming bug.

20 years agoThis looks much better if the screen is smallish.
acli [Mon, 23 Feb 2004 05:07:10 +0000 (05:07 +0000)]
This looks much better if the screen is smallish.

20 years agoOff-by-one bug
acli [Mon, 23 Feb 2004 04:36:56 +0000 (04:36 +0000)]
Off-by-one bug

20 years agoMinor dialect correction
acli [Mon, 23 Feb 2004 04:29:28 +0000 (04:29 +0000)]
Minor dialect correction

20 years agoBug that prevented msgid's with French characters from being translated
acli [Mon, 23 Feb 2004 04:26:04 +0000 (04:26 +0000)]
Bug that prevented msgid's with French characters from being translated
should now be really fixed.

20 years agoCharset "translation" line
acli [Mon, 23 Feb 2004 04:19:24 +0000 (04:19 +0000)]
Charset "translation" line

20 years agoMissing charset declarations. Needed for translations generated by the
acli [Mon, 23 Feb 2004 04:18:51 +0000 (04:18 +0000)]
Missing charset declarations. Needed for translations generated by the
translation tools.

20 years agoOops, forgot to take out some debugging print statements
acli [Mon, 23 Feb 2004 04:02:06 +0000 (04:02 +0000)]
Oops, forgot to take out some debugging print statements

20 years agoMore interim updates
acli [Mon, 23 Feb 2004 04:00:38 +0000 (04:00 +0000)]
More interim updates

20 years agoComment syntax correction
acli [Mon, 23 Feb 2004 03:18:29 +0000 (03:18 +0000)]
Comment syntax correction

20 years agoInterim update
acli [Mon, 23 Feb 2004 03:15:01 +0000 (03:15 +0000)]
Interim update

20 years ago"maxlenght" should be "maxlength"
acli [Mon, 23 Feb 2004 03:13:35 +0000 (03:13 +0000)]
"maxlenght" should be "maxlength"

20 years agoFold all consecutive whitespaces into single blanks. This avoids problems
acli [Mon, 23 Feb 2004 01:21:03 +0000 (01:21 +0000)]
Fold all consecutive whitespaces into single blanks. This avoids problems
when minor whitespace changes occur in the original templates; it also
makes the strings much easier to read (e.g., instead of "foo\n\n\t\t  bar",
xgettext.pl will now always generate "foo bar" and tmpl_process3.pl will
understand it to be the same as the original string).

20 years agoPreliminary support for "analysis" of strings with <a> tags.
acli [Sun, 22 Feb 2004 21:34:40 +0000 (21:34 +0000)]
Preliminary support for "analysis" of strings with <a> tags.

Early termination of analysis if we encounter some strings, such as </h1>
or | or ||, in order to avoid extracting strings that are unnecessarily
long and which doesn't add any meaningful context.

20 years agoTry to relax the criteria for allowing groups of tokens without TMPL_VAR
acli [Sun, 22 Feb 2004 09:04:53 +0000 (09:04 +0000)]
Try to relax the criteria for allowing groups of tokens without TMPL_VAR
to be combined together into one string. This seems to have the desired
effect (that "<b>foo</b> bar" type strings are now recognized in one piece).

However, "<h1>foo</h1>\nexplanation"-type things may now also be (arguably
wrongly) recognized as one piece.

20 years agoGrammatical correction
acli [Sun, 22 Feb 2004 08:49:31 +0000 (08:49 +0000)]
Grammatical correction

20 years agoThe French character handling fix for tmpl_process3 was not checked in
acli [Sun, 22 Feb 2004 08:18:27 +0000 (08:18 +0000)]
The French character handling fix for tmpl_process3 was not checked in
for some reason.

Try to remove trailing ( in strings too.

20 years agoUgly hack to get rid of the close tag in pathetic "foo %s</h1>"-like strings
acli [Sun, 22 Feb 2004 07:00:16 +0000 (07:00 +0000)]
Ugly hack to get rid of the close tag in pathetic "foo %s</h1>"-like strings

20 years agoTemplates with French characters were not handled properly in the install
acli [Sun, 22 Feb 2004 06:46:15 +0000 (06:46 +0000)]
Templates with French characters were not handled properly in the install
step. This is now fixed.

20 years agoSome French letters were ?
acli [Sun, 22 Feb 2004 06:04:05 +0000 (06:04 +0000)]
Some French letters were ?

20 years agoHandle the iso8859-1 charset somewhat, so that when the po file is in
acli [Sun, 22 Feb 2004 05:18:52 +0000 (05:18 +0000)]
Handle the iso8859-1 charset somewhat, so that when the po file is in
either iso8859-1 or utf8, msgmerge(1) won't crap out. The code is ugly;
the conversion table is hard-coded, and in some place not very appropriate.

However, this does fix the case where a few strings containing French
characters can't be translated. As a side effect, tmpl_process3 can now
also be used for French or other languages using iso8859-1.

20 years agoTranslation by way of ./tmpl_process & text_extract2.pl script
kb2qzv [Sat, 21 Feb 2004 13:07:55 +0000 (13:07 +0000)]
Translation by way of ./tmpl_process & text_extract2.pl script

20 years agobugfix (wrong synch with rel_2_0)
tipaul [Fri, 20 Feb 2004 10:34:59 +0000 (10:34 +0000)]
bugfix (wrong synch with rel_2_0)

20 years agoUpdates
acli [Fri, 20 Feb 2004 09:32:14 +0000 (09:32 +0000)]
Updates

20 years agoFixed bug where a <textarea...>#cdata</textarea> on one line won't be
acli [Fri, 20 Feb 2004 07:52:32 +0000 (07:52 +0000)]
Fixed bug where a <textarea...>#cdata</textarea> on one line won't be
scanned properly.

20 years agoMinor updates
acli [Fri, 20 Feb 2004 07:25:38 +0000 (07:25 +0000)]
Minor updates

20 years agoMinor update (after changing TmplTokenizer.pm)
acli [Fri, 20 Feb 2004 07:13:21 +0000 (07:13 +0000)]
Minor update (after changing TmplTokenizer.pm)

20 years agoPartially allow combination of several TEXT tokens. It seems that this
acli [Fri, 20 Feb 2004 07:09:47 +0000 (07:09 +0000)]
Partially allow combination of several TEXT tokens. It seems that this
gives better strings. (Always allowing combinations gives havoc, we
currently avoid this by allowing combination only if the first and last
tokens are both TEXT.)

20 years agoUpdates
acli [Fri, 20 Feb 2004 07:04:10 +0000 (07:04 +0000)]
Updates

20 years agoMinor capitalization correction
acli [Fri, 20 Feb 2004 06:16:28 +0000 (06:16 +0000)]
Minor capitalization correction

20 years agoPreliminary checkin
acli [Fri, 20 Feb 2004 04:38:36 +0000 (04:38 +0000)]
Preliminary checkin

20 years agoSupport %0.0s notation so that we can omit the %s as in Year%s for the
acli [Fri, 20 Feb 2004 04:38:02 +0000 (04:38 +0000)]
Support %0.0s notation so that we can omit the %s as in Year%s for the
Chinese translation. (This won't work for all languages; ultimately the
English templates must be fixed.)

20 years agoA few spelling and markup corrections
acli [Fri, 20 Feb 2004 03:01:21 +0000 (03:01 +0000)]
A few spelling and markup corrections
(Probably a bit unnecessary adding quotes in issues-top.inc)

20 years agoMake the translation tool happier.
acli [Fri, 20 Feb 2004 02:49:21 +0000 (02:49 +0000)]
Make the translation tool happier.

20 years agoTry to not display like 40-line warnings too often
acli [Fri, 20 Feb 2004 02:48:39 +0000 (02:48 +0000)]
Try to not display like 40-line warnings too often

20 years agoEscape ISO8859-1 characters. msgmerge still hates these strings, but at
acli [Fri, 20 Feb 2004 00:39:26 +0000 (00:39 +0000)]
Escape ISO8859-1 characters. msgmerge still hates these strings, but at
least the po file merges.

20 years agoForgot to check for fuzzy-ness.
acli [Thu, 19 Feb 2004 21:28:14 +0000 (21:28 +0000)]
Forgot to check for fuzzy-ness.

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]