Nikerabbit added a comment.

  Thanks for the very detailed request. A few quick comments and questions:
  
  > Is it possible to make translatewiki.net translate the MediaWiki syntax to 
the Python syntax on export?
  
  Both parsing the files and doing structural transformations for message 
contents (and keys) is done by our file format support classes, and they are 
accompanied by appropriate insertables and validators.
  
  - https://www.mediawiki.org/wiki/Help:Extension:Translate/Validators
  - https://www.mediawiki.org/wiki/Help:Extension:Translate/Insertables
  - https://www.mediawiki.org/wiki/Help:Extension:Translate/File_format_support 
(very, very outdated)
  
  The question here is rather who is going to write that code (in PHP) and 
maintain it, and how complex it is, and is the format unique to this project or 
is it reusable for others as well. A specification of some sort for the syntax 
would be a good starting point.
  
  ----
  
  > If not, is it acceptable to require translators to write the Python syntax 
directly when translating?
  
  It looks rather complicated, and slightly different from all the other 
formats. This increases the changes that translators will make mistakes, though 
validators may help.
  
  ----
  
  I see translations are currently here: 
https://github.com/lucaswerkmeister/tool-lexeme-forms/blob/main/translations.py.
 Would it be possible to have them in one per language? Also something like 
JSON would be easier to parse.
  
  ----
  
  > I think it would make sense to limit translations into new languages on 
translatewiki.net
  
  We can set the list of allowed languages in the message group configuration. 
The question would be how to keep it up to date. Would you be willing to submit 
patches to add languages?

TASK DETAIL
  https://phabricator.wikimedia.org/T272243

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Nikerabbit
Cc: Nikerabbit, Nikki, LucasWerkmeister, Amire80, Devnull, Nintendofan885, 
Akuckartz, abi_, Sms2sms, Nandana, skpuneethumar, Zylc, 1978Gage2001, Lahi, 
Operator873, Gq86, GoranSMilovanovic, DSquirrelGM, Jayprakash12345, 
Chicocvenancio, JakeTheDeveloper, Devin-Henrickson, Mahir256, QZanden, Tbscho, 
LawExplorer, JJMC89, _jensen, rosalieper, Bodhisattwa, shinjiman, Scott_WUaS, 
Wikidata-bugs, Jitrixis, aude, Gryllida, jayvdb, Nemo_bis, scfc, Mbch331, Rxy, 
Jay8g, Krenair
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to