Bludit v3.9.0

This commit is contained in:
Diego Najar 2019-05-27 21:56:52 +02:00
parent 37396e8dec
commit 49027a3bad
2 changed files with 4 additions and 33 deletions

View File

@ -1,10 +1,10 @@
<?php defined('BLUDIT') or die('Bludit CMS.');
// Bludit version
define('BLUDIT_VERSION', '3.9.0-beta');
define('BLUDIT_CODENAME', 'Github version');
define('BLUDIT_RELEASE_DATE', '2019-05-18');
define('BLUDIT_BUILD', '20190518');
define('BLUDIT_VERSION', '3.9.0');
define('BLUDIT_CODENAME', 'Porter');
define('BLUDIT_RELEASE_DATE', '2019-05-27');
define('BLUDIT_BUILD', '20190527');
// Debug mode
// Change to FALSE, for prevent warning or errors on browser

View File

@ -1,29 +0,0 @@
<?php
$string = file_get_contents("bl-languages/en.json");
$english = json_decode($string, true);
$files = glob('bl-languages/*.{json}', GLOB_BRACE);
foreach ($files as $file) {
$out = $file;
$string = file_get_contents($out);
$spanish = json_decode($string, true);
$tmp = array();
$tmp['language-data'] = $spanish['language-data'];
$tmp['dates'] = $spanish['dates'];
if (isset($spanish['special-chars'])) {
$tmp['special-chars'] = $spanish['special-chars'];
}
foreach ($english as $key=>$value) {
if (isset($spanish[$key])) {
$tmp[$key] = $spanish[$key];
} else {
$tmp[$key] = $value;
}
}
$json = json_encode($tmp, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
file_put_contents($out, $json);
}