I try use a title argument:
<!--tableofcontents title:Spis Treści;-->
But title of Table of contents is still "Table of Contents" when i replace "ś" by "s", correct title will show. But using special signs like ć, ś, ł etc. are necessary for me.
I try use a title argument:
<!--tableofcontents title:Spis Treści;-->
But title of Table of contents is still "Table of Contents" when i replace "ś" by "s", correct title will show. But using special signs like ć, ś, ł etc. are necessary for me.
Comments
Comment #1
Jean-Philippe Fleury commentedThe problem is the regex used in tableofcontents.module to parse optons:
[A-z0-9 ]+ doesn't match accentuated characters. We could put on the top of the script a setlocale () and then use \w on the regex, but the big problem is what parameters choose for setlocale () (we can't declare a specific language for a script used by lots of people). Is there a kind of lang variable set by Drupal?
Maybe we could use again i18n-ascii.txt to have a list of allowed characters?
Or more simple: [^;]+ and add some other forbidden characters?
Comment #2
AlexisWilke commentedDone in 3.x-dev, Jul 5, 2009.
Of course, the title cannot include a semi-colon...
Thank you,
Alexis Wilke