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)

edit link behaviour

The current programming takes the user directly to the editor mode of the linked page (when clicking on the help translate icon). I would consider it an improvement if the user was first just shown the page before directly starting editing. This would give them the opportunity to get an overview first and read the notes in the doc, if there are any. What do you mean? --Chris2map (talk) 18:54, 9 January 2023 (UTC)

But on pages like https://wiki.openstreetmap.org/w/index.php?title=Ko:Tag:highway%3Delevator&oldid=2669976 gives a link to the same page, which isn't helpful. maro21 19:16, 25 February 2024 (UTC)
Thank you for reveal this! I wasn't aware of direct uses of the template on content pages. Because I haven't found a solution to recognize and distinguish these cases in the code, I switched back to previous edit link behaviour, that is to open editor when following the link. As workaround I added parameter "link" which works as a link without directly open the editor view. --Chris2map (talk) 20:29, 25 February 2024 (UTC)