Skip to content

Commit

Permalink
Fix translations on setting components and views
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Apr 30, 2024
1 parent e62ff24 commit d4f7331
Show file tree
Hide file tree
Showing 53 changed files with 368 additions and 391 deletions.
11 changes: 0 additions & 11 deletions packages/admin/resources/lang/en/components.php

This file was deleted.

3 changes: 2 additions & 1 deletion packages/admin/resources/lang/en/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
'select' => 'Select',
'select_inventory' => 'Select inventory',
'choose_currency' => 'Choose currency',
'select_currencies' => 'Choose currencies',
'select_country' => 'Choose a Country',
'select_countries' => 'Choose countries',
'search_by' => 'Search by :label',
Expand All @@ -145,7 +146,7 @@
'clear' => 'Clear',
'close' => 'Close',
'delete' => 'Delete',
'disabled' => 'Disabled',
'disable' => 'Disable',
'edit' => 'Edit',
'view' => 'View',
'enable' => 'Enable',
Expand Down
1 change: 0 additions & 1 deletion packages/admin/resources/lang/en/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
'add_product' => 'Add product',
'personal_account' => 'Personal Account',
'manage_users' => 'Manage Users',
'settings' => 'Settings',
'sign_out' => 'Sign out',
],

Expand Down
7 changes: 0 additions & 7 deletions packages/admin/resources/lang/en/pages/account.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

return [

// Rename this file for general setting
'menu' => 'Settings',
'single' => 'setting',

'empty_country_selector' => 'Please select a country',
'logo_description' => 'The logo of your store that will be visible on your site. This assets will appear on your invoices.',
'confirm_password_content' => 'For your security, please confirm your password to continue.',

'settings' => [
'general' => [
'title' => 'Store Setting',
'store_details' => 'Store details',
'store_detail_summary' => 'Your customers will use this information to contact you.',
Expand All @@ -20,54 +22,15 @@
'store_address' => 'Store address',
'store_address_summary' => 'This address will appear on your invoices. You can edit the address used.',
'store_currency' => 'Store currency',
'store_currency_summary' => 'This is the currency your products are sold in. After your first sale, currency is locked in and can’t be changed.',
'social_links' => 'Social links',
'social_links_summary' => 'Information about your different accounts on social networks. Users will be able to contact you directly on your official pages.',
'update_information' => 'Update information',
],

'validations' => [
'country' => 'Country is required',
'shop_name' => 'Store name is required',
'shop_email' => 'Store e-mail is required',
],

'notifications' => [
'inventory' => 'Inventory Successfully saved',
],

'roles_permissions' => [
'title' => 'User Roles & Access Management',
'header_title' => 'Administrators & roles',
'role_available' => 'Administrator role available',
'role_available_summary' => 'A role provides access to predefined menus and features so that depending on the assigned role and permissions an administrator can have access to what he needs.',
'new_role' => 'Add new role',
'admin_accounts' => 'Administrators accounts',
'admin_accounts_summary' => 'These are the members who are already in your store with their associated roles. You can assign new roles to existing member here.',
'add_admin' => 'Add administrator',
'users_role' => 'Users & roles',
'login_information' => 'Login information',
'login_information_summary' => 'This information will be useful for the administrator to connect to the administration of Shopper.',
'send_invite' => 'Send Invite',
'send_invite_summary' => 'Send an invitation to this administrator by email with his login information.',
'personal_information' => 'Personal Information',
'personal_information_summary' => 'Information related to the admin profile.',
'role_information' => 'Role Information',
'role_information_summary' => 'Assign roles to this administrator who will limit the actions he can do.',
'roles' => 'Roles',
'permissions' => 'Permissions',
'choose_role' => 'Choose a role for this admin',
'create_permission' => 'Create permission',
'role_alert_msg' => 'You are about to update the admin role, this could block your access to the dashboard.',
'with_role_name' => 'with :name role',
'permissions_in_role' => 'in :name role',
'custom_permission' => 'Custom permission',
'delete_team_member' => 'Are you sure you want to delete this member?',
],

'location' => [
'menu' => 'Inventories',
'single' => 'inventory',
'description' => 'Manage the places you stock inventory, fulfill orders, and sell products.',
'count' => 'You’re using :count of 4 locations available.',
'count' => 'You’re using :count of locations available.',
'add' => 'Add Inventory',
'detail' => 'Details',
'detail_summary' => 'Give this location a short name to make it easy to identify. You’ll see this name in areas like products.',
Expand Down
36 changes: 36 additions & 0 deletions packages/admin/resources/lang/en/pages/settings/staff.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);

return [

'title' => 'User Roles & Access Management',
'header_title' => 'Administrators & roles',
'role_available' => 'Administrator role available',
'role_available_summary' => 'A role provides access to predefined menus and features so that depending on the assigned role and permissions an administrator can have access to what he needs.',
'new_role' => 'Add new role',
'admin_accounts' => 'Administrators accounts',
'admin_accounts_summary' => 'These are the members who are already in your store with their associated roles. You can assign new roles to existing member here.',
'add_admin' => 'Add administrator',
'users_role' => 'Users & roles',
'login_information' => 'Login information',
'login_information_summary' => 'This information will be useful for the administrator to connect to the administration of Shopper.',
'send_invite' => 'Send Invite',
'send_invite_summary' => 'Send an invitation to this administrator by email with his login information.',
'personal_information' => 'Personal Information',
'personal_information_summary' => 'Information related to the admin profile.',
'role_information' => 'Role Information',
'role_information_summary' => 'Assign roles to this administrator who will limit the actions he can do.',
'roles' => 'Roles',
'role' => 'Role',
'permission' => 'Permission',
'permissions' => 'Permissions',
'choose_role' => 'Choose a role for this admin',
'create_permission' => 'Create permission',
'role_alert_msg' => 'You are about to update the admin role, this could block your access to the dashboard.',
'with_role_name' => 'with :name role',
'permissions_in_role' => 'in :name role',
'custom_permission' => 'Custom permission',
'delete_team_member' => 'Are you sure you want to delete this member?',

];
8 changes: 2 additions & 6 deletions packages/admin/resources/lang/en/words.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
'not_available' => 'Not available',
'available' => 'Available',
'stock' => 'Stock',
'permission' => 'Permission',
'role' => 'Role',

'payment_method' => 'Payment Method',
'shipping_method' => 'Shipping method',
Expand All @@ -42,8 +40,6 @@

'pricing' => 'Pricing',
'price' => 'Price',
'location' => 'Inventory',
'locations' => 'Inventories',
'dismiss' => 'Dismiss',

'published_on' => 'Will be published on:',
Expand All @@ -55,7 +51,8 @@
'out_stock' => 'out stock',
'event' => 'Event',
'adjustment' => 'Adjustment',
'is_enabled' => 'Is Enabled',
'is_enabled' => 'Enabled',
'is_disabled' => 'Disabled',

'set_visibility' => 'Set :name visibility for the customers.',
'set_global_visibility' => 'Setup page visibility for the customers.',
Expand Down Expand Up @@ -83,7 +80,6 @@

'images' => 'Images',
'step' => 'Step :number',
'settings' => 'Settings',
'environment' => 'Environnement',
'discount_use' => '{1} Limit of 1 use|[2,*] Limit of :count uses',

Expand Down
11 changes: 0 additions & 11 deletions packages/admin/resources/lang/fr/components.php

This file was deleted.

3 changes: 2 additions & 1 deletion packages/admin/resources/lang/fr/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@
'select' => 'Sélectionner',
'select_inventory' => 'Sélectionner un inventaire',
'choose_currency' => 'Choisir la devise',
'select_currencies' => 'Sélectionner des devises',
'select_country' => 'Choisir un pays',
'select_countries' => 'Choisir des pays',
'select_countries' => 'Sélectionner des pays',
'search_by' => 'Rechercher par :label',
'leave_comment' => 'Laisser des notes pour ce client',
'search_payment' => 'Recherche de paiement par nom de fournisseur',
Expand Down
1 change: 0 additions & 1 deletion packages/admin/resources/lang/fr/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
'add_product' => 'Ajouter produit',
'personal_account' => 'Compte Personnel',
'manage_users' => 'Gestions des Admins',
'settings' => 'Paramètres',
'sign_out' => 'Déconnexion',
],

Expand Down
7 changes: 0 additions & 7 deletions packages/admin/resources/lang/fr/pages/account.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,68 +4,33 @@

return [

'menu' => 'Paramètres',
'single' => 'paramètre',

'empty_country_selector' => 'Veuillez sélectionner un pays',
'logo_description' => 'Le logo de votre boutique qui sera visible sur votre site. Cet actif apparaîtra sur vos factures.',
'confirm_password_content' => 'Pour votre sécurité, veuillez confirmer votre mot de passe pour continuer.',

'settings' => [
'title' => 'Réglage du magasin',
'store_details' => 'Informations du magasin',
'general' => [
'title' => 'Réglage de votre boutique',
'store_details' => 'Informations de la boutique',
'store_detail_summary' => 'Vos clients utiliseront ces informations pour vous contacter.',
'email_helper' => 'Vos clients utiliseront cette adresse s\'ils ont besoin de vous contacter.',
'phone_number_helper' => 'Vos clients utiliseront ce numéro de téléphone s\'ils ont besoin de vous appeler directement.',
'assets' => 'Fichiers',
'assets_summary' => "Le logo et l'image de couverture de votre magasin qui seront visibles sur votre site. Cet actif apparaîtra sur vos factures.",
'store_address' => 'Adresse du magasin',
'store_address_summary' => "Cette adresse apparaîtra sur vos factures. Vous pouvez modifier l'adresse utilisée.",
'store_currency' => 'Monnaie du magasin',
'store_currency_summary' => "Il s'agit de la devise dans laquelle vos produits sont vendus. Après votre première vente, la devise est bloquée et ne peut plus être modifiée.",
'store_currency' => 'Devise de la boutique',
'social_links' => 'Liens sociaux',
'social_links_summary' => 'Informations sur vos différents comptes sur les réseaux sociaux. Les utilisateurs pourront vous contacter directement sur vos pages officielles.',
'update_information' => 'Mettre à jour les informations',
],

'validations' => [
'country' => 'Le pays est requis',
'shop_name' => 'Le nom du magasin est obligatoire',
'shop_email' => "L'e-mail du magasin est requis",
],

'notifications' => [
'inventory' => 'Inventaire enregistré avec succès!',
],

'roles_permissions' => [
'title' => 'Rôles des utilisateurs et gestion des accès',
'header_title' => 'Administrateurs et rôles',
'role_available' => 'Rôles d\'administrateur disponible',
'role_available_summary' => "Un rôle donne accès à des menus et à des fonctions prédéfinis, de sorte qu'en fonction du rôle et des autorisations qui lui sont attribués, un administrateur peut avoir accès à ce dont il a besoin.",
'new_role' => 'Ajouter un rôle',
'admin_accounts' => 'Comptes administrateurs',
'admin_accounts_summary' => "Il s'agit des membres qui sont déjà présents dans votre magasin avec les rôles qui leur sont associés. Vous pouvez attribuer de nouveaux rôles aux membres existants ici.",
'add_admin' => 'Ajouter un administrateur',
'users_role' => 'Utilisateurs et rôles',
'login_information' => 'Informations de connexion',
'login_information_summary' => "Ces informations seront utiles à l'administrateur pour se connecter à l'administration de Shopper.",
'send_invite' => 'Envoyer l\'invitation',
'send_invite_summary' => 'Envoyez une invitation à cet administrateur par courrier électronique avec ses informations de connexion.',
'personal_information' => 'Information personnelle',
'personal_information_summary' => 'Informations relatives au profil de l\'administrateur.',
'role_information' => 'Informations sur le rôle',
'role_information_summary' => 'Attribuez à cet administrateur des rôles qui limiteront les actions qu\'il peut effectuer.',
'roles' => 'Rôles',
'permissions' => 'Permissions',
'choose_role' => 'Choisissez un rôle pour cet administrateur',
'create_permission' => 'Créer une permission',
'role_alert_msg' => "Vous êtes sur le point de mettre à jour le rôle d'administrateur, ce qui pourrait bloquer votre accès au tableau de bord.",
'with_role_name' => 'avec le rôle :name',
'permissions_in_role' => 'pour le rôle :name',
'custom_permission' => 'Permission personnalisée',
'delete_team_member' => 'Êtes-vous sûr de vouloir supprimer ce membre ?',
],

'location' => [
'menu' => 'Inventaires',
'single' => 'inventaire',
'description' => 'Gérez les endroits où vous stockez des marchandises, remplissez des commandes et vendez des produits.',
'count' => 'Vous utilisez :count sur 4 inventaires disponible.',
'count' => 'Vous utilisez :count sur les inventaires disponible.',
'add' => 'Ajout d\'un inventaire',
'detail' => 'Détails',
'detail_summary' => "Donnez à cet emplacement un nom court pour qu'il soit facile à identifier. Vous verrez ce nom dans des domaines tels que les produits.",
Expand Down
36 changes: 36 additions & 0 deletions packages/admin/resources/lang/fr/pages/settings/staff.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);

return [

'title' => 'Rôles des utilisateurs et gestion des accès',
'header_title' => 'Administrateurs et rôles',
'role_available' => 'Rôles d\'administrateur disponible',
'role_available_summary' => "Un rôle donne accès à des menus et à des fonctions prédéfinis, de sorte qu'en fonction du rôle et des autorisations qui lui sont attribués, un administrateur peut avoir accès à ce dont il a besoin.",
'new_role' => 'Ajouter un rôle',
'admin_accounts' => 'Comptes administrateurs',
'admin_accounts_summary' => "Il s'agit des membres qui sont déjà présents dans votre magasin avec les rôles qui leur sont associés. Vous pouvez attribuer de nouveaux rôles aux membres existants ici.",
'add_admin' => 'Ajouter un administrateur',
'users_role' => 'Utilisateurs et rôles',
'login_information' => 'Informations de connexion',
'login_information_summary' => "Ces informations seront utiles à l'administrateur pour se connecter à l'administration de Shopper.",
'send_invite' => 'Envoyer l\'invitation',
'send_invite_summary' => 'Envoyez une invitation à cet administrateur par courrier électronique avec ses informations de connexion.',
'personal_information' => 'Information personnelle',
'personal_information_summary' => 'Informations relatives au profil de l\'administrateur.',
'role_information' => 'Informations sur le rôle',
'role_information_summary' => 'Attribuez à cet administrateur des rôles qui limiteront les actions qu\'il peut effectuer.',
'roles' => 'Rôles',
'role' => 'Rôle',
'permission' => 'Permission',
'permissions' => 'Permissions',
'choose_role' => 'Choisissez un rôle pour cet administrateur',
'create_permission' => 'Créer une permission',
'role_alert_msg' => "Vous êtes sur le point de mettre à jour le rôle d'administrateur, ce qui pourrait bloquer votre accès au tableau de bord.",
'with_role_name' => 'avec le rôle :name',
'permissions_in_role' => 'pour le rôle :name',
'custom_permission' => 'Permission personnalisée',
'delete_team_member' => 'Êtes-vous sûr de vouloir supprimer ce membre ?',

];
8 changes: 2 additions & 6 deletions packages/admin/resources/lang/fr/words.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
'not_available' => 'Indisponible',
'available' => 'Disponible',
'stock' => 'Stock',
'permission' => 'Permission',
'role' => 'Rôle',

'payment_method' => 'Moyen de paiement',
'shipping_method' => 'Mode de livraison',
Expand All @@ -42,8 +40,6 @@

'pricing' => 'Tarification',
'price' => 'Prix',
'location' => 'Inventaire',
'locations' => 'Inventaires',
'dismiss' => 'Fermer',

'published_on' => 'Sera publié le:',
Expand All @@ -55,7 +51,8 @@
'out_stock' => 'stock épuisé',
'event' => 'Action',
'adjustment' => 'Ajustement',
'is_enabled' => 'Est activé',
'is_enabled' => 'Activé',
'is_disabled' => 'Désactivé',

'set_visibility' => 'Rendre visible :name pour les clients.',
'set_global_visibility' => 'Visibilité de la page pour les clients.',
Expand Down Expand Up @@ -83,7 +80,6 @@

'images' => 'Images',
'step' => 'Étape :number',
'settings' => 'Paramètres',
'environment' => 'Environnement',
'discount_use' => '{1} Limité à une utilisation|[2,*] Limité à :count utilisations',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class="relative flex items-start rounded-lg bg-white px-3 py-2.5 shadow-sm ring-
])
>
<x-untitledui-sliders class="mr-2 h-5 w-5" stroke-width="1.5" aria-hidden="true" />
{{ __('shopper::layout.account_dropdown.settings') }}
{{ __('shopper::pages/settings/global.menu') }}
</x-shopper::link>
@endcan

Expand Down

0 comments on commit d4f7331

Please sign in to comment.