Miguel Da Silva - Centro de Matemática escribió:
> Miguel Da Silva - Centro de Matemática escribió:
>> Dear users, I migrated the job's wiki las week. It is a Debian system 
>> and it was running Moinmoin 1.3.x. Now, it's running 1.5.8 Moin's version.
>>
>> But we have a problem. :(
>>
>> If I set language_default = 'es' at its config file, the 
>> [[TableOfContents]] don't work properly. I mean, the title of the table 
>> of contents shows HTML code. It do not happen when I set this variable 
>> to another thing (en, pt, fr).
>>
>> Suggestions?!
>>
>> Greetings.
> 
> An example of the problem I'm facing is this:
> 
> http://haslo.latertulia.org/AyudaSobreConfiguraci%C3%B3n
> 
> Below "Contenidos" there is a table of contents generated by 
> [[TableOfContents]] macro and one can see the HTML code it shows. It is 
> the very same problem I have.
> 
> In my case, if I use another language, the tables of contents appears fine.
> 
> Keep in my that it's not my wiki, but the example is good as well.
> 
> Greetings.

I think it's quite solved... looking around and checking Moinmoin code I 
found the following line at TableOfContents.py:

self.result.append(self.macro.formatter.escapedText(_('Contents')))

I've changed this to:

self.result.append(self.macro.formatter.escapedText(('Contents')))

And know the world Contents appear at the top of the table of contents. 
It's better than HTML code.

Suggestions?!

Greetings.
-- 
Miguel Da Silva
Administrador de Red
Centro de Matemática - http://www.cmat.edu.uy
Facultad de Ciencias - http://www.fcien.edu.uy
Universidad de la República - http://www.rau.edu.uy

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to