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
Sun, Nov 24, 16:03 (1 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259270
Default Alt Text
D433.id1051.diff (660 B)

Event Timeline