Skip to content

feat:[lar-163] translate page and remove unused files #282

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

Merged
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
13 changes: 11 additions & 2 deletions lang/en/pages/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,21 @@
'bio_description' => 'Write a few sentences about yourself.',
'avatar_description' => 'This will be displayed on your profile.',
'twitter_helper_text' => 'Enter your Twitter handle without the @ symbol at the top.',
'linkedin_helper_text' => 'Enter what is in place of {votre-pseudo}',
'linkedin_helper_text' => 'Enter what is in place of {your-username}',
'personal_information_title' => 'Personal information',
'personal_information_description' => 'Update your personal information. Your address will never be accessible to the public.',
'unverified_mail' => 'This e-mail address is not verified.',
'social_network_title' => 'social networks',
'social_network_title' => 'Social networks',
'social_network_description' => 'Let everyone know where they can find you.',

'notification' => [
'tip' => 'Tip:',
'first_text' => 'Visit any forum thread and click on the',
'subscribe' => 'Subscribe',
'second_text' => 'in the sidebar. Once clicked, you will receive an e-mail each time a response
is published. The same applies to any type of content that offers this
this option.',
],
],

];
3 changes: 2 additions & 1 deletion lang/en/pages/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
'draft' => 'Draft',
'my_article' => 'My articles',
'not_article_created' => "You haven't created any articles yet",

'awaiting_text' => 'Waiting for approval',
'write' => 'Written',
];
10 changes: 10 additions & 0 deletions lang/en/pages/channel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

return [

'title' => 'The biggest channels',
'subtitle' => 'Other channels',

];
2 changes: 1 addition & 1 deletion lang/en/pages/discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
'min_discussion_length' => '160 characters maximum',
'placeholder' => 'Your comment here...',
'my_discussion' => 'My discussions',

'empty_discussion' => 'You haven\'t created any discussions yet.',
];
4 changes: 4 additions & 0 deletions lang/en/pages/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
'my_thread' => 'My threads',
'not_thread_created' => "You haven't created any topic yet",
'subject' => 'Subject',
'reply_message' => 'Leave your answer',
'prevent_text_one' => 'Make sure you\'ve read our',
'rules' => 'rules of conduct',
'prevent_text_two' => 'before replying to this thread.',

];
8 changes: 8 additions & 0 deletions lang/fr/pages/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
'social_network_title' => 'Réseaux sociaux',
'social_network_description' => 'Faites savoir à tout le monde où ils peuvent vous trouver.',

'notification' => [
'tip' => 'Astuce:',
'first_text' => 'Visitez n\'importe quel fil de discussion du forum et cliquez sur le bouton',
'subscribe' => 'S\'abonner',
'second_text' => 'dans la barre latérale. Une fois cliqué, vous recevrez un e-mail chaque fois qu\'une réponse
sera publiée. Il en va de même pour n\'importe quel type de contenu qui offre cette
possibilité.',
],
],

];
2 changes: 2 additions & 0 deletions lang/fr/pages/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@
'draft' => 'Brouillon',
'my_article' => 'Mes articles',
'not_article_created' => "Vous n'avez pas encore créé d'articles",
'awaiting_text' => 'En attente d\'approbation',
'write' => 'Rédigé',

];
10 changes: 10 additions & 0 deletions lang/fr/pages/channel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

return [

'title' => ' Les plus gros channels',
'subtitle' => 'Les autres channels',

];
1 change: 1 addition & 0 deletions lang/fr/pages/discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
'min_discussion_length' => 'Maximum de 160 caractères.',
'placeholder' => 'Votre commentaire',
'my_discussion' => 'Mes discussions',
'empty_discussion' => 'Vous n\'avez pas encore créé de discussions.',

];
4 changes: 4 additions & 0 deletions lang/fr/pages/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
'my_thread' => 'Mes Sujets',
'not_thread_created' => "Vous n'avez pas encore créé de sujet",
'subject' => 'Sujets',
'reply_message' => 'Laissez votre réponse',
'prevent_text_one' => 'Assurez-vous d\'avoir lu nos',
'rules' => 'règles de conduite',
'prevent_text_two' => 'avant de répondre à ce thread.',

];
44 changes: 0 additions & 44 deletions resources/views/components/notifications/new_comment.blade.php

This file was deleted.

50 changes: 0 additions & 50 deletions resources/views/components/notifications/new_mention.blade.php

This file was deleted.

43 changes: 0 additions & 43 deletions resources/views/components/notifications/new_reply.blade.php

This file was deleted.

18 changes: 0 additions & 18 deletions resources/views/components/rules-banner.blade.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ class="size-10 ring-4 ring-white dark:ring-white/20"
span="-right-1 size-3.5 -top-1"
/>
<span class="text-sm leading-6 text-gray-500 dark:text-gray-300">
{{ __('Laissez votre réponse') }}
{{ __('pages/forum.reply_message') }}
</span>
</button>
<div class="mt-5 text-center">
<p class="text-sm leading-5 text-gray-500 dark:text-gray-400">
Assurez-vous d'avoir lu nos
{{ __('pages/forum.prevent_text_one') }}
<x-link :href="route('rules')" class="font-medium text-primary-600 hover:text-primary-500">
règles de conduite
{{ __('pages/forum.rules') }}
</x-link>
avant de répondre à ce thread.
{{ __('pages/forum.prevent_text_two') }}
</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/livewire/components/user/articles.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@
</time>
@else
@if ($article->isAwaitingApproval())
<span>En attente d'approbation</span>
<span> {{ __('pages/article.awaiting_text') }} </span>
@else
<time datetime="{{ $article->created_at->format('Y-m-d') }}">
Rédigé
{{ __('pages/article.write') }}
<span>{{ $article->created_at->diffForHumans() }}</span>
</time>
@endif
@endif

<span class="mx-1">&middot;</span>
<span>{{ $article->readTime() }} min de lecture</span>
<span>{{ __('global.read_time', ['time' => $article->readTime()]) }}</span>
</div>

<div class="flex items-center text-gray-500 dark:text-gray-400">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</x-discussions.summary>
@empty
<p class="text-gray-500 dark:text-gray-400">
Vous n'avez pas encore créé de discussions.
{{ __('pages/discussion.empty_discussion') }}
</p>
@endforelse
</div>
Expand Down
10 changes: 4 additions & 6 deletions resources/views/livewire/components/user/notifications.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ class="inline-flex items-start rounded-lg bg-red-100 px-2.5 py-1.5 text-xs font-
<x-heroicon-o-information-circle class="size-5 text-blue-500" aria-hidden="true" />
</div>
<div class="ml-3 flex-1 font-normal text-gray-500 dark:text-gray-400">
<span class="font-medium text-blue-500">Astuce:</span>
Visitez n'importe quel fil de discussion du forum et cliquez sur le bouton
<span class="font-medium text-gray-900">"S'abonner"</span>
dans la barre latérale. Une fois cliqué, vous recevrez un e-mail chaque fois qu'une réponse
sera publiée. Il en va de même pour n'importe quel type de contenu qui offre cette
possibilité.
<span class="font-medium text-blue-500">{{ __('pages/account.settings.notification.tip') }}</span>
{{ __('pages/account.settings.notification.first_text') }}
<span class="font-medium text-gray-900">"{{ __('pages/account.settings.notification.subscribe') }}"</span>
{{ __('pages/account.settings.notification.second_text') }}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/pages/forum/channels.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class="gap-2 w-full justify-center py-2.5"
<div>
<div>
<h1 class="text-xl font-bold font-heading text-gray-900 dark:text-white lg:text-2xl">
{{ __('Les plus gros channels') }}
{{ __('pages/channel.title') }}
</h1>
<x-forum.channels-grid :channels="$channels" />
</div>
<div class="mt-10">
<h1 class="text-xl font-bold font-heading text-gray-900 dark:text-white lg:text-2xl">
{{ __('Les autres channels') }}
{{ __('pages/channel.subtitle') }}
</h1>
<x-forum.channels-grid :channels="$childChannels" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/pages/notifications.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h2
class="inline-flex items-center gap-x-2 font-heading text-xl font-bold leading-7 text-gray-900 dark:text-white sm:truncate sm:text-2xl"
>
Notifications
{{ __('Notifications') }}
<livewire:components.notification-count />
</h2>
</div>
Expand Down
Loading