From f418a4550828f5a0183b792641fb8016d1a8ceaf Mon Sep 17 00:00:00 2001 From: Arnaud Date: Sun, 12 Apr 2026 16:45:41 +0200 Subject: [PATCH] More translatable strings : landing, privacy policy, terms --- resources/lang/en/web.php | 1 + resources/lang/fr/web.php | 3 ++- resources/views/site/index.blade.php | 2 +- resources/views/site/privacy.blade.php | 12 +++++++++--- resources/views/site/terms.blade.php | 12 +++++++++--- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/resources/lang/en/web.php b/resources/lang/en/web.php index a23155ced..281b876cd 100644 --- a/resources/lang/en/web.php +++ b/resources/lang/en/web.php @@ -32,6 +32,7 @@ return [ 'sensitive' => 'Sensitive', 'sensitiveContent' => 'Sensitive Content', 'sensitiveContentWarning' => 'This post may contain sensitive content', + 'javascript' => 'Please enable javascript to view this content.', 'loading' => 'Loading...', 'continue' => 'Continue', ], diff --git a/resources/lang/fr/web.php b/resources/lang/fr/web.php index b46f4725e..8757c61dc 100644 --- a/resources/lang/fr/web.php +++ b/resources/lang/fr/web.php @@ -32,6 +32,7 @@ return [ 'sensitive' => 'Sensible', 'sensitiveContent' => 'Contenu sensible', 'sensitiveContentWarning' => 'Le contenu de cette publication peut être sensible', + 'javascript' => 'Activez JavaScript SVP pour consulter ce contenu.', ], 'site' => [ @@ -249,7 +250,7 @@ return [ 'notifications' => 'Notifications', 'shares' => 'Partages', 'share_up_to_n_photos' => 'Vous pouvez partager jusqu\'à {num_photos} photos* à la fois avec des légendes d\'une longueur maximale de {caption_length} caractères.', - 'share_up_to_n_photos_videos' => 'Vous pouvez partager jusqu\'à {num_photos} photos* or {num_video} video* à la fois avec des légendes d\'une longueur maximale de {caption_length} caractères.', + 'share_up_to_n_photos_videos' => 'Vous pouvez partager jusqu\'à {num_photos} photos* ou {num_video} vidéo* à la fois avec des légendes d\'une longueur maximale de {caption_length} caractères.', 'file_size' => '* la taille maximale des fichiers est {max_size}', 'federation' => 'Fédération', 'mobile_app' => 'Application mobile', diff --git a/resources/views/site/index.blade.php b/resources/views/site/index.blade.php index b7d3befaa..9ddb41c4f 100644 --- a/resources/views/site/index.blade.php +++ b/resources/views/site/index.blade.php @@ -41,7 +41,7 @@ diff --git a/resources/views/site/privacy.blade.php b/resources/views/site/privacy.blade.php index 24f44323d..fb7b37f9a 100644 --- a/resources/views/site/privacy.blade.php +++ b/resources/views/site/privacy.blade.php @@ -1,9 +1,15 @@ @extends('layouts.app') @section('content') -
+
-

Privacy Policy

+

+ @if($page && $page->title) + {!! $page->title !!} + @else + Privacy Policy + @endif +

@if($page && $page->content) @@ -91,5 +97,5 @@
@endsection @push('meta') - + @endpush diff --git a/resources/views/site/terms.blade.php b/resources/views/site/terms.blade.php index e05254d46..85e4d5abe 100644 --- a/resources/views/site/terms.blade.php +++ b/resources/views/site/terms.blade.php @@ -1,9 +1,15 @@ @extends('layouts.app') @section('content') -
+
-

Terms of Use

+

+ @if($page && $page->title) + {!! $page->title !!} + @else + Terms of Use + @endif +

@if($page && $page->content) @@ -51,5 +57,5 @@ @endsection @push('meta') - + @endpush