From b3d36f66a44e33b5f1c71bb6ad5cab12960b3d58 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 20 Dec 2017 00:09:47 +0100 Subject: [PATCH] Authors on languages dictionaries, date format on dashboard --- .gitignore | 1 + bl-kernel/admin/views/content.php | 2 +- bl-kernel/admin/views/users.php | 2 +- bl-kernel/boot/variables.php | 3 +++ bl-languages/de_CH.json | 12 +++++++----- bl-languages/de_DE.json | 12 +++++++----- bl-languages/en.json | 12 +++++++----- bl-languages/es.json | 13 ++++++++----- 8 files changed, 35 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 6d8587f9..7a334c25 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ bl-content/* bl-plugins/timemachine bl-plugins/remote-content +bl-plugins/simple-stats bl-kernel/bludit.pro.php bl-themes/docs diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index cb2ddbb3..f5bf8f23 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -56,7 +56,7 @@ function table($status, $icon='arrow-circle-o-down') { .' '; - echo ''.( (ORDER_BY=='date') ? $page->dateRaw() : $page->position() ).''; + echo ''.( (ORDER_BY=='date') ? $page->dateRaw(ADMIN_PANEL_DATE_FORMAT) : $page->position() ).''; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key(); echo ''.$friendlyURL.''; diff --git a/bl-kernel/admin/views/users.php b/bl-kernel/admin/views/users.php index 14bf853b..02666cb9 100644 --- a/bl-kernel/admin/views/users.php +++ b/bl-kernel/admin/views/users.php @@ -30,7 +30,7 @@ foreach ($users as $username=>$User) { echo ''.$User->email().''; echo ''.($User->enabled()?''.$L->g('Enabled').'':$L->g('Disabled')).''; echo ''.($User->role()=='admin'?$L->g('Administrator'):$L->g('Editor')).''; - echo ''.Date::format($User->registered(), DB_DATE_FORMAT, DB_DATE_FORMAT).''; + echo ''.Date::format($User->registered(), DB_DATE_FORMAT, ADMIN_PANEL_DATE_FORMAT).''; echo ''; } diff --git a/bl-kernel/boot/variables.php b/bl-kernel/boot/variables.php index 3876ca03..8f882202 100644 --- a/bl-kernel/boot/variables.php +++ b/bl-kernel/boot/variables.php @@ -68,6 +68,9 @@ define('BACKUP_DATE_FORMAT', 'Y-m-d-H-i-s'); // Sitemap date format define('SITEMAP_DATE_FORMAT', 'Y-m-d'); +// Date format for Manage Content, Manage Users +define('ADMIN_PANEL_DATE_FORMAT', 'D, j M Y, H:i'); + // Date format for Dashboard schedule posts define('SCHEDULED_DATE_FORMAT', 'D, j M Y, H:i'); diff --git a/bl-languages/de_CH.json b/bl-languages/de_CH.json index c0110414..2dc01de4 100644 --- a/bl-languages/de_CH.json +++ b/bl-languages/de_CH.json @@ -3,12 +3,14 @@ "native": "Deutsch (Schweiz)", "english-name": "German", "locale": "de, de_CH", - "last-update": "2017-10-29", - "author": "Clickwork", - "email": "egoetschel@clickwork.ch", - "website": "https:\/\/clickwork.ch" + "last-update": "2017-12-20", + "authors": { + "0": "Clickwork https://clickwork.ch", + "1": "blog2read https://github.com/blog2read", + "2": "" + } }, - "dates": { + "dates": { "Mon": "Mo", "Tue": "Di", "Wed": "Mi", diff --git a/bl-languages/de_DE.json b/bl-languages/de_DE.json index 83953792..de508589 100644 --- a/bl-languages/de_DE.json +++ b/bl-languages/de_DE.json @@ -3,12 +3,14 @@ "native": "Deutsch (Deutschland)", "english-name": "German", "locale": "de, de_DE", - "last-update": "2017-10-29", - "author": "Clickwork", - "email": "egoetschel@clickwork.ch", - "website": "https:\/\/clickwork.ch" + "last-update": "2017-12-20", + "authors": { + "0": "Clickwork https://clickwork.ch", + "1": "blog2read https://github.com/blog2read", + "2": "" + } }, - "dates": { + "dates": { "Mon": "Mo", "Tue": "Di", "Wed": "Mi", diff --git a/bl-languages/en.json b/bl-languages/en.json index 2932eba2..3492e0f2 100644 --- a/bl-languages/en.json +++ b/bl-languages/en.json @@ -3,10 +3,12 @@ "native": "English", "english-name": "English", "locale": "en, en_US, en_AU, en_CA, en_GB, en_IE, en_NZ", - "last-update": "2017-10-14", - "author": "Bludit", - "email": "", - "website": "https://www.bludit.com" + "last-update": "2017-12-20", + "authors": { + "0": "Diego @dignajar", + "1": "Clickwork https://clickwork.ch", + "2": "xm74" + } }, "dates": { "Mon": "Mon", @@ -273,4 +275,4 @@ "congratulations-you-have-successfully-installed-your-bludit": "Congratulations you have successfully installed your **Bludit**.", "this-theme-may-not-be-supported-by-this-version-of-bludit": "This theme may not be supported by this version of Bludit", "read-more": "Read more" -} +} \ No newline at end of file diff --git a/bl-languages/es.json b/bl-languages/es.json index 9813ee2f..4b3058f5 100644 --- a/bl-languages/es.json +++ b/bl-languages/es.json @@ -3,10 +3,12 @@ "native": "Español", "english-name": "Spanish", "locale": "es, es_ES, es_AR, es_MX", - "last-update": "2017-10-14", - "author": "Bludit", - "email": "", - "website": "https://www.bludit.com" + "last-update": "2017-12-20", + "authors": { + "0": "Diego @dignajar", + "1": "", + "2": "" + } }, "dates": { "Mon": "Lun", @@ -271,5 +273,6 @@ "scheduled": "Programado", "this-token-is-similar-to-a-password-it-should-not-be-shared": "Este token es similar a una contraseña, no debe compartirse.", "congratulations-you-have-successfully-installed-your-bludit": "Felicitaciones Usted ha instalado con éxito **Bludit**", - "this-theme-may-not-be-supported-by-this-version-of-bludit": "Este tema puede no ser compatible con esta versión de Bludit" + "this-theme-may-not-be-supported-by-this-version-of-bludit": "Este tema puede no ser compatible con esta versión de Bludit", + "read-more": "Leer más" } \ No newline at end of file