From 6e003f051e06c27bfd4eab7b3aaa55dc660c2a38 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 3 Sep 2017 23:29:09 +0200 Subject: [PATCH] Modifications on Language system, improve locales --- bl-kernel/abstract/dbjson.class.php | 2 +- bl-kernel/admin/views/dashboard.php | 16 ++- bl-kernel/admin/views/developers.php | 4 + bl-kernel/admin/views/edit-page.php | 4 +- bl-kernel/admin/views/new-page.php | 4 +- bl-kernel/admin/views/settings-advanced.php | 2 +- bl-kernel/admin/views/settings-regional.php | 6 +- bl-kernel/boot/init.php | 4 +- bl-kernel/dblanguage.class.php | 69 +++++---- bl-kernel/dbsite.class.php | 24 ++-- bl-kernel/functions.php | 11 ++ bl-languages/en.json | 151 ++++++++++++++++++++ bl-plugins/version/plugin.php | 12 +- bl-themes/docs/init.php | 1 + bl-themes/docs/php/page.php | 2 +- 15 files changed, 248 insertions(+), 64 deletions(-) create mode 100644 bl-languages/en.json diff --git a/bl-kernel/abstract/dbjson.class.php b/bl-kernel/abstract/dbjson.class.php index adce8948..55a269a5 100644 --- a/bl-kernel/abstract/dbjson.class.php +++ b/bl-kernel/abstract/dbjson.class.php @@ -33,7 +33,7 @@ class dbJSON $array = $this->unserialize($implode); if(empty($array)) { - Log::set(__METHOD__.LOG_SEP.'Invalid JSON file: '.$file.', cannot be decoded. Check the file content.'); + //Log::set(__METHOD__.LOG_SEP.'Invalid JSON file: '.$file.', cannot be decoded. Check the file content.'); } else { $this->db = $array; diff --git a/bl-kernel/admin/views/dashboard.php b/bl-kernel/admin/views/dashboard.php index 7c160bca..37821e42 100644 --- a/bl-kernel/admin/views/dashboard.php +++ b/bl-kernel/admin/views/dashboard.php @@ -10,7 +10,7 @@

p('Manage content') ?>

-

p('Edit or delete pages from your site') ?>

+

p('Edit or delete content from your site') ?>

@@ -19,7 +19,7 @@

p('New category') ?>

-

p('Create a new category to organize your pages') ?>

+

p('Create a new category to organize your content') ?>

@@ -65,6 +65,17 @@

p('Notifications') ?>