Commit graph

29 commits

Author SHA1 Message Date
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
tjhunt
ccc161f8f0 filters: MDL-7336 change weblib to use the new code
* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib
2009-04-13 06:56:32 +00:00
dongsheng
9e3f34d1c7 "FILTER/MDL-14582, filters 2.0, compatible with old filters" 2008-12-19 02:16:00 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
skodak
af2fc69db2 (MDL-10155) detect failed regexes duing multilang upgrade (it was causing data loss on some sites) 2007-06-19 17:24:33 +00:00
skodak
244691e250 MDL-8955 Multilang filter doesn't accept different attribute order; merged from MOODLE_18_STABLE 2007-03-20 17:14:18 +00:00
skodak
bbb5ac9ae6 MDL-7901 allow empty spans in multilang block 2006-12-12 12:27:59 +00:00
skodak
f16242ce61 MDL-7887 Multilang upgrade to new tags in Moodle 1.8 2006-12-12 10:39:17 +00:00
moodler
3bac4f9fce FIxed docs 2006-09-15 08:23:40 +00:00
skodak
9fecfdfb83 Bug #6245 - rewritten multilang filter 2006-08-14 07:46:03 +00:00
stronk7
c67303bd97 Soled bug 6089 plus some minor iteration savings...
(http://moodle.org/bugs/bug.php?op=show&bugid=6089)

Merged from MOODLE_16_STABLE
2006-07-15 08:39:50 +00:00
thepurpleblob
0fade9ed01 Merged from STABLE 2006-07-06 14:01:52 +00:00
stronk7
c738a0920f Nobody is now calling get_string_from_file(). And the multilang filter supports
utf8 langs too

Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 15:46:01 +00:00
stronk7
5510ae0f27 Some typos solved. :-|
Merged from MOODLE_15_STABLE
2005-11-16 23:05:09 +00:00
stronk7
1f6d63e8d1 Updated a bit to explain how the multilang filter works.
Merged from MOODLE_15_STABLE
2005-11-16 19:51:37 +00:00
moodler
a630afdc57 Merged multilang fix from stable again 2005-07-12 17:10:33 +00:00
moodler
563fa6199d Merged "8" fixed fix 2005-07-12 15:10:47 +00:00
moodler
2b573acb6f Merged utf8 fix from stable 2005-07-12 12:27:55 +00:00
defacer
fde4a0941b New extended multilang filter!
Now does lang replacement for each "langblock" (many lang-enabled tags
bunched together with only whitespace between), allowing:

  * Multiple langblocks per filtered text
  * Non-lang-translated content before, after, and between langblocks

This should be solving bugs 2878 and 2879. Buy one, get one free.
2005-05-19 17:32:30 +00:00
stronk7
2086597256 Now we support both uppercase and lowercase lang tags, and the separator
can be both the hypen and the underscore characters.
Everything is converted to Moodle's (lowercase with hypen) langs.

And the filter returns the full text if some exception happens (bad build
lang tags). Actually it was returning an empty string on error.

Should we be a stricter allowing only the correct langs????
2005-04-28 16:33:15 +00:00
stronk7
87cf01aef5 Now multilang filter supports both the
<lang lang="XX> and the <span lang="XX"> syntaxes. Bug 3057.
(http://moodle.org/bugs/bug.php?op=show&bugid=3057)
2005-04-27 22:17:44 +00:00
stronk7
71c235bca4 New release of the multilang filter:
- 100% compatible with previous "Multilang" filter.
    - Supports a new "short" syntax to make things easier. Simply use:
        <lang lang="XX">
    - It needs less resources and executes faster.
    - It Allows any type of content to be used. No restrictions at all!

Merged from MOODLE_14_STABLE
2004-11-07 17:11:57 +00:00
moodler
6d9b3de4e0 Auto-detection of type, apparently. 2004-09-13 08:21:46 +00:00
moodler
b797605898 Merged XML UTF-8 fixed from stable (see bug 1927) 2004-09-13 08:17:09 +00:00
moodler
df1c46115b Improvement to filters, providing speed boost AND better compatibility
with Turck MMCache.

Filter function must now have a particular name

   eg resource_filter

where "resource" is the name of the directory that filter.php is in.
2004-08-08 06:57:44 +00:00
moodler
4da85078e9 Changed the name of all filters to be consistent.
Removed texh filter
2004-02-17 05:22:26 +00:00
moodler
eea2335afe Multi-lang filter can flag a text as not being cacheable 2004-02-10 10:01:42 +00:00
moodler
c9b7e81ac0 Make sure XML is enabled 2004-01-20 10:03:34 +00:00
moodler
e318d18df2 Working code by Gaëtan Frenoy to allow texts to contain multiple languages!
See:  http://moodle.org/mod/forum/discuss.php?d=2760
2004-01-20 08:56:38 +00:00