[moin-user] ListPages macro doesn't work

Lars Kruse lists at sumpfralle.de
Sun Sep 3 16:09:11 EDT 2017


Hello,


Am Sun, 03 Sep 2017 20:24:57 +0200
schrieb Volker Wysk <post at volker-wysk.de>:

> ## The locale used by some modules like mod_dav
> export LANG=C
> ## Uncomment the following line to use the system default locale instead:
> #. /etc/default/locale
> 
> I've done as suggested, and uncommented the fourth line, but with no effect
> on the ListPages macro.

I could imagine that the following pieces are missing for this approach:
1) add "import locale" somewhere (probably at the top of the macro)
2) use "locale.strcoll" instead of "str.lower" or "unicode.lower" as 
   the "key" argument to "sort"

I gues, this is not the "proper" way, since it uses the locale of the 
server and not the one of the client. But it probably helps in a 
single-locale environment.

Cheers,
Lars


More information about the moin-user mailing list