From 8801ed0637f4518cdd74046ec114c0acf1356057 Mon Sep 17 00:00:00 2001 From: dignajar Date: Fri, 3 Jul 2015 17:44:26 -0300 Subject: [PATCH] Languages support --- admin/themes/default/index.php | 5 +- admin/views/add-user.php | 24 ++--- admin/views/dashboard.php | 8 +- admin/views/edit-page.php | 90 +++++++++---------- admin/views/edit-post.php | 50 +++++------ admin/views/manage-pages.php | 2 +- admin/views/manage-posts.php | 2 +- admin/views/new-page.php | 70 +++++++-------- admin/views/new-post.php | 46 +++++----- admin/views/plugins.php | 4 +- admin/views/settings.php | 22 +++-- admin/views/users.php | 2 +- features.txt | 35 +++----- kernel/abstract/dbjson.class.php | 6 ++ kernel/abstract/plugin.class.php | 56 +++++++++--- kernel/boot/admin.php | 2 +- kernel/boot/rules/70.build_pages.php | 6 -- kernel/boot/rules/70.build_posts.php | 6 -- .../rules/{60.plugins.php => 80.plugins.php} | 26 +++++- kernel/boot/site.php | 2 +- kernel/dblanguage.class.php | 7 ++ kernel/helpers/sanitize.class.php | 17 ++-- languages/en_US.json | 42 ++++++++- languages/es_ES.json | 6 +- plugins/opengaph/language/en_US.json | 13 +++ plugins/opengaph/plugin.php | 11 ++- 26 files changed, 338 insertions(+), 222 deletions(-) rename kernel/boot/rules/{60.plugins.php => 80.plugins.php} (72%) create mode 100644 plugins/opengaph/language/en_US.json diff --git a/admin/themes/default/index.php b/admin/themes/default/index.php index e198814b..599112e7 100644 --- a/admin/themes/default/index.php +++ b/admin/themes/default/index.php @@ -43,8 +43,8 @@ $(document).ready(function() { @@ -57,6 +57,7 @@ $(document).ready(function() { \ No newline at end of file + diff --git a/admin/views/edit-page.php b/admin/views/edit-page.php index aceed016..6a2a1537 100644 --- a/admin/views/edit-page.php +++ b/admin/views/edit-page.php @@ -1,43 +1,43 @@ -

Edit page

+

p('Edit page') ?>

- + advancedOptions()) { - echo '
'; + echo '
'; } else { - echo '

Enable more features at Settings->Advanced->Writting Settings

'; - echo '