Template talk:Needtrans

Latest comment: 22 days ago by Largoplazo in topic Incomplete merger from Template:Duflu

Request NOT to deleteEdit

The suggestion of the speedy deletion of Template:Needtrans is bewildering. The rationale is that it's a duplicate of Template:Translation and that the template is note being used. The nominator is very much mistaken on both counts. The other template in question does not even resemble Template:Needtrans and besides, the template is used extensively on Pages needing translation into English. Deleting this template would seriously disrupt the translation being done there.--Esprit15d • talkcontribs 13:18, 9 April 2008 (UTC)Reply[reply]

The Needtrans template is mentioned but not used as a template on Pages needing translation into English. There are no article talk pages that link to link to Template:Needtrans. A google search for the template language "The language of this article is." generates no hits. None of these show any actual use of this template. It is not clear why deleting this template would disrupt the translation being done there since it does not seem that anyone has actually used this template. GregManninLB (talk) 13:45, 9 April 2008 (UTC)Reply[reply]
Esprit15d - I removed the speedy delete template and added template documentation to clarify things. Keep up the good work. GregManninLB (talk) 14:38, 9 April 2008 (UTC)Reply[reply]

Add optional parameter for article or sectionEdit

Since {{Not English}} allows an optional parameter to specify whether the article or a section needs to be translated, could {{Needtrans}} have a comparable option, so that when users add {{Needtrans}} to Wikipedia:Pages needing translation into English it would be obvious whether an entire article or only a section needs to be translated? GoingBatty (talk) 04:21, 3 November 2010 (UTC)Reply[reply]


We often have cases of text in a non-Latin script without accompanying transliteration, to make the text comprehensible and pronounceable.
Do we have such a template right now?
Varlaam (talk) 01:42, 12 December 2012 (UTC)Reply[reply]

Wrong wording for articles needing translationEdit

When this template is being used for articles needing translation, the entries now read "The initial language was ..." rather than the appropriate "The language of the article is ..." that used to apepar there. Largoplazo (talk) 01:20, 2 February 2021 (UTC)Reply[reply]

@Bradv: is this something you could help with?--Jac16888 Talk 16:32, 3 February 2021 (UTC)Reply[reply]

Upgrade for robust handling of language paramEdit

The template is now upgraded to handle erroneous user input in param |language=, where the user mistakenly enters an ISO lang code like es instead of a name like Spanish. The template now translates the code into the name. (I checked for short language names of 2-3 letters at List of language names and came up with four, but none are ISO codes for languages and we don't have Wikipedias for them, so fortuitous matches are not a problem, nor are they likely to be in the future.) Note that we don't bother checking str len for 2- or 3-letter codes before attempting the translation to a name, because it isn't necessary; the tradeoff is clearer wikicode vs undetectably longer execution while the #language module searches the code table in vain for a match for 'Spanish'.

About the documentation: even though |language= is explained in the /doc, the mixup users may have occasionally between ISO code vs language name is understandable, and to avoid causing even greater confusion, imho this robustness capacity is best left out of the /doc as a hidden feature. The doc says to use fully spelled out language name, and that's what they should do. (Had it been designed that way in the beginning, we'd need one less parameter, but for backwards compatibility, I don't think we should try to merge the params now.) Mathglot (talk) 21:42, 16 February 2021 (UTC)Reply[reply]

Incomplete merger from Template:DufluEdit

The merge of this template from Template:Duflu in Special:Diff/991449905 appears to be incomplete. This template doesn't support the language of {{duflu}} which was "The language of the article is XXX". Further details can be seen at https://github.com/wikimedia-gadgets/twinkle/issues/1365. Cc Bradv. – SD0001 (talk) 12:07, 19 April 2021 (UTC)Reply[reply]

Please see WT:PNT#Proposal to undo merger of Duflu and Needtrans. Thanks, Mathglot (talk) 19:47, 25 July 2021 (UTC)Reply[reply]
The other way around--that was the language of Needtrans, and it needs to be restored to that. Duflu needs to be restored to its own status as a full template with the "was" language. I've just set the wheels in motion to have Twinkle re-establish the distinction between them. Largoplazo (talk) 20:47, 4 March 2023 (UTC)Reply[reply]