29 Commits

Author SHA1 Message Date
Petr Skoda
bf69b06d1b MDL-22050 removing moodle/langconfig duplicates
AMOS BEGIN
  MOV [locale,core],[locale,core_langconfig]
  MOV [localewin,core],[localewin,core_langconfig]
  MOV [localewincharset,core],[localewincharset,core_langconfig]
  MOV [oldcharset,core],[oldcharset,core_langconfig]
AMOS END
2010-04-10 17:54:39 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
samhemelryk
668564e5b2 lib MDL-19236 Corrected copyright's 2009-05-27 01:56:31 +00:00
samhemelryk
72fb21b65b lib MDL-19236 Added boilerplates and copyrights 2009-05-26 05:18:52 +00:00
skodak
3b09331066 MDL-17458 rewritten installer 2009-02-07 10:20:33 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
martinlanghoff
015e19287b Revert "textlib: Don't require_once() class.t3lib_div.php which we never use"
Turns out class.t3lib_cs.php depends on class.t3lib_div.php. Will drop
the two commits before we go into HEAD.

This reverts commit 5768bf6fb4dfa334dc81a80d26111904c4d13abd.
2007-09-19 07:49:49 +00:00
martinlanghoff
0c13a90844 textlib: Don't require_once() class.t3lib_div.php which we never use
The largest of the 2 typo3 libs we ship in Moodle is never used. So
don't even parse it.

This takes Moodle's "default homepage" from 1.8MB to 1.6MB of PHP.
Tiny, but every bit helps...
2007-09-19 07:46:54 +00:00
skodak
8e1ec6be58 MDL-11298 use textlib_get_instance() instead of new textlib() 2007-09-16 18:49:41 +00:00
skodak
e8515774c3 MDL-11048 adding new method to textlib strtotitle() - please note that is may not be usable in all locales, it might also produce different results when mbstring available 2007-09-16 11:45:30 +00:00
moodler
db48c57c3c Merged fix for MDL-10254, thanks Valery! 2007-06-26 09:09:39 +00:00
stronk7
4e2cb0e3f3 Added entities_to_utf8() function to textlib, suitable to convert
any entity (numerical and html) to utf-8, providing a PHP4 and PH5
way to do the work.
Also, added the code2utf8() function to convert Unicode code numbers
to UTF-8 chars.

Merged from MOODLE_18_STABLE
2007-06-13 19:43:56 +00:00
toyomoyo
4d40aa144a grade import temporary buffer tables and encoding/import form changes 2007-06-05 09:28:15 +00:00
skodak
77b4d4be49 MDL-9075 utf-8 bom is now stripped from uploaded users cvs file; merged from MOODLE_18_STABLE 2007-04-10 15:32:37 +00:00
skodak
531468274f MDL-5229 and MDL-6196 adding gb18030 mime header encoding; merged from MOODLE_18_STABLE 2007-03-12 08:41:28 +00:00
skodak
684663f526 MDL-6196 infinite loop in header encoding when using some site charsets (gb18030); merged from MOODLE_18_STABLE 2007-03-08 00:05:58 +00:00
stronk7
e4023a4c20 Normalizing encoding by using textlib synonyms - parse_charset()
Credit goes to Petr.

Merged from MOODLE_18_STABLE
2007-03-05 18:28:33 +00:00
martinlanghoff
e7812e9c62 lib/textlib.class: Cache dir is now created correctly, allowing speed increase (SR# 595)
Previous logic had dir created only when mbstring wasn't used, but the
typo3 lib needs to cache some data regardless, for the specCharsToASCII
function, which uses internal translation tables.


Author: Luke Hudson <luke@catalyst.net.nz>
2006-10-31 05:03:54 +00:00
skodak
9c1cd39de5 Bug #5937 - Fix nonascii chars in graphs:
* text is converted to unicode - no html entities anymore
 * then all nonascii chars are converted to decimal number entites
 * default.ttf is searched in dataroot/lang and local language packs too
 * removed lang_decode() - obsoleded by proper entity converison above
 * updated documentation in lang/en_utf8/fonts/README.txt

merged from MOODLE_16_STABLE
2006-06-29 21:22:16 +00:00
stronk7
c539d6224b Now encode_mimeheader() only encodes the header if it isn't 100% ASCII. 2006-03-19 02:38:21 +00:00
stronk7
3ec5ec15bc Function encode_mimeheader() added. Finally, it seems that we have to
use our own function because phpmailer one doesn't handle multi-byte
characters, breaking them.
2006-03-19 01:09:15 +00:00
skodak
4352f048f5 workaround for some more uninitialized offset warnings 2006-03-12 20:06:12 +00:00
stronk7
e05fc498ea Avoid some minor notices and warnings (reported as bug 2814 to Typo3 team)
(http://bugs.typo3.org/view.php?id=2814)
2006-03-09 17:29:58 +00:00
skodak
1ccc4867c5 comment improvement 2006-03-06 21:17:10 +00:00
skodak
46b8113012 optional unicode characters and better conversion to ascii in function clean_file(); fixed textlib setup code; unicode related cleanup in config-dist.php
I am going to review the usage of clean_filename() now
2006-03-04 11:35:08 +00:00
stronk7
dee5beecd7 If both mbstring and iconv are not present, use recode
as last resort to perform charset conversions before using
internal libraries.
2006-01-07 17:15:47 +00:00
moodler
6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00
stronk7
b8a84ae782 Methods aren't static due to the Typo3 structure. 2005-10-22 16:16:39 +00:00
stronk7
779dc9aca1 Initial commit of Typo3 charset libraries and Moodle's textlib.class code.
Merged from MOODLE_15_STABLE
2005-10-17 15:48:46 +00:00