Skip to content

Commit

Permalink
language update
Browse files Browse the repository at this point in the history
  • Loading branch information
mediafoks committed Oct 23, 2024
1 parent 9f2506f commit dccffc1
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 13 deletions.
12 changes: 11 additions & 1 deletion language/en-GB/mod_contacts_birthday.ini
Original file line number Diff line number Diff line change
@@ -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"
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=""
12 changes: 11 additions & 1 deletion language/ru-RU/mod_contacts_birthday.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
MOD_CONTACTS_BIRTHDAY = "Модуль Дней рождения контактов"
MOD_CONTACTS_BIRTHDAY_XML_DESCRIPTION = "Модуль поздравляет с Днем рождения контакты. Установите дату создания контакта, соответствующую Дню рождения"

MOD_CONTACTS_BIRTHDAY_FIELD_CATEGORY_LABEL = "Категория"
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="ют"
6 changes: 3 additions & 3 deletions mod_contacts_birthday.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://github.com/mediafoks</authorUrl>
<version>1.0.1</version>
<version>1.0.2</version>
<description>MOD_CONTACTS_BIRTHDAY_XML_DESCRIPTION</description>
<namespace path="src">Joomla\Module\ContactsBirthday</namespace>
<files>
Expand All @@ -30,12 +30,12 @@
</field>
</fieldset>
<fieldset name="options" label="COM_MODULES_BASIC_FIELDSET_LABEL">
<field name="prepare_content" type="radio" layout="joomla.form.field.radio.switcher" label="MOD_CUSTOM_FIELD_PREPARE_CONTENT_LABEL" description="MOD_CUSTOM_FIELD_PREPARE_CONTENT_DESC" default="0" filter="integer">
<field name="prepare_content" type="radio" layout="joomla.form.field.radio.switcher" label="MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_LABEL" description="MOD_CONTACTS_BIRTHDAY_FIELD_PREPARE_CONTENT_DESC" default="0" filter="integer">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field name="backgroundimage" type="media" schemes="http,https,ftp,ftps,data,file" validate="url" relative="true" label="MOD_CUSTOM_FIELD_BACKGROUNDIMAGE_LABEL" />
<field name="backgroundimage" type="media" schemes="http,https,ftp,ftps,data,file" validate="url" relative="true" label="MOD_CONTACTS_BIRTHDAY_FIELD_BACKGROUNDIMAGE_LABEL" />
</fieldset>

<fieldset name="advanced">
Expand Down
4 changes: 2 additions & 2 deletions services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* The Ks contacts birthday module service provider.
*
* @since 1.0.1
* @since 1.0.2
*/
return new class() implements ServiceProviderInterface
{
Expand All @@ -30,7 +30,7 @@
*
* @return void
*
* @since 1.0.1
* @since 1.0.2
*/
public function register(Container $container)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dispatcher/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Dispatcher class for mod_contacts_birthday
*
* @since 1.0.1
* @since 1.0.2
*/
class Dispatcher extends AbstractModuleDispatcher
{
Expand All @@ -33,7 +33,7 @@ class Dispatcher extends AbstractModuleDispatcher
*
* @return array
*
* @since 1.0.1
* @since 1.0.2
*/
private $moduleExtension;

Expand Down
2 changes: 1 addition & 1 deletion src/Helper/ContactsBirthdayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Helper for mod_contacts_birthday
*
* @since 1.0.1
* @since 1.0.2
*/
class ContactsBirthdayHelper
{
Expand Down
4 changes: 3 additions & 1 deletion tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

//$contacts - массив всех контактов.

$today = date("m-d"); //Текущая дата
Expand All @@ -27,6 +29,6 @@
<svg class="ico" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 256 256">
<path d="M232,112a24,24,0,0,0-24-24H136V79a32.06,32.06,0,0,0,24-31c0-28-26.44-45.91-27.56-46.66a8,8,0,0,0-8.88,0C122.44,2.09,96,20,96,48a32.06,32.06,0,0,0,24,31v9H48a24,24,0,0,0-24,24v23.33a40.84,40.84,0,0,0,8,24.24V200a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V159.57a40.84,40.84,0,0,0,8-24.24ZM112,48c0-13.57,10-24.46,16-29.79,6,5.33,16,16.22,16,29.79a16,16,0,0,1-32,0ZM40,112a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8v23.33c0,13.25-10.46,24.31-23.32,24.66A24,24,0,0,1,168,136a8,8,0,0,0-16,0,24,24,0,0,1-48,0,8,8,0,0,0-16,0,24,24,0,0,1-24.68,24C50.46,159.64,40,148.58,40,135.33Zm160,96H56a8,8,0,0,1-8-8V172.56A38.77,38.77,0,0,0,62.88,176a39.69,39.69,0,0,0,29-11.31A40.36,40.36,0,0,0,96,160a40,40,0,0,0,64,0,40.36,40.36,0,0,0,4.13,4.67A39.67,39.67,0,0,0,192,176c.38,0,.76,0,1.14,0A38.77,38.77,0,0,0,208,172.56V200A8,8,0,0,1,200,208Z"></path>
</svg>
Сегодня <span class="contacts-birthday__name"><?= implode(', ', $arr_contacts_name); ?></span> отмеча<?= count($arr_contacts_name) > 1 ? 'ют' : 'ет'; ?> День рождения
<?= Text::_('MOD_CONTACTS_BIRTHDAY_INTRO_TXT'); ?> <span class="contacts-birthday__name"><?= implode(', ', $arr_contacts_name); ?></span> <?= Text::_('MOD_CONTACTS_BIRTHDAY_SUFFIX_ACTION_TXT'), count($arr_contacts_name) > 1 ? Text::_('MOD_CONTACTS_BIRTHDAY_SUFFIX_PLURAL_TXT') : Text::_('MOD_CONTACTS_BIRTHDAY_SUFFIX_SINGULAR_TXT') . ' ' . Text::_('MOD_CONTACTS_BIRTHDAY_EVENT_TXT'); ?>
</div>
<?php endif; ?>
4 changes: 2 additions & 2 deletions update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<element>mod_contacts_birthday</element>
<type>module</type>
<client>site</client>
<version>1.0.1</version>
<version>1.0.2</version>
<downloads>
<downloadurl type="full" format="zip">https://github.com/mediafoks/mod_contacts_birthday/archive/refs/tags/v1.0.1.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/mediafoks/mod_contacts_birthday/archive/refs/tags/v1.0.2.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
Expand Down

0 comments on commit dccffc1

Please sign in to comment.