From dccffc1880769cb25aafd0c903fceaac5ac7a301 Mon Sep 17 00:00:00 2001 From: mediafoks Date: Wed, 23 Oct 2024 10:47:40 +0300 Subject: [PATCH] language update --- language/en-GB/mod_contacts_birthday.ini | 12 +++++++++++- language/ru-RU/mod_contacts_birthday.ini | 12 +++++++++++- mod_contacts_birthday.xml | 6 +++--- services/provider.php | 4 ++-- src/Dispatcher/Dispatcher.php | 4 ++-- src/Helper/ContactsBirthdayHelper.php | 2 +- tmpl/default.php | 4 +++- update.xml | 4 ++-- 8 files changed, 35 insertions(+), 13 deletions(-) diff --git a/language/en-GB/mod_contacts_birthday.ini b/language/en-GB/mod_contacts_birthday.ini index a34e96b..362aab6 100644 --- a/language/en-GB/mod_contacts_birthday.ini +++ b/language/en-GB/mod_contacts_birthday.ini @@ -1,4 +1,14 @@ MOD_CONTACTS_BIRTHDAY = "Contacts Birthday module" MOD_CONTACTS_BIRTHDAY_XML_DESCRIPTION = "Module wishes happy birthday contacts. Set the contact creation date to match the birthday." -MOD_CONTACTS_BIRTHDAY_FIELD_CATEGORY_LABEL = "Category" \ No newline at end of file +MOD_CONTACTS_BIRTHDAY_FIELD_CATEGORY_LABEL = "Category" + +MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_LABEL="Prepare Content" +MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_DESC="Optionally prepare the content with the Joomla Content Plugins" +MOD_CONTACTS_BIRTHDAY_FIELD_BACKGROUNDIMAGE_LABEL="Select a Background Image" + +MOD_CONTACTS_BIRTHDAY_EVENT_TXT="birthday" +MOD_CONTACTS_BIRTHDAY_INTRO_TXT="Today" +MOD_CONTACTS_BIRTHDAY_SUFFIX_ACTION_TXT="celebrate" +MOD_CONTACTS_BIRTHDAY_SUFFIX_SINGULAR_TXT="s" +MOD_CONTACTS_BIRTHDAY_SUFFIX_PLURAL_TXT="" \ No newline at end of file diff --git a/language/ru-RU/mod_contacts_birthday.ini b/language/ru-RU/mod_contacts_birthday.ini index f0af055..d2266da 100644 --- a/language/ru-RU/mod_contacts_birthday.ini +++ b/language/ru-RU/mod_contacts_birthday.ini @@ -1,4 +1,14 @@ MOD_CONTACTS_BIRTHDAY = "Модуль Дней рождения контактов" MOD_CONTACTS_BIRTHDAY_XML_DESCRIPTION = "Модуль поздравляет с Днем рождения контакты. Установите дату создания контакта, соответствующую Дню рождения" -MOD_CONTACTS_BIRTHDAY_FIELD_CATEGORY_LABEL = "Категория" \ No newline at end of file +MOD_CONTACTS_BIRTHDAY_FIELD_CATEGORY_LABEL = "Категория" + +MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_LABEL="Обработка событиями" +MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_DESC="Включить или отключить функцию обработки содержимого модуля событиями плагина (onContentPrepare)" +MOD_CONTACTS_BIRTHDAY_FIELD_BACKGROUNDIMAGE_LABEL="Фоновое изображение" + +MOD_CONTACTS_BIRTHDAY_EVENT_TXT="День рождения" +MOD_CONTACTS_BIRTHDAY_INTRO_TXT="Сегодня" +MOD_CONTACTS_BIRTHDAY_SUFFIX_ACTION_TXT="отмеча" +MOD_CONTACTS_BIRTHDAY_SUFFIX_SINGULAR_TXT="ет" +MOD_CONTACTS_BIRTHDAY_SUFFIX_PLURAL_TXT="ют" \ No newline at end of file diff --git a/mod_contacts_birthday.xml b/mod_contacts_birthday.xml index 7661e33..22efa37 100644 --- a/mod_contacts_birthday.xml +++ b/mod_contacts_birthday.xml @@ -7,7 +7,7 @@ GNU General Public License version 2 or later; see LICENSE.txt mediafoks@google.com https://github.com/mediafoks - 1.0.1 + 1.0.2 MOD_CONTACTS_BIRTHDAY_XML_DESCRIPTION Joomla\Module\ContactsBirthday @@ -30,12 +30,12 @@
- + - +
diff --git a/services/provider.php b/services/provider.php index ee360ca..d3f2d6c 100644 --- a/services/provider.php +++ b/services/provider.php @@ -19,7 +19,7 @@ /** * The Ks contacts birthday module service provider. * - * @since 1.0.1 + * @since 1.0.2 */ return new class() implements ServiceProviderInterface { @@ -30,7 +30,7 @@ * * @return void * - * @since 1.0.1 + * @since 1.0.2 */ public function register(Container $container) { diff --git a/src/Dispatcher/Dispatcher.php b/src/Dispatcher/Dispatcher.php index 1543b6b..4aeee41 100644 --- a/src/Dispatcher/Dispatcher.php +++ b/src/Dispatcher/Dispatcher.php @@ -24,7 +24,7 @@ /** * Dispatcher class for mod_contacts_birthday * - * @since 1.0.1 + * @since 1.0.2 */ class Dispatcher extends AbstractModuleDispatcher { @@ -33,7 +33,7 @@ class Dispatcher extends AbstractModuleDispatcher * * @return array * - * @since 1.0.1 + * @since 1.0.2 */ private $moduleExtension; diff --git a/src/Helper/ContactsBirthdayHelper.php b/src/Helper/ContactsBirthdayHelper.php index 70270a4..dd64c08 100644 --- a/src/Helper/ContactsBirthdayHelper.php +++ b/src/Helper/ContactsBirthdayHelper.php @@ -19,7 +19,7 @@ /** * Helper for mod_contacts_birthday * - * @since 1.0.1 + * @since 1.0.2 */ class ContactsBirthdayHelper { diff --git a/tmpl/default.php b/tmpl/default.php index e599603..2415fa2 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -10,6 +10,8 @@ defined('_JEXEC') or die; +use Joomla\CMS\Language\Text; + //$contacts - массив всех контактов. $today = date("m-d"); //Текущая дата @@ -27,6 +29,6 @@ - Сегодня отмеча 1 ? 'ют' : 'ет'; ?> День рождения + 1 ? Text::_('MOD_CONTACTS_BIRTHDAY_SUFFIX_PLURAL_TXT') : Text::_('MOD_CONTACTS_BIRTHDAY_SUFFIX_SINGULAR_TXT') . ' ' . Text::_('MOD_CONTACTS_BIRTHDAY_EVENT_TXT'); ?> \ No newline at end of file diff --git a/update.xml b/update.xml index c4ce183..75eb0b1 100644 --- a/update.xml +++ b/update.xml @@ -5,9 +5,9 @@ mod_contacts_birthday module site - 1.0.1 + 1.0.2 - https://github.com/mediafoks/mod_contacts_birthday/archive/refs/tags/v1.0.1.zip + https://github.com/mediafoks/mod_contacts_birthday/archive/refs/tags/v1.0.2.zip stable