Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legals translations #173

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/lang/en/pages/attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'title' => 'Manage Attributes',
'content' => 'Add custom attributes to your product to display for informations',
'add' => 'Add attribute',
'update' => 'Update attribute :attribute',
'searchable_description' => 'You can use this attribute to search and filter product.',
'filtrable_description' => 'You can use this attribute as a filter on your front store.',
'attribute_visibility' => 'Set attribute visibility for the customers.',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/pages/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

return [
'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.',
'total_price_description' => 'This price does not include applicable taxes on the product or on the customer.',

Expand Down
9 changes: 9 additions & 0 deletions resources/lang/en/pages/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,13 @@
'pixel_description' => 'Facebook Pixel helps you create ad campaigns to find new customers who are most like your buyers.',
'no_json' => 'No json file added',
],

'legal' => [
'title' => 'Legal policy',
'refund' => 'Refund policy',
'privacy' => 'Privacy policy',
'shipping' => 'Shipping policy',
'terms_of_use' => 'Terms of use',
'summary' => 'Define the :policy to which all users and consumers of the products in your store will be subject.',
],
];
1 change: 1 addition & 0 deletions resources/lang/en/words.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

'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',

Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/pages/attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'title' => 'Gérer les attributs',
'content' => 'Ajoutez des attributs personnalisés à votre produit pour afficher des informations',
'add' => 'Ajouter un attribut',
'update' => 'Modifier l\'attribut :attribute',
'searchable_description' => 'Vous pouvez utiliser cet attribut pour rechercher et filtrer des produits.',
'filtrable_description' => 'Vous pouvez utiliser cet attribut comme filtre dans votre boutique en ligne.',
'attribute_visibility' => 'Définir la visibilité des attributs pour les clients.',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/pages/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

return [
'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.",
'total_price_description' => 'Ce prix ne comprend pas les taxes applicables au produit ou au client.',

Expand Down
9 changes: 9 additions & 0 deletions resources/lang/fr/pages/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,13 @@
'pixel_description' => 'Facebook Pixel vous aide à créer des campagnes publicitaires pour trouver de nouveaux clients qui ressemblent le plus à vos acheteurs.',
'no_json' => 'Aucun fichier json n\'a été ajouté',
],

'legal' => [
'title' => 'Politique juridique',
'refund' => 'Politique de remboursement',
'privacy' => 'Politique de confidentialité',
'shipping' => 'Politique de livraison',
'terms_of_use' => 'Conditions générales utilisation',
'summary' => 'Définissez :policy à laquelle seront soumis tous les utilisateurs et consommateurs des produits de votre magasin.',
],
];
1 change: 1 addition & 0 deletions resources/lang/fr/words.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

'selected_tab' => 'Onglet sélectionné',
'set_visibility' => 'Rendre visible la\le :name pour les clients.',
'set_global_visibility' => 'Visibilité de la page pour les clients.',
'log_out' => 'Se déconnecter',
'browser_platform' => ':browser sur :platform',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>

<x-slot name="title">
{{ __('Add new payment method') }}
{{ __('shopper::pages/settings.payment.create_payment') }}
</x-slot>

<x-slot name="content">
Expand Down
18 changes: 10 additions & 8 deletions resources/views/livewire/settings/legal/privacy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-bold leading-6 text-secondary-900 dark:text-white">{{ __('Privacy policy') }}</h3>
<h3 class="text-lg font-bold leading-6 text-secondary-900 dark:text-white">
{{ __('shopper::pages/settings.legal.privacy') }}
</h3>
<p class="mt-4 text-sm leading-5 text-secondary-500 dark:text-secondary-400">
{{ __('Define the privacy policy to which all users and consumers of the products in your store will be subject.') }}
{{ __('shopper::pages/settings.legal.summary', ['policy' => __('shopper::pages/settings.legal.privacy')]) }}
</p>
</div>
</div>
Expand All @@ -14,21 +16,21 @@
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6">
<div class="flex items-center justify-between">
<span class="grow flex flex-col" id="toggleLabel">
<p class="grow flex flex-col" id="toggleLabel">
<span class="text-sm leading-5 font-medium text-secondary-900 dark:text-white">
{{ __('Enabled') }}
{{ __('shopper::layout.forms.actions.enabled') }}
</span>
<span class="text-sm leading-normal text-secondary-500 dark:text-secondary-400">
{{ __('Setup page visibility for the customers.') }}
{{ __('shopper::words.set_global_visibility') }}
</span>
</span>
</p>
<span role="checkbox" tabindex="0" @click="on = !on" @keydown.space.prevent="on = !on" :aria-checked="on.toString()" aria-checked="false" aria-labelledby="toggleLabel" x-data="{ on: @entangle('isEnabled') }" x-bind:class="{ 'bg-secondary-200 dark:bg-secondary-700': !on, 'bg-primary-600': on }" class="bg-secondary-200 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer">
<span aria-hidden="true" x-bind:class="{ 'translate-x-5': on, 'translate-x-0': !on }" class="translate-x-0 inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"></span>
</span>
</div>
</div>
<div class="col-span-6">
<x-shopper::forms.group :label="__('Content')" for="privacy-content">
<x-shopper::forms.group :label="__('shopper::layout.forms.label.content')" for="privacy-content">
<livewire:shopper-forms.trix :value="$content" />
</x-shopper::forms.group>
</div>
Expand All @@ -38,7 +40,7 @@
<span class="inline-flex rounded-md shadow-sm">
<x-shopper::buttons.primary type="button" wire:click="store" wire:loading.attr="disabled">
<x-shopper::loader wire:loading wire:target="store" class="text-white" />
{{ __('layout.forms.actions.save') }}
{{ __('shopper::layout.forms.actions.save') }}
</x-shopper::buttons.primary>
</span>
</div>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/livewire/settings/legal/refund.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="md:col-span-1">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-bold leading-6 text-secondary-900 dark:text-white">
{{ __('Refund policy') }}
{{ __('shopper::pages/settings.legal.refund') }}
</h3>
<p class="mt-4 text-sm leading-5 text-secondary-500 dark:text-secondary-400">
{{ __('Define the refund policy to which all users and consumers of the products in your store will be subject.') }}
{{ __('shopper::pages/settings.legal.summary', ['policy' => __('shopper::pages/settings.legal.refund')]) }}
</p>
</div>
</div>
Expand All @@ -18,10 +18,10 @@
<div class="flex items-center justify-between">
<span class="grow flex flex-col" id="toggleLabel">
<span class="text-sm leading-5 font-medium text-secondary-900 dark:text-white">
{{ __('Enabled') }}
{{ __('shopper::layout.forms.actions.enabled') }}
</span>
<span class="text-sm leading-normal text-secondary-500 dark:text-secondary-400">
{{ __('Setup page visibility for the customers.') }}
{{ __('shopper::words.set_global_visibility') }}
</span>
</span>
<span role="checkbox" tabindex="0" @click="on = !on" @keydown.space.prevent="on = !on" :aria-checked="on.toString()" aria-checked="false" aria-labelledby="toggleLabel" x-data="{ on: @entangle('isEnabled') }" x-bind:class="{ 'bg-secondary-200 dark:bg-secondary-700': !on, 'bg-primary-600': on }" class="bg-secondary-200 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:shadow-outline-primary">
Expand All @@ -30,7 +30,7 @@
</div>
</div>
<div class="col-span-6">
<x-shopper::forms.group :label="__('Content')" for="content">
<x-shopper::forms.group :label="__('shopper::layout.forms.label.content')" for="content">
<livewire:shopper-forms.trix :value="$content" />
</x-shopper::forms.group>
</div>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/livewire/settings/legal/shipping.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="md:col-span-1">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-bold leading-6 text-secondary-900 dark:text-white">
{{ __('Shipping policy') }}
{{ __('shopper::pages/settings.legal.shipping') }}
</h3>
<p class="mt-4 text-sm leading-5 text-secondary-500 dark:text-secondary-400">
{{ __('Define the shipping policy to which all users and consumers of the products in your store will be subject.') }}
{{ __('shopper::pages/settings.legal.summary', ['policy' => __('shopper::pages/settings.legal.shipping')]) }}
</p>
</div>
</div>
Expand All @@ -18,10 +18,10 @@
<div class="flex items-center justify-between">
<span class="grow flex flex-col" id="toggleLabel">
<span class="text-sm leading-5 font-medium text-secondary-900 dark:text-white">
{{ __('Enabled') }}
{{ __('shopper::layout.forms.actions.enabled') }}
</span>
<span class="text-sm leading-normal text-secondary-500 dark:text-secondary-400">
{{ __('Setup page visibility for the customers.') }}
{{ __('shopper::words.set_global_visibility') }}
</span>
</span>
<span role="checkbox" tabindex="0" @click="on = !on" @keydown.space.prevent="on = !on" :aria-checked="on.toString()" aria-checked="false" aria-labelledby="toggleLabel" x-data="{ on: @entangle('isEnabled') }" x-bind:class="{ 'bg-secondary-200 dark:bg-secondary-700': !on, 'bg-primary-600': on }" class="bg-secondary-200 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:shadow-outline-primary">
Expand All @@ -30,7 +30,7 @@
</div>
</div>
<div class="col-span-6">
<x-shopper::forms.group :label="__('Content')" for="shipping-content">
<x-shopper::forms.group :label="__('shopper::layout.forms.label.content')" for="shipping-content">
<livewire:shopper-forms.trix :value="$content" />
</x-shopper::forms.group>
</div>
Expand Down
14 changes: 7 additions & 7 deletions resources/views/livewire/settings/legal/terms.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div class="md:col-span-1">
<div class="px-4 sm:px-0">
<h3 class="text-lg font-bold leading-6 text-secondary-900 dark:text-white">
{{ __('Terms of use') }}
{{ __('shopper::pages/settings.legal.terms_of_use') }}
</h3>
<p class="mt-4 text-sm leading-5 text-secondary-500 dark:text-secondary-400">
{{ __('Define the terms of use to which all users and consumers of the products in your store will be subject.') }}
{{ __('shopper::pages/settings.legal.summary', ['policy' => __('shopper::pages/settings.legal.terms_of_use')]) }}
</p>
</div>
</div>
Expand All @@ -16,21 +16,21 @@
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6">
<div class="flex items-center justify-between">
<span class="grow flex flex-col" id="toggleLabel">
<p class="grow flex flex-col" id="toggleLabel">
<span class="text-sm leading-5 font-medium text-secondary-900 dark:text-white">
{{ __('Enabled') }}
{{ __('shopper::layout.forms.actions.enabled') }}
</span>
<span class="text-sm leading-normal text-secondary-500 dark:text-secondary-400">
{{ __('Setup page visibility for the customers.') }}
{{ __('shopper::words.set_global_visibility') }}
</span>
</span>
</p>
<span role="checkbox" tabindex="0" @click="on = !on" @keydown.space.prevent="on = !on" :aria-checked="on.toString()" aria-checked="false" aria-labelledby="toggleLabel" x-data="{ on: @entangle('isEnabled') }" x-bind:class="{ 'bg-secondary-200 dark:bg-secondary-700': !on, 'bg-primary-600': on }" class="bg-secondary-200 relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:shadow-outline-primary">
<span aria-hidden="true" x-bind:class="{ 'translate-x-5': on, 'translate-x-0': !on }" class="translate-x-0 inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"></span>
</span>
</div>
</div>
<div class="col-span-6">
<x-shopper::forms.group :label="__('Content')" for="terms-of-use-content">
<x-shopper::forms.group :label="__('shopper::layout.forms.label.content')" for="terms-of-use-content">
<livewire:shopper-forms.trix :value="$content" />
</x-shopper::forms.group>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/brands/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('brand')])">
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('shopper::words.brand')])">

<livewire:shopper-brands.create />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/categories/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('category')])">
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('shopper::words.category')])">

<livewire:shopper-categories.create />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/collections/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('collection')])">
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('shopper::words.collection')])">

<livewire:shopper-collections.create />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/customers/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('customer')])">
<x-shopper::layouts.app :title="__('shopper::words.actions_label.add_new', ['name' => __('shopper::words.customer')])">

<livewire:shopper-customers.create />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/orders/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.app :title="__('Detail Order ~ :number', ['number' => $order->number])">
<x-shopper::layouts.app :title="__('shopper::pages/orders.show_title', ['number' => $order->number])">

<livewire:shopper-orders.show :order="$order" />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/settings/attributes/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.setting :title="__('Add attribute')">
<x-shopper::layouts.setting :title="__('shopper::pages/attributes.add')">

<livewire:shopper-settings.attributes.create />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/settings/attributes/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.setting :title="__('Update attribute :attribute', ['attribute' => $attribute->name])">
<x-shopper::layouts.setting :title="__('pages/attributes.update', ['attribute' => $attribute->name])">

<livewire:shopper-settings.attributes.edit :attribute="$attribute" />

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/settings/attributes/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-shopper::layouts.setting :title="__('Attributes List')">
<x-shopper::layouts.setting :title="__('shopper::words.attributes')">

<livewire:shopper-settings.attributes.browse />

Expand Down
Loading