Template talk:TranslateThis

From OpenStreetMap Wiki
Jump to navigation Jump to search

Missing language names, redlinked categories

@Wynndale: This template has recently started putting 205 categories and 2,915 other pages in Category:Pages unavailable in. It isn't {{Languages}}, because unavailablePageCategoryNames in Module:Languages/config lists the categories the module can add the page to and none of them omit the language name. Special:Diff/1840209/1909148 looks like it could've caused this issue. The tooltip similarly omits the language name. I think the issue is that {{Languagename}} falls back to the current page's language, whereas the #language: parser function does not. – Minh Nguyễn 💬 01:23, 14 October 2019 (UTC)

Ouch! It does seem that my attempt to reduce bloat here was too eager.--Andrew (talk) 19:00, 14 October 2019 (UTC)
I think the missing piece is {{Langcode}}, which {{Languagename}} falls back to. Bringing it back might cede some of the performance gain you were hoping to get by using #language: though. – Minh Nguyễn 💬 19:54, 14 October 2019 (UTC)