Page MenuHomeDevCentral

D433.id1051.diff
No OneTemporary

D433.id1051.diff

Index: tools/spreadsheet2json
===================================================================
--- /dev/null
+++ tools/spreadsheet2json
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+
+import json
+import sys
+import os.path
+
+if len(sys.argv) < 2:
+ print("Usage: spreadsheet2json <some-copy-paste-of-a-spreadsheet.dat>")
+ sys.exit(1)
+
+source = sys.argv[1]
+if not os.path.exists(source):
+ print("File not found:", source)
+ sys.exit(2)
+
+with open(source, "r") as file:
+ translations = {}
+ for line in file:
+ record = line.rstrip().split('\t')
+ translations[record[0]] = record[1]
+ print(json.dumps(translations, indent=4))

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 16:12 (5 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312770
Default Alt Text
D433.id1051.diff (660 B)

Event Timeline