From 051abef046892638d2bcb64240e71e4abe6baf5e Mon Sep 17 00:00:00 2001 From: Arthur Monney Date: Tue, 30 Apr 2024 13:05:53 +0200 Subject: [PATCH] Fix translations (#258) * Update store translations * Fix translations on setting components and views * fix code formatting --------- Co-authored-by: mckenziearts --- packages/admin/config/features.php | 14 ++-- packages/admin/public/shopper.css | 12 ---- .../admin/resources/js/components/panel.js | 2 +- .../admin/resources/lang/en/components.php | 39 ----------- packages/admin/resources/lang/en/forms.php | 22 ++---- packages/admin/resources/lang/en/layout.php | 19 ++---- packages/admin/resources/lang/en/modals.php | 1 + .../admin/resources/lang/en/notifications.php | 22 +++--- .../admin/resources/lang/en/pages/account.php | 7 -- .../resources/lang/en/pages/attributes.php | 3 + .../admin/resources/lang/en/pages/brands.php | 3 +- .../resources/lang/en/pages/categories.php | 3 +- .../resources/lang/en/pages/collections.php | 2 + .../resources/lang/en/pages/customers.php | 2 + .../resources/lang/en/pages/dashboard.php | 1 + .../resources/lang/en/pages/discounts.php | 7 +- .../admin/resources/lang/en/pages/orders.php | 3 + .../resources/lang/en/pages/products.php | 32 +++------ .../admin/resources/lang/en/pages/reviews.php | 10 +++ .../settings/{settings.php => global.php} | 51 ++------------ .../lang/en/pages/settings/staff.php | 36 ++++++++++ packages/admin/resources/lang/en/words.php | 40 ++--------- .../admin/resources/lang/fr/components.php | 53 --------------- packages/admin/resources/lang/fr/forms.php | 24 +++---- packages/admin/resources/lang/fr/layout.php | 19 ++---- .../admin/resources/lang/fr/notifications.php | 16 +++-- .../admin/resources/lang/fr/pages/account.php | 7 -- .../resources/lang/fr/pages/attributes.php | 3 + .../admin/resources/lang/fr/pages/brands.php | 3 +- .../resources/lang/fr/pages/categories.php | 3 +- .../resources/lang/fr/pages/collections.php | 2 + .../resources/lang/fr/pages/customers.php | 2 + .../resources/lang/fr/pages/dashboard.php | 1 + .../resources/lang/fr/pages/discounts.php | 7 +- .../admin/resources/lang/fr/pages/orders.php | 3 + .../resources/lang/fr/pages/products.php | 33 +++------ .../admin/resources/lang/fr/pages/reviews.php | 10 +++ .../settings/{settings.php => global.php} | 57 +++------------- .../lang/fr/pages/settings/staff.php | 36 ++++++++++ packages/admin/resources/lang/fr/words.php | 39 ++--------- .../views/auth/two-factor-login.blade.php | 8 +-- .../views/components/attribute-card.blade.php | 2 +- .../views/components/forms/group.blade.php | 2 +- .../views/components/forms/search.blade.php | 4 +- .../layouts/app/sidebar/content.blade.php | 2 +- .../views/components/learn-more.blade.php | 2 +- .../views/components/modal.blade.php | 2 +- .../components/section-heading.blade.php | 8 +-- .../theme-switcher/button.blade.php | 2 +- .../components/account/devices.blade.php | 4 +- .../components/account/dropdown.blade.php | 5 +- .../components/account/password.blade.php | 2 +- .../components/account/profile.blade.php | 2 +- .../components/account/two-factor.blade.php | 14 ++-- .../components/collections/products.blade.php | 2 +- .../components/customers/addresses.blade.php | 33 +++------ .../components/customers/orders.blade.php | 22 +++--- .../components/customers/profile.blade.php | 24 +++---- .../attributes/multiple-choice.blade.php | 2 +- .../products/attributes/text.blade.php | 2 +- .../products/forms/attributes.blade.php | 10 +-- .../components/products/forms/edit.blade.php | 2 +- .../products/forms/inventory.blade.php | 2 +- .../components/products/forms/media.blade.php | 2 +- .../products/forms/related.blade.php | 31 ++++----- .../components/products/forms/seo.blade.php | 6 +- .../products/forms/shipping.blade.php | 2 +- .../settings/inventories/_form.blade.php | 2 +- .../components/settings/legal/_form.blade.php | 2 +- .../settings/team/permissions.blade.php | 6 +- .../settings/team/users-role.blade.php | 2 +- .../livewire/modals/archive-order.blade.php | 4 +- .../modals/confirm-password.blade.php | 16 ++--- .../modals/create-permission.blade.php | 57 ++-------------- .../livewire/modals/create-role.blade.php | 55 +++------------ .../modals/logout-others-browser.blade.php | 6 +- .../livewire/modals/products-lists.blade.php | 2 +- .../modals/related-products-list.blade.php | 2 +- .../pages/attributes/browse.blade.php | 8 +-- .../livewire/pages/brand/index.blade.php | 8 +-- .../livewire/pages/category/index.blade.php | 8 +-- .../pages/collections/browse.blade.php | 8 +-- .../livewire/pages/collections/edit.blade.php | 4 +- .../livewire/pages/customers/create.blade.php | 6 +- .../livewire/pages/customers/index.blade.php | 8 +-- .../livewire/pages/customers/show.blade.php | 6 +- .../livewire/pages/discounts/index.blade.php | 54 ++------------- .../livewire/pages/orders/detail.blade.php | 24 +++---- .../livewire/pages/orders/index.blade.php | 4 +- .../livewire/pages/products/create.blade.php | 4 +- .../livewire/pages/products/edit.blade.php | 30 ++++---- .../livewire/pages/products/index.blade.php | 8 +-- .../livewire/pages/products/variant.blade.php | 4 +- .../livewire/pages/reviews/index.blade.php | 4 +- .../pages/settings/analytics.blade.php | 51 +++++++------- .../livewire/pages/settings/general.blade.php | 9 ++- .../livewire/pages/settings/index.blade.php | 2 +- .../settings/inventories/browse.blade.php | 41 +++++++---- .../settings/inventories/create.blade.php | 6 +- .../pages/settings/inventories/edit.blade.php | 2 +- .../livewire/pages/settings/legal.blade.php | 2 +- .../livewire/pages/settings/payment.blade.php | 2 +- .../pages/settings/team/index.blade.php | 19 +++--- .../pages/settings/team/role.blade.php | 19 +++--- .../livewire/pages/settings/zones.blade.php | 7 +- .../slide-overs/add-collection-form.blade.php | 2 +- .../slide-overs/attribute-form.blade.php | 2 +- .../livewire/slide-overs/brand-form.blade.php | 2 +- .../slide-overs/category-form.blade.php | 2 +- .../slide-overs/create-team-member.blade.php | 2 +- .../slide-overs/discount-form.blade.php | 2 +- .../slide-overs/re-order-categories.blade.php | 2 +- .../slide-overs/review-detail.blade.php | 14 ++-- .../tables/cells/brands/site.blade.php | 4 +- .../tables/cells/discounts/amount.blade.php | 2 +- .../tables/cells/reviews/product.blade.php | 2 +- packages/admin/routes/admin/product.php | 8 ++- packages/admin/routes/cpanel.php | 30 ++++---- .../src/Components/Form/AddressField.php | 12 ++-- .../admin/src/Components/Form/GenderField.php | 2 +- .../admin/src/Components/Form/IconPicker.php | 2 +- .../admin/src/Components/Form/SeoField.php | 6 +- .../src/Components/Form/ShippingField.php | 8 +-- packages/admin/src/Enum/FeatureState.php | 4 +- packages/admin/src/Events/CatalogSidebar.php | 51 +++++++------- packages/admin/src/Events/CustomerSidebar.php | 42 ++++++------ .../admin/src/Events/DashboardSidebar.php | 2 +- packages/admin/src/Events/SalesSidebar.php | 46 ++++++------- packages/admin/src/Feature.php | 2 +- .../Livewire/Components/Account/Password.php | 6 +- .../Livewire/Components/Account/Profile.php | 10 +-- .../Collection/CollectionProducts.php | 8 +-- .../Livewire/Components/Customers/Orders.php | 10 +-- .../Initialization/Steps/StoreInformation.php | 2 +- .../Products/Attributes/Actions.php | 4 +- .../Components/Products/Form/Edit.php | 24 +++---- .../Components/Products/Form/Inventory.php | 8 +-- .../Components/Products/Form/Media.php | 5 +- .../Products/Form/RelatedProducts.php | 2 +- .../Components/Products/Form/Variants.php | 18 ++--- .../Components/Products/VariantStock.php | 6 +- .../Settings/Inventories/InventoryForm.php | 18 ++--- .../Components/Settings/Legal/PolicyForm.php | 4 +- .../Components/Settings/Team/Permissions.php | 2 +- .../Components/Settings/Team/UsersRole.php | 10 +-- .../src/Livewire/Modals/ConfirmPassword.php | 4 +- .../src/Livewire/Modals/CreatePermission.php | 68 ++++++++++++------- .../admin/src/Livewire/Modals/CreateRole.php | 46 ++++++++++--- .../src/Livewire/Pages/Attribute/Browse.php | 42 ++++++------ .../admin/src/Livewire/Pages/Brand/Index.php | 32 ++++----- .../src/Livewire/Pages/Category/Index.php | 32 ++++----- .../src/Livewire/Pages/Collection/Edit.php | 31 +++------ .../src/Livewire/Pages/Collection/Index.php | 20 +++--- .../src/Livewire/Pages/Customers/Create.php | 20 +++--- .../src/Livewire/Pages/Customers/Index.php | 17 +++-- .../src/Livewire/Pages/Customers/Show.php | 6 +- .../admin/src/Livewire/Pages/Dashboard.php | 2 +- .../src/Livewire/Pages/Discount/Index.php | 17 +++-- .../admin/src/Livewire/Pages/Order/Index.php | 2 +- .../src/Livewire/Pages/Product/Create.php | 48 ++++++------- .../admin/src/Livewire/Pages/Product/Edit.php | 6 +- .../src/Livewire/Pages/Product/Index.php | 22 +++--- .../src/Livewire/Pages/Product/Variant.php | 16 ++--- .../src/Livewire/Pages/Reviews/Index.php | 6 +- .../src/Livewire/Pages/Settings/General.php | 64 ++++++++++------- .../src/Livewire/Pages/Settings/Index.php | 2 +- .../Pages/Settings/Inventories/Browse.php | 2 +- .../Pages/Settings/Inventories/Create.php | 2 +- .../Pages/Settings/Inventories/Edit.php | 2 +- .../Livewire/Pages/Settings/Team/Index.php | 12 ++-- .../Pages/Settings/Team/RolePermission.php | 10 +-- .../Livewire/SlideOvers/AddCollectionForm.php | 23 +++---- .../Livewire/SlideOvers/AddVariantForm.php | 24 +++---- .../src/Livewire/SlideOvers/AttributeForm.php | 19 +++--- .../Livewire/SlideOvers/AttributeValues.php | 16 ++--- .../src/Livewire/SlideOvers/BrandForm.php | 16 ++--- .../src/Livewire/SlideOvers/CategoryForm.php | 16 ++--- .../Livewire/SlideOvers/CollectionRules.php | 2 +- .../Livewire/SlideOvers/CreateTeamMember.php | 33 +++++---- .../src/Livewire/SlideOvers/DiscountForm.php | 26 +++---- .../src/Livewire/SlideOvers/ReviewDetail.php | 2 +- .../admin/src/Traits/ConfirmsPasswords.php | 2 +- packages/admin/src/helpers.php | 9 ++- packages/core/src/Enum/CollectionType.php | 2 +- packages/core/src/Models/Address.php | 2 +- packages/core/src/Models/Permission.php | 14 ++-- packages/core/src/Traits/HasMedia.php | 4 +- 187 files changed, 1089 insertions(+), 1390 deletions(-) delete mode 100755 packages/admin/resources/lang/en/components.php delete mode 100644 packages/admin/resources/lang/en/pages/account.php create mode 100644 packages/admin/resources/lang/en/pages/reviews.php rename packages/admin/resources/lang/en/pages/settings/{settings.php => global.php} (54%) create mode 100644 packages/admin/resources/lang/en/pages/settings/staff.php delete mode 100755 packages/admin/resources/lang/fr/components.php delete mode 100644 packages/admin/resources/lang/fr/pages/account.php create mode 100644 packages/admin/resources/lang/fr/pages/reviews.php rename packages/admin/resources/lang/fr/pages/settings/{settings.php => global.php} (52%) create mode 100644 packages/admin/resources/lang/fr/pages/settings/staff.php diff --git a/packages/admin/config/features.php b/packages/admin/config/features.php index a9a04b702..056e88518 100644 --- a/packages/admin/config/features.php +++ b/packages/admin/config/features.php @@ -19,13 +19,11 @@ | */ - 'brand' => FeatureState::ENABLED, - 'category' => FeatureState::ENABLED, - 'customer' => FeatureState::ENABLED, - 'collection' => FeatureState::ENABLED, - 'discount' => FeatureState::ENABLED, - 'order' => FeatureState::ENABLED, - 'product' => FeatureState::ENABLED, - 'review' => FeatureState::ENABLED, + 'attribute' => FeatureState::Enabled, + 'brand' => FeatureState::Enabled, + 'category' => FeatureState::Enabled, + 'collection' => FeatureState::Enabled, + 'discount' => FeatureState::Enabled, + 'review' => FeatureState::Enabled, ]; diff --git a/packages/admin/public/shopper.css b/packages/admin/public/shopper.css index efe62fb28..5bb5c8cf5 100755 --- a/packages/admin/public/shopper.css +++ b/packages/admin/public/shopper.css @@ -4342,10 +4342,6 @@ html { width: 100vw; } -.w-1\/4 { - width: 25%; -} - .min-w-0 { min-width: 0px; } @@ -5152,10 +5148,6 @@ html { overflow-y: hidden; } -.overflow-x-scroll { - overflow-x: scroll; -} - .overflow-y-scroll { overflow-y: scroll; } @@ -11262,10 +11254,6 @@ html.dark .shiki span { padding: 1.25rem; } - .lg\:p-6 { - padding: 1.5rem; - } - .lg\:px-0 { padding-left: 0px; padding-right: 0px; diff --git a/packages/admin/resources/js/components/panel.js b/packages/admin/resources/js/components/panel.js index 5f41f4ada..dc9339297 100644 --- a/packages/admin/resources/js/components/panel.js +++ b/packages/admin/resources/js/components/panel.js @@ -102,7 +102,7 @@ const SlideOverPanel = () => { }, focusables() { let selector = - "a, button, input:not([type='hidden'], textarea, select, details, [tabindex]:not([tabindex='-1'])" + "a, button, input:not([type='hidden']), textarea, select, details, [tabindex]:not([tabindex='-1'])" return [...this.$el.querySelectorAll(selector)].filter((el) => !el.hasAttribute('disabled')) }, diff --git a/packages/admin/resources/lang/en/components.php b/packages/admin/resources/lang/en/components.php deleted file mode 100755 index f8ebb0c6f..000000000 --- a/packages/admin/resources/lang/en/components.php +++ /dev/null @@ -1,39 +0,0 @@ - [ - 'title' => 'Search engine listing preview', - 'edit_action' => 'Edit SEO preview', - 'description' => 'Add a title and description to see how this collection might appear in a search engine listing.', - 'characters' => '160 characters', - ], - - 'modal' => [ - 'content' => 'For your security, please confirm your password to continue.', - ], - - 'tables' => [ - 'status' => [ - 'delete' => 'Delete', - 'updated' => 'Updated', - 'verified' => 'Verified', - 'visibility' => 'Visibility', - ], - - 'messages' => [ - 'delete' => 'The :name has successfully removed!', - 'enabled' => 'The :name has successfully enabled!', - 'disabled' => 'The :name has successfully disabled!', - 'verified' => 'The :name has successfully verified!', - 'approved' => 'The :name has successfully approved!', - 'disapproved' => 'The :name has successfully disapproved!', - 'visibility' => 'The :name has successfully updated visibility status!', - ], - ], - - 'learn_more' => 'Learn more about', - -]; diff --git a/packages/admin/resources/lang/en/forms.php b/packages/admin/resources/lang/en/forms.php index 9796f2356..d961cc95c 100644 --- a/packages/admin/resources/lang/en/forms.php +++ b/packages/admin/resources/lang/en/forms.php @@ -107,14 +107,6 @@ 'role' => 'Role', 'access' => 'Access', 'content' => 'Content', - 'sender_name' => 'Sender name', - 'sender_email' => 'Sender email', - 'username' => 'Username', - 'mail_method' => 'Mail method', - 'mail_host' => 'Mail host', - 'mail_port' => 'Mail port', - 'encryption_protocol' => 'Encryption protocol', - 'markdown' => 'Markdown', 'force' => 'Force', 'template' => 'Template', 'ga_tracking_id' => 'Google Analytics Tracking ID', @@ -136,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', @@ -153,13 +146,10 @@ 'clear' => 'Clear', 'close' => 'Close', 'delete' => 'Delete', - 'deleted' => 'Deleted', - 'disabled' => 'Disabled', 'disable' => 'Disable', 'edit' => 'Edit', 'view' => 'View', 'enable' => 'Enable', - 'enabled' => 'Enabled', 'export' => 'Export', 'nevermind' => 'Nevermind', 'update' => 'Update', @@ -168,10 +158,9 @@ 'remove' => 'Remove', 'remove_all' => 'Remove All', 'enabled_two_factor' => 'Enable Two Factor', - 'regenerate' => 'Regenerate Recovery Codes', + 'regenerate_code' => 'Regenerate Recovery Codes', 'show_recovery_code' => 'Show Recovery Codes', 'archive' => 'Archive', - 'archived' => 'Archived', 'more_actions' => 'More actions', 'mark_paid' => 'Mark as paid', 'mark_complete' => 'Mark complete', @@ -179,9 +168,7 @@ 'send' => 'Send', 'logout_session' => 'Logout other browser sessions', 'approve' => 'Approve', - 'approved' => 'Approved', 'disapprove' => 'Disapprove', - 'disapproved' => 'Disapproved', 'create' => 'Create', 'upload' => 'Upload', 'verified' => 'Verified', @@ -189,6 +176,11 @@ 'next' => 'Next', 'back' => 'Back', 'theme_switcher' => 'Enable :label theme', + + 'add_label' => 'New :label', + 'edit_label' => 'Edit :label', + 'delete_label' => 'Delete :label', + 'show_label' => 'View :label', ], 'error' => 'Your submission contains errors. Please try again', diff --git a/packages/admin/resources/lang/en/layout.php b/packages/admin/resources/lang/en/layout.php index 5746f0a3d..5005b0e91 100755 --- a/packages/admin/resources/lang/en/layout.php +++ b/packages/admin/resources/lang/en/layout.php @@ -5,33 +5,22 @@ return [ 'sidebar' => [ - 'dashboard' => 'Dashboard', - 'orders' => 'Orders', - 'brands' => 'Brands', - 'categories' => 'Categories', - 'collections' => 'Collections', - 'customers' => 'Customers', - 'reviews' => 'Reviews', - 'discounts' => 'Discounts', - 'products' => 'Products', 'catalog' => 'Catalog', - 'shop' => 'Shop', 'sales' => 'Sales', ], + 'back' => 'Back', + 'view_site' => 'View Site', + 'meta_title' => 'Shopper Administration', + 'account_dropdown' => [ 'sign_in' => 'Signed in with', 'add_product' => 'Add product', 'personal_account' => 'Personal Account', 'manage_users' => 'Manage Users', - 'settings' => 'Settings', 'sign_out' => 'Sign out', ], - 'back' => 'Back', - 'view_site' => 'View Site', - 'meta_title' => 'Shopper Administration', - 'status' => [ 'delete' => 'Delete', 'success' => 'Success', diff --git a/packages/admin/resources/lang/en/modals.php b/packages/admin/resources/lang/en/modals.php index ceda4f6e1..6e2d83fa4 100755 --- a/packages/admin/resources/lang/en/modals.php +++ b/packages/admin/resources/lang/en/modals.php @@ -3,6 +3,7 @@ declare(strict_types=1); return [ + 'permissions' => [ 'new' => 'New permission', 'new_description' => 'Add a new permission and directly assign to this role', diff --git a/packages/admin/resources/lang/en/notifications.php b/packages/admin/resources/lang/en/notifications.php index a12cc306b..853d9cb60 100755 --- a/packages/admin/resources/lang/en/notifications.php +++ b/packages/admin/resources/lang/en/notifications.php @@ -4,18 +4,16 @@ return [ - 'actions' => [ - 'save' => ':item successfully save', - 'create' => ':item successfully added', - 'update' => ':item successfully updated', - 'remove' => ':item successfully removed', - ], - - 'attributes' => [ - 'remove' => 'The attribute has successfully removed', - 'enable' => 'The attribute has successfully enabled', - 'disable' => 'The attribute has successfully disabled', - ], + 'save' => ':item successfully save', + 'create' => ':item successfully created', + 'update' => ':item successfully updated', + 'delete' => ':item successfully deleted', + 'enabled' => ':item has successfully enabled', + 'disabled' => ':item has successfully disabled', + 'verified' => ':item has successfully verified', + 'approved' => ':item has successfully approved', + 'disapproved' => ':item has successfully disapproved', + 'visibility' => ':item has successfully updated visibility', 'auth' => [ 'password' => 'This password does not match our records.', diff --git a/packages/admin/resources/lang/en/pages/account.php b/packages/admin/resources/lang/en/pages/account.php deleted file mode 100644 index b80286864..000000000 --- a/packages/admin/resources/lang/en/pages/account.php +++ /dev/null @@ -1,7 +0,0 @@ - 'Attributes', + 'single' => 'attribute', 'title' => 'Manage Attributes', 'content' => 'Add custom attributes to your product to display for informations', 'add' => 'Add attribute', diff --git a/packages/admin/resources/lang/en/pages/brands.php b/packages/admin/resources/lang/en/pages/brands.php index 285b3ee27..86491fa69 100755 --- a/packages/admin/resources/lang/en/pages/brands.php +++ b/packages/admin/resources/lang/en/pages/brands.php @@ -4,9 +4,10 @@ return [ + 'menu' => 'Brands', + 'single' => 'brand', 'title' => 'Organize your products into brands', 'content' => 'Create brands and organize your products to make it easier for users to find products.', - 'empty_brand' => 'No brand', ]; diff --git a/packages/admin/resources/lang/en/pages/categories.php b/packages/admin/resources/lang/en/pages/categories.php index ee6d5095b..db0f7ae24 100755 --- a/packages/admin/resources/lang/en/pages/categories.php +++ b/packages/admin/resources/lang/en/pages/categories.php @@ -4,9 +4,10 @@ return [ + 'menu' => 'Categories', + 'single' => 'category', 'title' => 'Organize your products into categories', 'content' => 'Create and manage all your store categories to help your customers easily find products.', - 'empty_selector' => '--- No category ---', 'empty_parent' => 'No parent category', 'parent' => 'in :parent', diff --git a/packages/admin/resources/lang/en/pages/collections.php b/packages/admin/resources/lang/en/pages/collections.php index af0843f83..4cbae6ba6 100755 --- a/packages/admin/resources/lang/en/pages/collections.php +++ b/packages/admin/resources/lang/en/pages/collections.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Collections', + 'single' => 'collection', 'title' => 'Organize your products into various collections', 'content' => 'Create and manage all your collections to help your customers easily find groups or types of products.', 'automatic' => 'Automatic', diff --git a/packages/admin/resources/lang/en/pages/customers.php b/packages/admin/resources/lang/en/pages/customers.php index 2f7ed2224..95e00f3cb 100755 --- a/packages/admin/resources/lang/en/pages/customers.php +++ b/packages/admin/resources/lang/en/pages/customers.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Customers', + 'single' => 'customer', 'title' => 'Manage customer orders & details', 'content' => 'This is where you can manage your customer information and view their purchase history.', diff --git a/packages/admin/resources/lang/en/pages/dashboard.php b/packages/admin/resources/lang/en/pages/dashboard.php index e62660171..215915efd 100755 --- a/packages/admin/resources/lang/en/pages/dashboard.php +++ b/packages/admin/resources/lang/en/pages/dashboard.php @@ -4,6 +4,7 @@ return [ + 'menu' => 'Dashboard', 'welcome_message' => 'Welcome to Shopper Dashboard', 'header' => 'Start with the basic for your online store', 'description' => 'To begin building your new store with Laravel Shopper, we recommend starting with these steps. The framework allows you to create diff --git a/packages/admin/resources/lang/en/pages/discounts.php b/packages/admin/resources/lang/en/pages/discounts.php index fe8b7403c..b79add720 100755 --- a/packages/admin/resources/lang/en/pages/discounts.php +++ b/packages/admin/resources/lang/en/pages/discounts.php @@ -4,14 +4,11 @@ return [ + 'menu' => 'Discounts', + 'single' => 'discount', 'title' => 'Manage discounts and promotions', 'description' => 'Create & Manage discount and promotions codes that apply at checkout or customers orders.', - 'actions' => [ - 'create' => 'Create discount', - 'update' => 'Update code :code', - ], - 'empty_message' => 'No discount found...', 'search' => 'Search discount code', 'name_helptext' => 'Customers will enter this discount code at checkout.', diff --git a/packages/admin/resources/lang/en/pages/orders.php b/packages/admin/resources/lang/en/pages/orders.php index cd57e11e3..10592f721 100755 --- a/packages/admin/resources/lang/en/pages/orders.php +++ b/packages/admin/resources/lang/en/pages/orders.php @@ -3,6 +3,9 @@ declare(strict_types=1); return [ + + 'menu' => 'Orders', + 'single' => 'order', 'title' => 'Manage customers orders', 'show_title' => 'Detail Order ~ :number', 'content' => 'When customers place orders, this is where all the processing will be done, the management of refunds and the tracking of their order.', diff --git a/packages/admin/resources/lang/en/pages/products.php b/packages/admin/resources/lang/en/pages/products.php index 9d3ac69d9..25a590183 100755 --- a/packages/admin/resources/lang/en/pages/products.php +++ b/packages/admin/resources/lang/en/pages/products.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Products', + 'single' => 'product', 'title' => 'Manage Catalog', 'content' => 'Get closer to your first sale by adding and manage products.', 'about_pricing' => 'About pricing display', @@ -18,18 +20,20 @@ 'product_can_returned_help_text' => 'Users have the option of returning this product if there is a problem or dissatisfaction.', 'product_shipped' => 'This product will be shipped', 'product_shipped_help_text' => 'Reassure to fill in the information concerning the shipment of the product.', - 'weight_dimension_help_text' => 'Used to calculate shipping charges during checkout and to label prices during order processing.', 'status' => 'Product status', 'visible_help_text' => 'This product will be hidden from all sales channels.', 'availability_description' => 'Specify a publication date so that your product are scheduled on your store.', 'product_associations' => 'Associations', - 'product_categories' => 'Product categories', - 'no_category' => 'No Categories', - 'no_category_text' => 'Get started by creating a new category.', - 'new_category' => 'New category', 'related_products' => 'Related Products', 'quantity_available' => 'Quantity Available', 'current_qty_inventory' => 'Current quantity on this inventory', + 'stock_inventory_heading' => 'Stock & Inventory', + 'stock_inventory_description' => 'Configure the inventory and stock for this :item', + 'images_helpText' => 'Add images to your product.', + 'variant_images_helpText' => 'Add images to your variant.', + 'thumbnail_helpText' => 'Used to represent your product during checkout, social sharing and more.', + 'weight_dimension' => 'Weight and Dimension', + 'weight_dimension_help_text' => 'Used to calculate shipping charges during checkout and to label prices during order processing.', 'modals' => [ 'title' => 'Delete this :item', @@ -42,6 +46,8 @@ ], 'variants' => [ + 'menu' => 'Variants', + 'single' => 'variant', 'title' => 'Products variations', 'description' => 'All variations of your product. The variations can each have their stock and price.', 'add' => 'Add variant', @@ -51,12 +57,6 @@ 'search_placeholder' => 'Search product variant', 'variant_information' => 'Variant information', - 'actions' => [ - 'update' => 'Update variant', - 'update_stock' => 'Update stock', - 'manage_inventory' => 'Manage Inventories', - ], - 'modal' => [ 'title' => 'About the variation', 'description' => 'Variant name and price. If the price is empty, the price of the product will be applied.', @@ -103,11 +103,6 @@ 'added' => 'Attribute Added', 'added_message' => 'You have successfully added an attribute to this product!', ], - - 'modals' => [ - 'title' => 'Add new attribute with value', - 'input_placeholder' => 'Select the attribute to add', - ], ], 'inventory' => [ @@ -145,8 +140,6 @@ ], 'notifications' => [ - 'create' => 'Product successfully added!', - 'update' => 'Product successfully updated!', 'media_update' => 'Product media updated!', 'replicated' => 'Product replicated!', 'stock_update' => 'Product Stock successfully updated!', @@ -159,7 +152,4 @@ 'remove_related' => 'The product has successfully removed from the related products!', ], - 'images_helpText' => 'Add images to your product.', - 'variant_images_helpText' => 'Add images to your variant.', - 'thumbnail_helpText' => 'Used to represent your product during checkout, social sharing and more.', ]; diff --git a/packages/admin/resources/lang/en/pages/reviews.php b/packages/admin/resources/lang/en/pages/reviews.php new file mode 100644 index 000000000..c1bb5ee2c --- /dev/null +++ b/packages/admin/resources/lang/en/pages/reviews.php @@ -0,0 +1,10 @@ + 'Reviews', + 'single' => 'review', + +]; diff --git a/packages/admin/resources/lang/en/pages/settings/settings.php b/packages/admin/resources/lang/en/pages/settings/global.php similarity index 54% rename from packages/admin/resources/lang/en/pages/settings/settings.php rename to packages/admin/resources/lang/en/pages/settings/global.php index 55c9f77f2..00716b705 100755 --- a/packages/admin/resources/lang/en/pages/settings/settings.php +++ b/packages/admin/resources/lang/en/pages/settings/global.php @@ -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.', @@ -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.', diff --git a/packages/admin/resources/lang/en/pages/settings/staff.php b/packages/admin/resources/lang/en/pages/settings/staff.php new file mode 100644 index 000000000..9de5486bf --- /dev/null +++ b/packages/admin/resources/lang/en/pages/settings/staff.php @@ -0,0 +1,36 @@ + '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?', + +]; diff --git a/packages/admin/resources/lang/en/words.php b/packages/admin/resources/lang/en/words.php index cb185b7d5..e4397531a 100755 --- a/packages/admin/resources/lang/en/words.php +++ b/packages/admin/resources/lang/en/words.php @@ -4,19 +4,9 @@ return [ - 'customer' => 'Customer', - 'product' => 'Product', - 'brand' => 'Brand', - 'collection' => 'Collection', - 'category' => 'Category', - 'attribute' => 'Attribute', - 'attributes' => 'Attributes', - 'discount' => 'Discount', - 'review' => 'Review', 'account' => 'Account', 'users' => 'Users', 'user' => 'User', - 'analytics' => 'Analytics', 'system' => 'System', 'purchased' => 'Purchased', 'total' => 'Total', @@ -27,8 +17,6 @@ 'not_available' => 'Not available', 'available' => 'Available', 'stock' => 'Stock', - 'permission' => 'Permission', - 'role' => 'Role', 'payment_method' => 'Payment Method', 'shipping_method' => 'Shipping method', @@ -52,19 +40,9 @@ 'pricing' => 'Pricing', 'price' => 'Price', - 'location' => 'Inventory', - 'locations' => 'Inventories', 'dismiss' => 'Dismiss', - 'weight_dimension' => 'Weight and Dimension', + 'published_on' => 'Will be published on:', - 'unity' => [ - 'm' => 'm', - 'cm' => 'cm', - 'kg' => 'kg', - 'g' => 'g', - 'l' => 'l', - 'ml' => 'ml', - ], 'variants' => 'Variants', 'variant' => 'Variant', @@ -73,23 +51,14 @@ 'out_stock' => 'out stock', 'event' => 'Event', 'adjustment' => 'Adjustment', - 'is_enabled' => 'Is Enabled', + 'is_enabled' => 'Enabled', + 'is_disabled' => 'Disabled', - 'selected_tab' => 'Selected tab', 'set_visibility' => 'Set :name visibility for the customers.', 'set_global_visibility' => 'Setup page visibility for the customers.', 'log_out' => 'Log out', 'browser_platform' => ':browser on :platform', - 'actions_label' => [ - 'add' => 'Add', - 'add_new' => 'New :name', - 'update' => 'Update :name', - 'edit' => 'Edit :name', - 'show' => 'View :name', - 'delete' => 'Delete :name', - ], - 'generate' => 'Generate', 'male' => 'Male', 'female' => 'Female', @@ -111,7 +80,6 @@ 'images' => 'Images', 'step' => 'Step :number', - 'settings' => 'Settings', 'environment' => 'Environnement', 'discount_use' => '{1} Limit of 1 use|[2,*] Limit of :count uses', @@ -171,6 +139,7 @@ 'slug' => 'SEO', 'description' => 'Improve your ranking and how your :name page will appear in search engines results.', 'sub_description' => 'Here is a preview of what an search engine can display, play with it!', + 'characters' => '160 characters', ], 'other' => ' other(s)', @@ -178,5 +147,6 @@ 'feature_enabled' => 'You must enable :feature to activate this section.', 'amount' => 'Amount', 'soon' => 'Soon', + 'learn_more' => 'Learn more about', ]; diff --git a/packages/admin/resources/lang/fr/components.php b/packages/admin/resources/lang/fr/components.php deleted file mode 100755 index bcf91e2b6..000000000 --- a/packages/admin/resources/lang/fr/components.php +++ /dev/null @@ -1,53 +0,0 @@ - [ - 'browse' => 'Parcourir les fichiers', - 'file' => 'Télécharger un fichier', - 'drag_n_drop' => 'ou glisser-déposer', - 'type_size' => 'PNG, JPG, GIF jusqu\'à :size MB', - 'uploading' => 'Téléchargement...', - ], - - 'seo' => [ - 'title' => 'Aperçu de la liste des moteurs de recherche', - 'edit_action' => 'Modifier l\'aperçu SEO', - 'description' => 'Ajoutez un titre et une description pour voir comment cette collection pourrait apparaître dans une liste de moteurs de recherche.', - 'characters' => '160 caractères', - ], - - 'modal' => [ - 'content' => 'Pour votre sécurité, veuillez confirmer votre mot de passe pour continuer.', - ], - - 'wip' => [ - 'title' => 'Nous développons actuellement cette fonctionnalité.', - 'description' => 'Pour rester informé de l\'avancée du projet et être informé lorsque cette fonctionnalité sera terminée, abonnez-vous à notre newsletter.', - 'sign_up' => 'Inscrivez-vous pour être averti quand elle sera prête.', - ], - - 'tables' => [ - 'status' => [ - 'delete' => 'Suppression', - 'updated' => 'Mis à jour', - 'verified' => 'Vérification', - 'visibility' => 'Visibilité', - ], - - 'messages' => [ - 'delete' => ':name a été supprimé avec succès!', - 'enabled' => ':name a été activé avec succès!', - 'disabled' => ':name a été désactivé avec succès!', - 'verified' => ':name a été vérifié avec succès!', - 'approved' => ':name a été approuvé avec succès!', - 'disapproved' => ':name a été approuvé désapprouvé avec succès!', - 'visibility' => 'La visibilité du produit :name a été modifié avec succès!', - ], - ], - - 'learn_more' => 'En savoir plus', - -]; diff --git a/packages/admin/resources/lang/fr/forms.php b/packages/admin/resources/lang/fr/forms.php index 454c1c1fd..cd8d04937 100644 --- a/packages/admin/resources/lang/fr/forms.php +++ b/packages/admin/resources/lang/fr/forms.php @@ -107,14 +107,6 @@ 'role' => 'Rôle', 'access' => 'Accès', 'content' => 'Contenu', - 'sender_name' => 'Nom de l\'expéditeur', - 'sender_email' => 'Email de l\'expéditeur', - 'username' => 'Nom d\'utilisateur', - 'mail_method' => 'Méthode d\'envoi', - 'mail_host' => 'Hébergeur de courrier', - 'mail_port' => 'Port de messagerie', - 'encryption_protocol' => 'Protocole de cryptage', - 'markdown' => 'Markdown', 'force' => 'Force', 'template' => 'Modèle', 'ga_tracking_id' => 'Google Analytics Tracking ID', @@ -136,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', @@ -153,13 +146,10 @@ 'clear' => 'Réinitialiser', 'close' => 'Fermer', 'delete' => 'Supprimer', - 'deleted' => 'Supprimé', 'disable' => 'Désactiver', - 'disabled' => 'Désactivé', 'edit' => 'Éditer', 'view' => 'Voir', 'enable' => 'Activer', - 'enabled' => 'Activé', 'export' => 'Exportez', 'nevermind' => 'Peu importe', 'update' => 'Modifier', @@ -168,10 +158,9 @@ 'remove' => 'Retirer', 'remove_all' => 'Tout supprimer', 'enabled_two_factor' => 'Activer deux facteurs', - 'regenerate' => 'Régénérer les codes de récupération', + 'regenerate_code' => 'Régénérer les codes de récupération', 'show_recovery_code' => 'Afficher les codes de récupération', 'archive' => 'Archiver', - 'archived' => 'Archivé', 'more_actions' => 'Autres actions', 'mark_paid' => 'Marqué comme payé', 'mark_complete' => 'Marqué complète', @@ -179,9 +168,7 @@ 'send' => 'Envoyer', 'logout_session' => 'Déconnecter les autres sessions', 'approve' => 'Approuver', - 'approved' => 'Approuvé', 'disapprove' => 'Désapprouver', - 'disapproved' => 'Désapprouvé', 'create' => 'Créer', 'upload' => 'Télécharger', 'verified' => 'Vérifié', @@ -189,6 +176,11 @@ 'next' => 'Suivant', 'back' => 'Retour', 'theme_switcher' => 'Activer :label theme', + + 'add_label' => 'Ajout :label', + 'edit_label' => 'Éditer :label', + 'delete_label' => 'Supprimer :label', + 'show_label' => 'Afficher :label', ], 'error' => 'Votre soumission contient des erreurs. Veuillez réessayer', diff --git a/packages/admin/resources/lang/fr/layout.php b/packages/admin/resources/lang/fr/layout.php index f5855d773..457e0d457 100755 --- a/packages/admin/resources/lang/fr/layout.php +++ b/packages/admin/resources/lang/fr/layout.php @@ -5,33 +5,22 @@ return [ 'sidebar' => [ - 'dashboard' => 'Tableau de bord', - 'orders' => 'Commandes', - 'brands' => 'Marques', - 'categories' => 'Catégories', - 'collections' => 'Collections', - 'customers' => 'Clients', - 'reviews' => 'Avis', - 'discounts' => 'Coupons', - 'products' => 'Produits', 'catalog' => 'Catalogue', - 'shop' => 'Magasin', 'sales' => 'Ventes', ], + 'back' => 'Retour', + 'view_site' => 'Voir le site', + 'meta_title' => 'Administration Shopper', + 'account_dropdown' => [ 'sign_in' => 'Connecté avec', 'add_product' => 'Ajouter produit', 'personal_account' => 'Compte Personnel', 'manage_users' => 'Gestions des Admins', - 'settings' => 'Paramètres', 'sign_out' => 'Déconnexion', ], - 'back' => 'Retour', - 'view_site' => 'Voir le site', - 'meta_title' => 'Administration Shopper', - 'status' => [ 'delete' => 'Suppression', 'success' => 'Succès', diff --git a/packages/admin/resources/lang/fr/notifications.php b/packages/admin/resources/lang/fr/notifications.php index ddbbcdb2f..82df410aa 100755 --- a/packages/admin/resources/lang/fr/notifications.php +++ b/packages/admin/resources/lang/fr/notifications.php @@ -4,12 +4,16 @@ return [ - 'actions' => [ - 'save' => ':item enregistré avec succès', - 'create' => ':item ajouté avec succès', - 'update' => ':item mis à jour avec succès', - 'remove' => ':item supprimé(e) avec succès', - ], + 'save' => ':item enregistré avec succès', + 'create' => ':item ajouté avec succès', + 'update' => ':item mis à jour avec succès', + 'delete' => ':item supprimé(e) avec succès', + 'enabled' => ':item activé(e) avec succès', + 'disabled' => ':item désactivé(e) avec succès', + 'verified' => ':item vérifié(e) avec succès', + 'approved' => ':item approuvé(e) avec succès', + 'disapproved' => ':item désapprouvé(e) avec succès', + 'visibility' => 'Visibilité pour :item a été modifiée avec succès', 'attributes' => [ 'remove' => 'L\'attribut a été supprimé avec succès', diff --git a/packages/admin/resources/lang/fr/pages/account.php b/packages/admin/resources/lang/fr/pages/account.php deleted file mode 100644 index b80286864..000000000 --- a/packages/admin/resources/lang/fr/pages/account.php +++ /dev/null @@ -1,7 +0,0 @@ - 'Attributs', + 'single' => 'attribut', 'title' => 'Gérer les attributs', 'content' => 'Ajoutez des attributs personnalisés à votre produit pour afficher des informations', 'add' => 'Ajouter un attribut', diff --git a/packages/admin/resources/lang/fr/pages/brands.php b/packages/admin/resources/lang/fr/pages/brands.php index 860a4c9a6..20f69a0ea 100755 --- a/packages/admin/resources/lang/fr/pages/brands.php +++ b/packages/admin/resources/lang/fr/pages/brands.php @@ -4,9 +4,10 @@ return [ + 'menu' => 'Marques', + 'single' => 'marque', 'title' => 'Organisez vos produits via des marques', 'content' => 'Créez des marques et organisez vos produits pour faciliter la recherche de produits par les utilisateurs.', - 'empty_brand' => 'Aucune marque', ]; diff --git a/packages/admin/resources/lang/fr/pages/categories.php b/packages/admin/resources/lang/fr/pages/categories.php index 190fb839f..2330067d9 100755 --- a/packages/admin/resources/lang/fr/pages/categories.php +++ b/packages/admin/resources/lang/fr/pages/categories.php @@ -4,9 +4,10 @@ return [ + 'menu' => 'Catégories', + 'single' => 'catégorie', 'title' => 'Organisez vos produits en catégories', 'content' => 'Créez et gérez toutes vos catégories de magasins pour aider vos clients à trouver facilement des produits.', - 'empty_selector' => '--- Aucune catégorie ---', 'empty_parent' => 'Pas de catégorie parente', 'parent' => 'dans :parent', diff --git a/packages/admin/resources/lang/fr/pages/collections.php b/packages/admin/resources/lang/fr/pages/collections.php index d0cd93ab7..352acdd69 100755 --- a/packages/admin/resources/lang/fr/pages/collections.php +++ b/packages/admin/resources/lang/fr/pages/collections.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Collections', + 'single' => 'collection', 'title' => 'Organisez vos produits en différentes collections', 'content' => 'Créez et gérez toutes vos collections pour aider vos clients à trouver facilement des groupes ou des types de produits.', 'automatic' => 'Automatique', diff --git a/packages/admin/resources/lang/fr/pages/customers.php b/packages/admin/resources/lang/fr/pages/customers.php index 876089a94..4535b527a 100755 --- a/packages/admin/resources/lang/fr/pages/customers.php +++ b/packages/admin/resources/lang/fr/pages/customers.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Clients', + 'single' => 'client', 'title' => 'Gérer les commandes et les détails des clients', 'content' => 'C\'est ici que vous pouvez gérer les informations de vos clients et consulter leur historique d\'achat.', diff --git a/packages/admin/resources/lang/fr/pages/dashboard.php b/packages/admin/resources/lang/fr/pages/dashboard.php index 12619af3c..0ba52056d 100755 --- a/packages/admin/resources/lang/fr/pages/dashboard.php +++ b/packages/admin/resources/lang/fr/pages/dashboard.php @@ -4,6 +4,7 @@ return [ + 'menu' => 'Tableau de bord', 'welcome_message' => 'Bienvenue sur le tableau de bord de Shopper', 'header' => 'Commencez par les éléments de base de votre boutique en ligne', 'description' => 'Pour commencer à construire votre nouvelle boutique avec Laravel Shopper, nous vous recommandons de commencer par ces étapes. diff --git a/packages/admin/resources/lang/fr/pages/discounts.php b/packages/admin/resources/lang/fr/pages/discounts.php index 4c950487b..66079a4a5 100755 --- a/packages/admin/resources/lang/fr/pages/discounts.php +++ b/packages/admin/resources/lang/fr/pages/discounts.php @@ -4,14 +4,11 @@ return [ + 'menu' => 'Réductions', + 'single' => 'réduction', 'title' => 'Gérer les remises et les promotions', 'description' => 'Créez et gérez les codes de réduction et de promotion qui s\'appliquent à la caisse ou aux commandes des clients.', - 'actions' => [ - 'create' => 'Créer un code', - 'update' => 'Modifier le code :code', - ], - 'empty_message' => 'Aucune réduction trouvée...', 'search' => 'Rechercher un code de réduction', 'name_helptext' => 'Les clients saisiront ce code de réduction lors du paiement.', diff --git a/packages/admin/resources/lang/fr/pages/orders.php b/packages/admin/resources/lang/fr/pages/orders.php index 9ab62e225..6e993540b 100755 --- a/packages/admin/resources/lang/fr/pages/orders.php +++ b/packages/admin/resources/lang/fr/pages/orders.php @@ -3,6 +3,9 @@ declare(strict_types=1); return [ + + 'menu' => 'Commandes', + 'single' => 'commande', 'title' => 'Gérer les commandes des clients', 'show_title' => 'Détail de la commande ~ :number', 'content' => "Lorsque les clients passent des commandes, c'est là que s'effectuent tous les traitements, la gestion des remboursements et le suivi de leurs commandes.", diff --git a/packages/admin/resources/lang/fr/pages/products.php b/packages/admin/resources/lang/fr/pages/products.php index 7c156dfb4..6509c9b0d 100755 --- a/packages/admin/resources/lang/fr/pages/products.php +++ b/packages/admin/resources/lang/fr/pages/products.php @@ -4,6 +4,8 @@ return [ + 'menu' => 'Produits', + 'single' => 'produit', 'title' => 'Gérer le catalogue', 'content' => 'Rapprochez-vous de votre première vente en ajoutant et en gérant des produits.', 'about_pricing' => 'A propos des prix', @@ -18,18 +20,20 @@ 'product_can_returned_help_text' => 'Les utilisateurs ont la possibilité de retourner ce produit en cas de problème ou d\'insatisfaction.', 'product_shipped' => 'Ce produit sera expédié', 'product_shipped_help_text' => 'Renseignez les informations concernant l\'expédition du produit.', - 'weight_dimension_help_text' => 'Utilisé pour calculer les frais d\'expédition lors du passage à la caisse et pour étiqueter les prix lors du traitement des commandes.', 'status' => 'Statut du produit', 'visible_help_text' => 'Ce produit sera caché de tous les canaux de vente.', 'availability_description' => 'Spécifiez une date de publication pour que vos produits soient programmés sur votre boutique.', 'product_associations' => 'Catégorisation', - 'product_categories' => 'Catégories du produit', - 'no_category' => 'Aucune catégorie', - 'no_category_text' => 'Commencez par créer une nouvelle catégorie.', - 'new_category' => 'Nouvelle catégorie', 'related_products' => 'Produits apparentés', 'quantity_available' => 'Quantité disponible', 'current_qty_inventory' => 'Quantité actuelle de cet inventaire', + 'stock_inventory_heading' => 'Stock & Inventaire', + 'stock_inventory_description' => "Configurer l'inventaire et le stock pour ce(tte) :item", + 'images_helpText' => 'Ajouter des images à votre produit.', + 'variant_images_helpText' => 'Ajouter des images à votre variante.', + 'thumbnail_helpText' => 'Utilisé pour représenter votre produit lors du paiement, du partage social, et plus encore.', + 'weight_dimension' => 'Poids et dimensions', + 'weight_dimension_help_text' => 'Utilisé pour calculer les frais d\'expédition lors du passage à la caisse et pour étiqueter les prix lors du traitement des commandes.', 'modals' => [ 'title' => 'Supprimer ce/cette :item', @@ -42,6 +46,8 @@ ], 'variants' => [ + 'menu' => 'Variantes', + 'single' => 'variante', 'title' => 'Variations de produits', 'description' => 'Toutes les variantes de votre produit. Les variations peuvent avoir chacune leur stock et leur prix.', 'add' => 'Ajouter une variante', @@ -51,12 +57,6 @@ 'search_placeholder' => 'Rechercher une variante du produit', 'variant_information' => 'Informations sur la variante', - 'actions' => [ - 'update' => 'Variante de mise à jour', - 'update_stock' => 'Mise à jour du stock', - 'manage_inventory' => 'Gérer les inventaires', - ], - 'modal' => [ 'title' => 'À propos de la variation', 'description' => 'Nom et prix de la variante. Si le prix est vide, le prix du produit sera appliqué.', @@ -103,11 +103,6 @@ 'added' => 'Attribut ajouté', 'added_message' => 'Vous avez ajouté avec succès un attribut à ce produit!', ], - - 'modals' => [ - 'title' => 'Ajouter un nouvel attribut avec une valeur', - 'input_placeholder' => 'Sélectionnez l\'attribut à ajouter', - ], ], 'inventory' => [ @@ -145,8 +140,6 @@ ], 'notifications' => [ - 'create' => 'Produit ajouté avec succès !', - 'update' => 'Produit mis à jour avec succès !', 'media_update' => 'Images du produit mise à jour!', 'replicated' => 'Produit dupliqué!', 'stock_update' => 'Le stock de produits a été mis à jour avec succès !', @@ -159,8 +152,4 @@ 'remove_related' => 'Le produit a été supprimé avec succès des produits connexes !', ], - 'images_helpText' => 'Ajouter des images à votre produit.', - 'variant_images_helpText' => 'Ajouter des images à votre variante.', - 'thumbnail_helpText' => 'Utilisé pour représenter votre produit lors du paiement, du partage social, et plus encore.', - ]; diff --git a/packages/admin/resources/lang/fr/pages/reviews.php b/packages/admin/resources/lang/fr/pages/reviews.php new file mode 100644 index 000000000..bcd7252ae --- /dev/null +++ b/packages/admin/resources/lang/fr/pages/reviews.php @@ -0,0 +1,10 @@ + 'Avis', + 'single' => 'avis', + +]; diff --git a/packages/admin/resources/lang/fr/pages/settings/settings.php b/packages/admin/resources/lang/fr/pages/settings/global.php similarity index 52% rename from packages/admin/resources/lang/fr/pages/settings/settings.php rename to packages/admin/resources/lang/fr/pages/settings/global.php index cba580eea..b7ce17513 100755 --- a/packages/admin/resources/lang/fr/pages/settings/settings.php +++ b/packages/admin/resources/lang/fr/pages/settings/global.php @@ -4,12 +4,16 @@ 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.', @@ -17,55 +21,16 @@ '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.", diff --git a/packages/admin/resources/lang/fr/pages/settings/staff.php b/packages/admin/resources/lang/fr/pages/settings/staff.php new file mode 100644 index 000000000..672a47937 --- /dev/null +++ b/packages/admin/resources/lang/fr/pages/settings/staff.php @@ -0,0 +1,36 @@ + '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 ?', + +]; diff --git a/packages/admin/resources/lang/fr/words.php b/packages/admin/resources/lang/fr/words.php index 844117378..fa1d549c8 100755 --- a/packages/admin/resources/lang/fr/words.php +++ b/packages/admin/resources/lang/fr/words.php @@ -4,19 +4,9 @@ return [ - 'customer' => 'Client', - 'product' => 'Produit', - 'brand' => 'Marque', - 'collection' => 'Collection', - 'category' => 'Catégorie', - 'attribute' => 'Attribut', - 'attributes' => 'Attributs', - 'discount' => 'Remise', - 'review' => 'Avis', 'account' => 'Compte', 'users' => 'Utilisateurs', 'user' => 'Utilisateur', - 'analytics' => 'Analytics', 'system' => 'Système', 'purchased' => 'Acheté', 'total' => 'Total', @@ -27,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', @@ -52,19 +40,9 @@ 'pricing' => 'Tarification', 'price' => 'Prix', - 'location' => 'Inventaire', - 'locations' => 'Inventaires', 'dismiss' => 'Fermer', - 'weight_dimension' => 'Poids et dimensions', + 'published_on' => 'Sera publié le:', - 'unity' => [ - 'm' => 'm', - 'cm' => 'cm', - 'kg' => 'kg', - 'g' => 'g', - 'l' => 'l', - 'ml' => 'ml', - ], 'variants' => 'Variantes', 'variant' => 'Variante', @@ -73,22 +51,14 @@ 'out_stock' => 'stock épuisé', 'event' => 'Action', 'adjustment' => 'Ajustement', - 'is_enabled' => 'Est activé', + 'is_enabled' => 'Activé', + 'is_disabled' => 'Désactivé', - 'selected_tab' => 'Onglet sélectionné', 'set_visibility' => 'Rendre visible :name pour les clients.', 'set_global_visibility' => 'Visibilité de la page pour les clients.', 'log_out' => 'Se déconnecter', 'browser_platform' => ':browser sur :platform', - 'actions_label' => [ - 'update' => 'Modifier :name', - 'add_new' => 'Ajout :name', - 'edit' => 'Éditer :name', - 'show' => 'Afficher :name', - 'delete' => 'Supprimer :name', - ], - 'generate' => 'Générer', 'male' => 'Homme', 'female' => 'Femme', @@ -110,7 +80,6 @@ 'images' => 'Images', 'step' => 'Étape :number', - 'settings' => 'Paramètres', 'environment' => 'Environnement', 'discount_use' => '{1} Limité à une utilisation|[2,*] Limité à :count utilisations', @@ -170,6 +139,7 @@ 'slug' => 'SEO', 'description' => 'Améliorez votre classement et la façon dont votre page :name apparaîtra dans les résultats des moteurs de recherche.', 'sub_description' => 'Voici un aperçu du résultat que peut donner un moteur de recherche, jouez avec !', + 'characters' => '160 caractères', ], 'other' => ' autre(s)', @@ -177,5 +147,6 @@ 'feature_enabled' => 'Vous devez activé la fonctionnalité :feature pour activer cette section.', 'amount' => 'Montant', 'soon' => 'Bientôt', + 'learn_more' => 'En savoir plus', ]; diff --git a/packages/admin/resources/views/auth/two-factor-login.blade.php b/packages/admin/resources/views/auth/two-factor-login.blade.php index 71dd6f4d2..580ac6319 100755 --- a/packages/admin/resources/views/auth/two-factor-login.blade.php +++ b/packages/admin/resources/views/auth/two-factor-login.blade.php @@ -29,11 +29,7 @@ class="mt-1 text-center text-sm leading-5 text-gray-500 dark:text-gray-400"
@csrf - +