Skip to content

Commit

Permalink
Merge pull request #29 from lovata/develop
Browse files Browse the repository at this point in the history
Release version 1.8.0
  • Loading branch information
kharanenka authored Mar 14, 2018
2 parents d88234d + b888839 commit 420833b
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 13 deletions.
2 changes: 1 addition & 1 deletion classes/component/ElementPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Class ElementPage
* @package Lovata\Toolbox\Classes\Component
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
abstract class ElementPage extends ComponentBase
{
Expand Down
2 changes: 1 addition & 1 deletion classes/component/SortingElementList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Class SortingElementList
* @package Lovata\Toolbox\Classes\Component
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
abstract class SortingElementList extends ComponentBase
{
Expand Down
2 changes: 1 addition & 1 deletion classes/storage/AbstractUserStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function addToList($sKey, $sValue)
//Get value from storage
$arValueList = $this->getList($sKey);

$arValueList[] = $sValue;
array_unshift($arValueList, $sValue);
$arValueList = array_unique($arValueList);

$this->put($sKey, $arValueList);
Expand Down
2 changes: 1 addition & 1 deletion classes/storage/UserStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getList($sKey)
}

if (!empty($arDefaultStorageValue)) {
$arValueList = array_merge($arValueList, $arDefaultStorageValue);
$arValueList = array_merge($arDefaultStorageValue, $arValueList);
$arValueList = array_unique($arValueList);

$this->put($sKey, $arValueList);
Expand Down
2 changes: 1 addition & 1 deletion components/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class Pagination
* @package Lovata\Toolbox\Components
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
class Pagination extends ComponentBase
{
Expand Down
125 changes: 125 additions & 0 deletions lang/fr/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?php return [
'plugin' => [
'name' => 'Toolbox',
'description' => "Toolbox est un ensemble d'helpers pour un développement plus rapide avec OctoberCMS.",
],
'field' => [
'id' => 'ID',
'name' => 'Nom',
'title' => 'Titre',
'active' => 'Actif',
'code' => 'Code',
'slug' => 'URL',
'external_id' => 'ID Externe',
'preview_text' => 'Prévisualiser le texte',
'preview_image' => "Prévisualiser l'image",
'image' => 'Image',
'images' => 'Images (galerie)',
'description' => 'Description',
'category' => 'Catégorie',
'email' => 'Email',
'phone' => 'Téléphone',
'moderation' => 'Modération',
'status' => 'Statut',
'city' => 'Ville',
'address' => 'Adresse',
'street' => 'Rue',
'lat' => 'lat',
'lng' => 'lng',
'type' => 'Type',
'avatar' => 'Avatar',
'property' => 'Propriété',
'property_list_value' => 'Valeurs de propriété disponibles',
'property_mode' => 'Mode de propriété',
'property_tab' => "Nom de l'onglet",
'property_is_translatable' => 'La propriété est traduisible',
'key' => 'Clé',
'value' => 'Valeur',
'date' => 'Date',
'datetime' => 'Date et heure',
'time' => 'Heure',
'file' => 'Fichier',

'sort_order' => 'Tri',
'created_at' => 'Créé',
'updated_at' => 'Actualisé',
'deleted_at' => 'Supprimé',
'deleted' => 'supprimé',
'empty' => 'Vide',
'password' => 'Mot de passe',

'site_settings' => 'Paramètres du site',
'site_settings_description' => 'Paramètres généraux du site',
'queue_on' => "Envoi de messages de la file d'attente (queue)",
'queue_name' => "Nom de la queue pour l'envoi d'emails",
'email_list_description' => "Remplir une liste d'emails séparés par des virgules",
],
'tab' => [
'preview_content' => 'Prévisualiser le contenu',
'full_content' => 'Contenu',
'images' => 'Images',
'settings' => 'Paramètres',
'description' => 'Description',
'properties' => 'Propriétés',
'mail' => "Envoi d'emails",
'permissions' => 'Gérer les paramètres du site',
],
'component' => [
'property_name_error_404' => 'Voir la page 404',
'property_slug' => 'Slug',
'property_slug_required' => 'Le slug est requis',
'pagination' => 'Pagination',
'pagination_desc' => 'Afficher le bouton de pagination',

'property_redirect_page' => 'Page de redirection',
'property_redirect_on' => 'Redirection ON',
'property_flash_on' => 'Flash ON',
'property_mode' => 'Mode du component',
'mode_submit' => "Soumission par form",
'mode_ajax' => 'Ajax',
],
'message' => [
'create_success' => ':name créé avec succès',
'update_success' => ':name mis à jour avec succès',
'delete_success' => ':name supprimé avec succès',
'restore_confirm' => 'Voulez-vous restaurer les éléments sélectionnés ?',
'restore_success' => 'La restauration a été effectuée avec succès',
'e_not_correct_request' => 'La requête est incorrecte',
],
'settings' => [
'count_per_page' => 'Compter les éléments par page',
'number_validation' => 'Vous devez entrer le numéro',
'pagination_limit' => 'Maximum de boutons',
'active_class' => 'Classe du bouton actif',
'button_list' => 'Liste des boutons',
'button_list_description' => 'main,first,first-more,prev,prev-more,next,next-more,last,last-more',
'button_name' => 'Nom du bouton',
'button_limit' => 'Afficher le bouton après la page',
'button_number' => 'Afficher le nombre du bouton',
'button_class' => 'Classe CSS',
'last_button' => 'Bouton "Last"',
'last-more_button' => 'Bouton "More" (avant "Last")',
'next_button' => 'Bouton "Next"',
'next-more_button' => 'Bouton "More" (avant "Next")',
'prev_button' => 'Bouton "Prev"',
'prev-more_button' => 'Bouton "More" (après "Prev")',
'first_button' => 'Bouton "First"',
'first-more_button' => 'Bouton "More" (après "First")',
'main_button' => 'Bouton "Main"',
],
'button' => [
'add_property_value' => 'Ajouter une valeur de propriété',
],
'type' => [
'input' => 'Champ de texte (input)',
'textarea' => 'Champ de texte (textarea)',
'checkbox' => 'Liste de cases à cocher (checkbox)',
'select' => 'Sélectionner (select)',
'date' => 'Sélecteur de date (datetime)',
'colorpicker' => 'Sélecteur de couleur (colorpicker)',
'mediafinder' => 'Fichier',
],
'permission' => [
'settings' => 'Gérer les paramètres',
],
];
2 changes: 1 addition & 1 deletion models/CommonSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class CommonSettings
* @package Lovata\Toolbox\Models
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
class CommonSettings extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion traits/helpers/TraitComponentNotFoundResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class TraitComponentNotFoundResponse
* @package Lovata\Toolbox\Traits\Helpers
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
trait TraitComponentNotFoundResponse
{
Expand Down
2 changes: 1 addition & 1 deletion traits/helpers/TraitValidationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Trait TraitValidationHelper
* @package Lovata\Toolbox\Traits\Helpers
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*/
trait TraitValidationHelper
{
Expand Down
2 changes: 1 addition & 1 deletion traits/tests/TestModelHasImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Class TestModelHasImages
* @package Lovata\Toolbox\Traits\Tests
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*
* @mixin \PHPUnit\Framework\Assert
*/
Expand Down
2 changes: 1 addition & 1 deletion traits/tests/TestModelHasPreviewImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Class TestModelHasPreviewImage
* @package Lovata\Toolbox\Traits\Tests
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*
* @mixin \PHPUnit\Framework\Assert
*/
Expand Down
2 changes: 1 addition & 1 deletion traits/tests/TestModelValidationNameField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Class TestModelValidationNameField
* @package Lovata\Toolbox\Traits\Tests
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*
* @mixin \PHPUnit\Framework\Assert
*/
Expand Down
2 changes: 1 addition & 1 deletion traits/tests/TestModelValidationSlugField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Class TestModelValidationSlugField
* @package Lovata\Toolbox\Traits\Tests
* @author Andrey Kahranenka, [email protected], LOVATA Group
* @author Andrey Kharanenka, [email protected], LOVATA Group
*
* @mixin \PHPUnit\Framework\Assert
*/
Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@
1.6.0:
- 'Add SendMailHelper class, Add CommonSettings model'
1.7.0:
- 'Add UserStorage classes. Add classes for integration with Lovata.Buddies and RainLab.User plugins'
- 'Add UserStorage classes. Add classes for integration with Lovata.Buddies and RainLab.User plugins'
1.8.0:
- 'Added translation into French. Thanks for contribution philmarc.'

0 comments on commit 420833b

Please sign in to comment.