id summary reporter owner description type status priority component severity resolution keywords cc release 4225 "Improve handling of ""extension-less"" pages" izzy Shun-ichi Goto "It would be nice to have the handling of ""extension-less"" pages (i.e. ""Default-pages"") improved. At the moment, a wiki page without language prefix is just listed as ""default"". My suggestions depend on the page type - and an additional entry for the `trac.ini` to either use the current way - or the improved way as described here: '''user_pages''': Instead of ""default"", `wiki.default_lang` should be used (if set - otherwise stay with the current behavior). '''system_pages''': Here we usually don't have language-specific versions, but all of these pages are using the same language. Since this language is not necessarily be identical with the `default_lang`, but still may differ (e.g. if a localized version of Trac is used), the ""language"" part could simply be omitted. To be more safe (especially for the system_pages), the before mentioned `trac.ini` entry could be duplicated: one for the user_pages, one for the system_pages. Examples for the values could be: ""default"" (literally), ""system"" (use the default_lang defined in the `wiki` section), or a 2-char language code - where the latter makes not too much sense, since it would be identical to default_lang in 99% of all cases I can think of, so ""default"" and ""system"" should be sufficient. {{{ [wiki-negotiator] system_pages_default_lang = none # no language part to display; alternative: system|default user_pages_default_lang = system # use wiki.default_lang; alternative: default }}} If `system_pages_default_lang` is set to `none`, and a system page with language variant is encountered (who knows?), simply fall back to the current behaviour ''for that page only''. The value `system` is to be preferred over a explicitly given language code, since this avoids double declaration (and a probable cause for mistakes)." enhancement new normal TracWikiNegotiatorPlugin normal 0.10