Skip to content

Commit 6cec17e

Browse files
feat:[lar-163] translate page and remove unused files (#282)
2 parents 11dddee + 10654ce commit 6cec17e

20 files changed

+68
-176
lines changed

lang/en/pages/account.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,21 @@
4646
'bio_description' => 'Write a few sentences about yourself.',
4747
'avatar_description' => 'This will be displayed on your profile.',
4848
'twitter_helper_text' => 'Enter your Twitter handle without the @ symbol at the top.',
49-
'linkedin_helper_text' => 'Enter what is in place of {votre-pseudo}',
49+
'linkedin_helper_text' => 'Enter what is in place of {your-username}',
5050
'personal_information_title' => 'Personal information',
5151
'personal_information_description' => 'Update your personal information. Your address will never be accessible to the public.',
5252
'unverified_mail' => 'This e-mail address is not verified.',
53-
'social_network_title' => 'social networks',
53+
'social_network_title' => 'Social networks',
5454
'social_network_description' => 'Let everyone know where they can find you.',
55+
56+
'notification' => [
57+
'tip' => 'Tip:',
58+
'first_text' => 'Visit any forum thread and click on the',
59+
'subscribe' => 'Subscribe',
60+
'second_text' => 'in the sidebar. Once clicked, you will receive an e-mail each time a response
61+
is published. The same applies to any type of content that offers this
62+
this option.',
63+
],
5564
],
5665

5766
];

lang/en/pages/article.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
'draft' => 'Draft',
3030
'my_article' => 'My articles',
3131
'not_article_created' => "You haven't created any articles yet",
32-
32+
'awaiting_text' => 'Waiting for approval',
33+
'write' => 'Written',
3334
];

lang/en/pages/channel.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
7+
'title' => 'The biggest channels',
8+
'subtitle' => 'Other channels',
9+
10+
];

lang/en/pages/discussion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
'min_discussion_length' => '160 characters maximum',
4242
'placeholder' => 'Your comment here...',
4343
'my_discussion' => 'My discussions',
44-
44+
'empty_discussion' => 'You haven\'t created any discussions yet.',
4545
];

lang/en/pages/forum.php

+4
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343
'my_thread' => 'My threads',
4444
'not_thread_created' => "You haven't created any topic yet",
4545
'subject' => 'Subject',
46+
'reply_message' => 'Leave your answer',
47+
'prevent_text_one' => 'Make sure you\'ve read our',
48+
'rules' => 'rules of conduct',
49+
'prevent_text_two' => 'before replying to this thread.',
4650

4751
];

lang/fr/pages/account.php

+8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@
5353
'social_network_title' => 'Réseaux sociaux',
5454
'social_network_description' => 'Faites savoir à tout le monde où ils peuvent vous trouver.',
5555

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

5866
];

lang/fr/pages/article.php

+2
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@
2929
'draft' => 'Brouillon',
3030
'my_article' => 'Mes articles',
3131
'not_article_created' => "Vous n'avez pas encore créé d'articles",
32+
'awaiting_text' => 'En attente d\'approbation',
33+
'write' => 'Rédigé',
3234

3335
];

lang/fr/pages/channel.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
7+
'title' => ' Les plus gros channels',
8+
'subtitle' => 'Les autres channels',
9+
10+
];

lang/fr/pages/discussion.php

+1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
'min_discussion_length' => 'Maximum de 160 caractères.',
4242
'placeholder' => 'Votre commentaire',
4343
'my_discussion' => 'Mes discussions',
44+
'empty_discussion' => 'Vous n\'avez pas encore créé de discussions.',
4445

4546
];

lang/fr/pages/forum.php

+4
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343
'my_thread' => 'Mes Sujets',
4444
'not_thread_created' => "Vous n'avez pas encore créé de sujet",
4545
'subject' => 'Sujets',
46+
'reply_message' => 'Laissez votre réponse',
47+
'prevent_text_one' => 'Assurez-vous d\'avoir lu nos',
48+
'rules' => 'règles de conduite',
49+
'prevent_text_two' => 'avant de répondre à ce thread.',
4650

4751
];

resources/views/components/notifications/new_comment.blade.php

-44
This file was deleted.

resources/views/components/notifications/new_mention.blade.php

-50
This file was deleted.

resources/views/components/notifications/new_reply.blade.php

-43
This file was deleted.

resources/views/components/rules-banner.blade.php

-18
This file was deleted.

resources/views/livewire/components/forum/reply-form.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ class="size-10 ring-4 ring-white dark:ring-white/20"
88
span="-right-1 size-3.5 -top-1"
99
/>
1010
<span class="text-sm leading-6 text-gray-500 dark:text-gray-300">
11-
{{ __('Laissez votre réponse') }}
11+
{{ __('pages/forum.reply_message') }}
1212
</span>
1313
</button>
1414
<div class="mt-5 text-center">
1515
<p class="text-sm leading-5 text-gray-500 dark:text-gray-400">
16-
Assurez-vous d'avoir lu nos
16+
{{ __('pages/forum.prevent_text_one') }}
1717
<x-link :href="route('rules')" class="font-medium text-primary-600 hover:text-primary-500">
18-
règles de conduite
18+
{{ __('pages/forum.rules') }}
1919
</x-link>
20-
avant de répondre à ce thread.
20+
{{ __('pages/forum.prevent_text_two') }}
2121
</p>
2222
</div>
2323
</div>

resources/views/livewire/components/user/articles.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@
5656
</time>
5757
@else
5858
@if ($article->isAwaitingApproval())
59-
<span>En attente d'approbation</span>
59+
<span> {{ __('pages/article.awaiting_text') }} </span>
6060
@else
6161
<time datetime="{{ $article->created_at->format('Y-m-d') }}">
62-
Rédigé
62+
{{ __('pages/article.write') }}
6363
<span>{{ $article->created_at->diffForHumans() }}</span>
6464
</time>
6565
@endif
6666
@endif
6767

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

7272
<div class="flex items-center text-gray-500 dark:text-gray-400">

resources/views/livewire/components/user/discussions.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</x-discussions.summary>
2727
@empty
2828
<p class="text-gray-500 dark:text-gray-400">
29-
Vous n'avez pas encore créé de discussions.
29+
{{ __('pages/discussion.empty_discussion') }}
3030
</p>
3131
@endforelse
3232
</div>

resources/views/livewire/components/user/notifications.blade.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ class="inline-flex items-start rounded-lg bg-red-100 px-2.5 py-1.5 text-xs font-
3232
<x-heroicon-o-information-circle class="size-5 text-blue-500" aria-hidden="true" />
3333
</div>
3434
<div class="ml-3 flex-1 font-normal text-gray-500 dark:text-gray-400">
35-
<span class="font-medium text-blue-500">Astuce:</span>
36-
Visitez n'importe quel fil de discussion du forum et cliquez sur le bouton
37-
<span class="font-medium text-gray-900">"S'abonner"</span>
38-
dans la barre latérale. Une fois cliqué, vous recevrez un e-mail chaque fois qu'une réponse
39-
sera publiée. Il en va de même pour n'importe quel type de contenu qui offre cette
40-
possibilité.
35+
<span class="font-medium text-blue-500">{{ __('pages/account.settings.notification.tip') }}</span>
36+
{{ __('pages/account.settings.notification.first_text') }}
37+
<span class="font-medium text-gray-900">"{{ __('pages/account.settings.notification.subscribe') }}"</span>
38+
{{ __('pages/account.settings.notification.second_text') }}
4139
</div>
4240
</div>
4341
</div>

resources/views/livewire/pages/forum/channels.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class="gap-2 w-full justify-center py-2.5"
1515
<div>
1616
<div>
1717
<h1 class="text-xl font-bold font-heading text-gray-900 dark:text-white lg:text-2xl">
18-
{{ __('Les plus gros channels') }}
18+
{{ __('pages/channel.title') }}
1919
</h1>
2020
<x-forum.channels-grid :channels="$channels" />
2121
</div>
2222
<div class="mt-10">
2323
<h1 class="text-xl font-bold font-heading text-gray-900 dark:text-white lg:text-2xl">
24-
{{ __('Les autres channels') }}
24+
{{ __('pages/channel.subtitle') }}
2525
</h1>
2626
<x-forum.channels-grid :channels="$childChannels" />
2727
</div>

resources/views/livewire/pages/notifications.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<h2
77
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"
88
>
9-
Notifications
9+
{{ __('Notifications') }}
1010
<livewire:components.notification-count />
1111
</h2>
1212
</div>

0 commit comments

Comments
 (0)