Template talk:langrev

From Wiktionary, the free dictionary
Jump to navigation Jump to search

RFDO discussion: December 2013–September 2017

[edit]

The following discussion has been moved from Wiktionary:Requests for deletion/Others (permalink).

This discussion is no longer live and is left here as an archive. Please do not modify this conversation, but feel free to discuss its conclusions.


Template:langrev and subtemplates

A leftover from the pre-Lua days. I'm surprised that this is even still around. —CodeCat 19:33, 15 March 2016 (UTC)Reply

This has unfortunately, predictably fallen out of date, but it is still a crucial component of Conrad's very widely used translation-adding aid. (As a test, I just tried to add a translation into "Foraba" (listed as an alt name of ppo and nothing else in the module) and Conrad's script couldn't handle it, but when I created Template:langrev/Foraba, it could.) Either that tool should be switched to use Module:languages (pulling canonical names and unique non-canonical names), or we should have a bot periodically update Template:langrev with fresh data from the modules. Keep unless the former happens. - -sche (discuss) 20:01, 15 March 2016 (UTC)Reply
Delete. --Dixtosa (talk) 15:46, 20 March 2016 (UTC)Reply
Obviously delete as soon as it's possible to do so (but not while still being used, also obviously). Renard Migrant (talk) 15:50, 20 March 2016 (UTC)Reply

This has been long enough now, calling this RFD failed. —CodeCat 23:13, 23 April 2017 (UTC)Reply

Deleting everything in Category:langrev subtemplates will have to be done by bot (via an admin account). @DTLHS maybe? —Μετάknowledgediscuss/deeds 02:59, 24 April 2017 (UTC)Reply

Note that the translations adder depends on this, and the module wouldn't work as a replacement.

—Yair rand 21:30, 8 December 2013 (UTC), Template:langrev discussion
--Giorgi Eufshi (talk) 07:59, 24 April 2017 (UTC)Reply
@Giorgi Eufshi, but unless I'm missing something (which I may well be), that's no longer the case. —Μετάknowledgediscuss/deeds 16:40, 24 April 2017 (UTC)Reply
You can find Template:langrev string in the TranslationAdder--Dixtosa (talk) 16:51, 24 April 2017 (UTC)Reply
Well, someone fix it then. —CodeCat 17:36, 24 April 2017 (UTC)Reply
On the second thought I do not think the function that uses langrev templates (langAutoFill) is actually used. Has autocomplete ever been used somehow?--Giorgi Eufshi (talk) 06:57, 21 July 2017 (UTC)Reply
My understanding is that it's used by the translation-adder gadget: if you start typing in a canonical or alternative name of a lect, it autocompletes (type "Wemba We" and it autocompletes to "Wemba Wemba"), and then looks up the langrev subtemplate to see what code the name is associated with, and then plugs in that code. (Has that changed, i.e. is something else generating that effect now?) This is useful, because it means people can add translations based on names, without memorizing ISO/Wiktionary codes, although the templates are not as up-to-date as the language modules. They could, of course, be regenerated from the modules! But if the translation-adder could just look up canonical and unique alternative names in the module, that would be most useful. - -sche (discuss) 08:43, 21 July 2017 (UTC)Reply
Can't we just convert {{langrev}} to use the modules to provide the same functionality? That way we can delete all the subtemplates and still maintain backwards compatibility in all of our legacy stuff. It's not used directly in entries, so we don't need to worry about editors being confused. Chuck Entz (talk) 14:40, 21 July 2017 (UTC)Reply
That template has already been deleted, it wasn't used anywhere. The issue at hand is that some JavaScript directly retrieves the subtemplates. —CodeCat 15:24, 21 July 2017 (UTC)Reply
In any case, language objects have a :toJSON() method which can be used to convert the data to a JSON representation. This should be useful for JavaScripts. —CodeCat 15:31, 21 July 2017 (UTC)Reply
Deleted. DTLHS (talk) 02:21, 28 September 2017 (UTC)Reply