From 28e6ae8a31f2f72b9cdfb6ecda883cd58248e89c Mon Sep 17 00:00:00 2001 From: Juliano Maciel Date: Tue, 11 Dec 2018 11:41:52 -0200 Subject: [PATCH] =?UTF-8?q?Corrigir=20grafia=20"1=20peri=C3=B3dicos"=20#58?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/autoload.php | 2 +- application/helpers/pluralize_helper.php | 46 +++++++++++++++++++ application/language/english/scielo_lang.php | 1 + .../portuguese-brazilian/scielo_lang.php | 1 + application/language/spanish/scielo_lang.php | 1 + application/views/partials/collections.php | 8 ++-- .../views/partials/journals-letter-filter.php | 5 +- .../views/partials/journals-search-form.php | 3 ++ 8 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 application/helpers/pluralize_helper.php diff --git a/application/config/autoload.php b/application/config/autoload.php index 6deb420..e83be03 100644 --- a/application/config/autoload.php +++ b/application/config/autoload.php @@ -89,7 +89,7 @@ | | $autoload['helper'] = array('url', 'file'); */ -$autoload['helper'] = array('cookie', 'url', 'assets', 'text', 'twitter', 'language', 'pagination', 'phpmailer'); +$autoload['helper'] = array('cookie', 'url', 'assets', 'text', 'twitter', 'language', 'pagination', 'phpmailer', 'pluralize'); /* | ------------------------------------------------------------------- diff --git a/application/helpers/pluralize_helper.php b/application/helpers/pluralize_helper.php new file mode 100644 index 0000000..3cd0ed1 --- /dev/null +++ b/application/helpers/pluralize_helper.php @@ -0,0 +1,46 @@ +

name[$lang_index] ?>

- journal_count['current'] ?> document_count ?> + journal_count['current'] ?> journal_count['current'], lang('journals_singular'), lang('journals')) ?> • document_count ?>
@@ -38,7 +38,7 @@

name[$lang_index] ?>

- journal_count['current'] ?> document_count ?> + journal_count['current'] ?> journal_count['current'], lang('journals_singular'), lang('journals')) ?> • document_count ?>
@@ -56,7 +56,7 @@

name[$lang_index] ?>

- journal_count['deceased'] ?> document_count ?> + journal_count['deceased'] ?> journal_count['deceased'], lang('journals_singular'), lang('journals')) ?> • document_count ?>
@@ -88,7 +88,7 @@

name[$lang_index] ?>

- journal_count['current'] ?> document_count ?> + journal_count['current'] ?> journal_count['current'], lang('journals_singular'), lang('journals')) ?> • document_count ?>
diff --git a/application/views/partials/journals-letter-filter.php b/application/views/partials/journals-letter-filter.php index 79a1fe7..9f836f7 100644 --- a/application/views/partials/journals-letter-filter.php +++ b/application/views/partials/journals-letter-filter.php @@ -1,3 +1,6 @@ +
-
\ No newline at end of file + diff --git a/application/views/partials/journals-search-form.php b/application/views/partials/journals-search-form.php index 69b1be9..041fc42 100644 --- a/application/views/partials/journals-search-form.php +++ b/application/views/partials/journals-search-form.php @@ -1,3 +1,6 @@ +