Template talk:Translated tag

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{lcfirst:{{BASEPAGENAME}}}}[edit]

Hello. The lcfirst here look strange sometime, maybe its better to remove it. Example on Template:PD-Polishsymbol/fr where we can see « pD-Polishsymbol ». ~ bayo or talk 08:29, 8 July 2008 (UTC)[reply]

You are completely right, I removed it. --Mormegil (talk) 14:58, 8 July 2008 (UTC)[reply]
Oops, didn't think about that. :) Rocket000 (talk) 18:14, 8 July 2008 (UTC)[reply]

Please add class[edit]

Please add to the first div here class="translatedTag" . thanks, ערן (talk) 14:26, 12 September 2009 (UTC)[reply]

✓ Done Rocket000 (talk) 17:21, 12 September 2009 (UTC)[reply]

English message should be displayed only when no translation is defined[edit]

{{editprotected}}

Otherwise it ends up being displayed twice - <div> with the English message should be put in the else part of the #if looking up the translation.  « Saper // @talk »  19:35, 27 September 2010 (UTC)[reply]

Can you show me where it's displayed twice? The reason English is always shown is because it's designed with non-logged-in users in mind (since they're probably the ones that need this message the most). It's not autotranslated. The translation shown is based on the template itself. Rocket000 (talk) 23:53, 27 September 2010 (UTC)[reply]
No response. Not done. Rocket000 (talk) 00:52, 23 October 2010 (UTC)[reply]

Translating the note[edit]

Is it possible to translate the "NOTE: Please do not use this template directly! ..." message? It would be useful. – BáthoryPéter (talk) 09:47, 23 November 2010 (UTC)[reply]

It already is autotranslated. --Mormegil (talk) 10:35, 23 November 2010 (UTC)[reply]

Really :) Maybe it was a cache bug. – BáthoryPéter (talk) 13:21, 23 November 2010 (UTC)[reply]

Edit request[edit]

{{Edit protected}} Category:Marker templates -> Category:Internationalised documentation templates. Rd232 (talk) 17:02, 15 June 2011 (UTC)[reply]

✓ Done − note that categories are transcluded from the documentation subpage, which is not protected. Jean-Fred (talk) 18:06, 15 June 2011 (UTC)[reply]

Edit request : Solving a linter identified coding glitch...[edit]

{{Edit protected}}

<div>{{lang|en|'''''NOTE:'' Please do ''not'' use this template directly! This is just for translation.<!--

should read

<div>{{lang|en|'''''NOTE:'' Please do ''not'' use this template directly! This is just for translation.'''<!--

ShakespeareFan00 (talk) 11:13, 8 January 2021 (UTC)[reply]

@ShakespeareFan00: Done, although not exactly the proposed way—the tag was normally closed, it was unclosed only outside of the template namespace. —Tacsipacsi (talk) 00:57, 10 January 2021 (UTC)[reply]

Edit request: autotranslate with the Translate Extension[edit]

{{Edit request}}

I want replace code:

{{#ifexist:Template:Translated tag/{{{lang|{{SUBPAGENAME}}}}}<!-- check if we have a translation -->
| {{Translated tag/{{{lang|{{SUBPAGENAME}}}}}|{{{template|{{#ifexist:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{#titleparts:{{PAGENAME}}|1}}}}}}}}}
}}
<div>{{lang|en|'''''NOTE:'' Please do ''not'' use this template directly! This is just for translation.<!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:10}}<!-- leave this part out on non-template pages because it won't make sense -->
   |  Use {{tl|{{{template|{{#ifexist:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{#titleparts:{{PAGENAME}}|1}}}}}}}}} instead!
   }}'''<!--
-->}}</div>

to the

<b>{{ {{TNTN| Translated tag/i18n|uselang={{int:lang}} }}|template = {{{template|{{#ifexist:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{#titleparts:{{PAGENAME}}|1}}}}}}}}}</b>

Before this, all existed translations will be moved into subpages of {{Translated tag/i18n}} and migrated to Translate extension. ✓ Done

  • Proposed result: warning message for users will be seen always in their user interface language (if translation is exist), instead to defining language by subpage name
  • Benefits:
    • unified manageable code for all subpages;
    • more clear and transparent workflow for appending new languages
    • further more easy unification and exchange translations with the other multilanguage wikis

Needs approving for start migration. See testcase in the {{Translated tag/Sandbox}} (works for the English and Deutche uI language). --Kaganer (talk) 17:56, 3 February 2022 (UTC)[reply]

Working AntiCompositeNumber (talk) 15:56, 14 February 2022 (UTC)[reply]
@Kaganer: ✓ Done Pages moved, marked for translation, imported, and main template updated. Please test and make sure everything is working as intended. --AntiCompositeNumber (talk) 17:45, 14 February 2022 (UTC)[reply]
@AntiCompositeNumber look good! Very thanks! I thought that I myself would have to do the migration. You could easily have left that part to me (but I'm happy I didn't ;) --Kaganer (talk) 18:33, 14 February 2022 (UTC)[reply]