Translation on Wikimedia LGBT/2024-09-08

edit

I'm not quite sure what was wrong with the translation variables on Wikimedia LGBT/2024-09-08, but I have reverted your changes and manually double-checked them, so that there are no hard-coded URLs in Spanish and all the variables are coming through correctly.

Given I specifically checked before renaming the variables from $1 to something more meaningful in each case, I'm not sure what the problem had been, but I'm sure we both have better things to do that look through all the translation units' history to check it in detail 😅

In any case, thank you for trying to fix things! — OwenBlacker (Talk; he/him) 14:20, 7 September 2024 (UTC)Reply

It is strongly discouraged to use words as translation variables as they might cause confusion to new users who are translating content and it's a pain to fix them if they go unnoticed for a long time. Please revert it back, thanks. --Min☠︎rax«¦talk¦» 14:25, 7 September 2024 (UTC)Reply
I have never heard that before; where is it strongly discouraged, please?
The MediaWiki documentation (row "Numbers") uses a named (rather than numbered) variable, as does mw:Content translation/Documentation/Comparison with the Translate extension and Meta:Internationalization guidelines recommends using named variables in some circumstances:

if tvar is inside a sentence, it should have an explicit name to allow translators to understand what it contains and so write it easily in the right place in their translation

and 2 of the 3 "good syntax" examples use named variables.
I'm sorry, but I disagree with you here. The page is about a meeting of the WMLGBT+ User Group which is probably not gonna be read much after the next few days and it's pretty likely to only translators are gonna be UG members who saw that I posted it to our Telegram group, along with a link to File:WMLGBT+ guide to translation markup.pdf, which also uses named variables as examples, so they should not be too unfamiliar. I think "strongly discouraged" is a big of an overstatement and the risk of it being a problem in this specific case is very low — OwenBlacker (Talk; he/him) 20:52, 7 September 2024 (UTC)Reply
The variables you used are unnecessary as the content before and after the pipe (|) is the same.
  1. WMLGBT -> LGBT+ User Group
  2. ZoneStamp -> Find your local time here
  3. Zoom -> Zoom meeting
  4. UCoC -> Universal Code of Conduct
  5. TS -> Trust & Safety
  6. Signpost -> coverage in Signpost
  7. MetaElection -> a tad special but content already made known prior at "WMF board trustees election".
See Meta:Internationalization_guidelines#Links, what you linked is meant for variables that are inside a sentence, and is usually not a wikilink. --Min☠︎rax«¦talk¦» 03:41, 8 September 2024 (UTC)Reply
And this is the reason why numbers are used instead. Special:Diff/27421117/27420910. --Min☠︎rax«¦talk¦» 03:44, 8 September 2024 (UTC)Reply
I don't understand what you mean by The variables you used are unnecessary as the content before and after the pipe is the same. Equally, what you linked is meant for variables that are inside a sentence, and is usually not a wikilink is, to some extent, your interpretation. Usually not a wikilink is not codified anywhere and meant for variables that are inside a sentence does not preclude their use elsewhere.
And, to be honest, if editors don't understand variables such that they translate the variable name, such as in the Kannada-language example you linked, the solution is definitely not to hard-code the link instead, but rather to make it clearer to translators what variables are. This is already a subset of editors who are willing to be more familiar with a different editing interface. This is a UXD problem, not a coding problem.
I don't think we're likely to agree here, I'm afraid. — OwenBlacker (Talk; he/him) 08:23, 9 September 2024 (UTC)Reply

Wikidata weekly summary #644

edit