We have the TracWikiNegotiatorPlugin installed, which supports serving pages depending on their extension and the users language preference. Now one of the things not conforming to this is the TocMacro. What we would like to see is best explained by examples:
Say we have the Wiki articles Give, Give.en, Some, Example and Example.en - and I am using the TocMacro in Give.en as
[[TOC(Give,Some,Example)]]. It would be nice if the TocMacro now first checks the extension of the current page (.en), and thus includes the other matching pages (if available), and only falls back for those who don't have it. So in this example, it would index Give.en, Some, and Example.en
Same applies especially to things like
[[TOC(example/*]] (which may a bit more difficult to realize, since no page is mentioned explicitly), and of course the other way round (if the page calling TocMacro has no suffix, pages without suffix are to be preferred).
Of course, all these things are only needed to be considered when the TracWikiNegotiatorPlugin is in use.