Commit Graph

18 Commits

Author SHA1 Message Date
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
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