User talk:Minorax

Archives
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18 · 19 · 20 · 21 · 22 · 23 · 24 · 25
26 · 27 · 28 · 29 · 30 · 31 · 32 · 33 · 34 · 35 · 36 · 37 · 38 · 39 · 40 · 41 · 42 · 43 · 44 · 45 · 46 · 47 · 48 · 49 · 50

Re-using translation units?

Hi Minorax, I just made an update to WMDE Technical Wishes/Sub-referencing, updating the examples (we no longer need to use screenshots). I followed mw:Help:Cite and made the examples on our project page translatable. But now I'm wondering if following Help:Cite was a good idea? Marking the page for translation would lead to lots of identical translation units (e.g. all of the instances of "Wikitext" and "Result"). Do you think I should add {{Tunit}} in those cases? I'm not entirely sure how common this template is, I don't think it's mentioned in the translation documentation. Johannes Richter (WMDE) (talk) 16:57, 15 June 2026 (UTC)

Yes, I think you should use {{Tunit}} to remove the need to translate the same content multiple times. On how to use the template, you can refer to {{Tunit/doc}} --Min☠︎rax«¦talk¦» 12:46, 16 June 2026 (UTC)
Thanks! Is it possible that translation units in <translate nowrap> can't be re-used with {{Tunit}}? I've used {{Tunit |268 |According to scientists, the Sun is pretty big.}} many times in WMDE Technical Wishes/Sub-referencing, re-using the translation of <translate nowrap><!--T:268--> According to scientists, the Sun is pretty big.</translate> but WMDE Technical Wishes/Sub-referencing/de#wikitext still shows the English text (except for the one translation).
Reusing units like <translate><!--T:266--> Wikitext</translate> via {{Tunit|266|Wikitext}} achieved the desired result. Johannes Richter (WMDE) (talk) 17:22, 16 June 2026 (UTC)
Unrelated issue: WMDE Technical Wishes/Sub-referencing/de#FAQ shows a span id despite the text being up-to-date, do you know how to fix this? Let me know if I should rather ask this as Meta:Babel, I primarily approached you because I noticed how often you're fixing some details on our project page (and lots of other translatable pages on Meta) Johannes Richter (WMDE) (talk) 17:27, 16 June 2026 (UTC)
Ahh removing white spaces fixed the tunit issue . We should probably update the examples in Template:Tunit/doc unless I encountered an edge case. Johannes Richter (WMDE) (talk) 17:42, 16 June 2026 (UTC)