LucasWerkmeister added a comment.

  > 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.
  
  Sure, not a problem.
  
  > 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.
  
  I looked a bit at the PHP code, and maybe we don’t need custom code for this 
tool at all? Apparently the `JsonFFS` employs a class called `ArrayFlattener`, 
which has the ability to parse CLDR plural syntax in both directions; if 
translatewiki.net exports this parsed CLDR syntax into the JSON file, I can 
probably turn that JSON back into Python-style messages on my end. We would 
need a corresponding option to parse the `{{GENDER:}}` magic word into a 
structured form as well, but that might be useful for other tools too?
  
  > A specification of some sort for the syntax would be a good starting point.
  
  The formatters have some documentation in formatters.py 
<https://github.com/lucaswerkmeister/tool-lexeme-forms/blob/e5725705d1d0a568b15e53bbc858b47beacfadfb/formatters.py>;
 apart from that, the messages are plain text – there has been no need for any 
kind of markup (wikitext, markdown, …) so far.

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

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

To: LucasWerkmeister
Cc: Nikerabbit, Nikki, LucasWerkmeister, Amire80, Devnull, Nintendofan885, 
Akuckartz, abi_, Sms2sms, Nandana, skpuneethumar, Zylc, 1978Gage2001, Lahi, 
Operator873, Gq86, Bsandipan, 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