Softcatala / translation-memory-tools

A set of tools to build, maintain and use translation memories

Home Page:https://www.softcatala.org/recursos/memories/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add draw.io

pereorga opened this issue · comments

The opensource tool draw.io uses a Google Spreadsheet for translations. A valid PO file can be easily converted though:

curl "https://docs.google.com/spreadsheets/d/1FoYdyEraEQuWofzbYCDPKN7EdKgS_2ZrsDrOA8scgwQ/export?exportFormat=csv" > draw1.csv
csvcut draw1.csv -c 1,2,8 > draw2.csv
csv2po draw2.csv drawio.po

csvcut is available in csvkit (pip3 install csvkit)

Let me know if you want me to generate and host the PO file instead (e.g., if you prefer not to add the csvkit dependency, or this very specific logic)

Closing for #136