Proof of concept language database database

Change-Id: I5d6b9ff4ce46c8e2d48bf56ab08f093287672467
This commit is contained in:
Niklas Laxström
2012-06-22 09:53:12 +00:00
committed by Santhosh Thottingal
parent 2fd23fe2e0
commit 16d2b1c33d
7 changed files with 1495 additions and 8 deletions

8
data/yaml2json.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
include __DIR__ . '/spyc.php';
$data = file_get_contents( 'langdb.yaml' );
$parsed = spyc_load( $data );
$json = json_encode( $parsed );
$js = "window.langdb = $json;";
file_put_contents( 'langdb.js', $js );