瀏覽代碼

internationalization of site/about, site/fediverse, site/opensource

root (Deneir) 7 月之前
父節點
當前提交
163fc3805d

+ 39 - 1
resources/lang/de/site.php

@@ -28,4 +28,42 @@ return [
     'Submit'                                                => 'Absenden',
     'log_in_to_send_a_message'                              => 'melde dich an, um eine Nachricht zu senden',
     'Please'                                                => 'Bitte',
-];
+    
+    // site/about
+    'photo_sharing_for_everyone'                            => 'Fotos teilen. Für Alle',
+    'pixelfed_is_an_image_sharing_platform_etc'             => 'Pixelfed ist eine Plattform zum Teilen von Bildern. Eine ethische Alternative zu zentralisierten Plattformen', // this is actually never used because it's a fallback for config_cache('app.description') and config_cache('app.short_description') which seem to be impossible to set to empty when saved via /admin/settings?t=branding
+    'feature_packed'                                        => 'Voller Funktionen.',
+    'the_best_for_the_brightest'                            => 'Das Beste für die schönsten 📸',
+    'albums'                                                => 'Alben',
+    'share_posts_with_up_to'                                => 'Teile Beiträge mit bis zu',
+    'photos'                                                => 'Fotos',
+    'comments'                                              => 'Kommentare',
+    'comment_on_a_post_or_send_a_reply'                     => 'Kommentiere und beantworte Beiträge',
+    'collections'                                           => 'Sammlungen',
+    'organize_and_share_collections_of_multiple_posts'      => 'Organisiere und teile Sammlungen von mehreren Beiträgen',
+    'discover'                                              => 'Entdecken',
+    'explore_categories_hashtags_and_topics'                => 'Erkunde Kategorien, Hashtags und Themen',
+    'photo_filters'                                         => 'Foto-Filter',
+    'add_a_special_touch_to_your_photos'                    => 'Verleih deinen Fotos das gewisse Etwas',
+    'stories'                                               => 'Stories',
+    'share_moments_with_your_followers_that_disappear_etc'  => 'Teile Momente mit deinen Followern für 24 Stunden',
+    'people_have_shared'                                    => 'Leute haben',
+    'photos_and_videos_on'                                  => 'Fotos und Videos geteilt auf',
+    'sign_up_today'                                         => 'Melde dich jetzt an',
+    'and_join_our_community_of_photographers_from_etc'      => 'und werde Teil unserer Community von Fotograf*innen auf der ganzen Welt.',
+
+    //site/fediverse
+    'is_a_portmanteau_of_federation_and_universe_etc'       => 'ist ein Kofferwort aus “federation” (Föderation) und “universe” (Universum). Es ist ein gebräuchlicher, unverbindlicher Name für einen Zusammenschluss von Servern sozialer Netzwerke, die auf verschiedene Arten von Medien spezialisiert sind.',
+    'supported_fediverse_projects'                          => 'Unterstützte Fediverse-Projekte',
+    'some_of_the_better_known_fediverse_projects_include'   => 'Einige der bekanntesten Fediverse-Projekte sind:',
+    'a_federated_microblogging_alternative'                 => 'Eine föderierte Mikroblogging-Alternative',
+
+    // site/opensource
+    'the_software_that_powers_this_website_is_called'       => 'Die Software, mit der diese Website läuft, heißt',
+    'and_anyone_can'                                        => 'und jede*r kann sie',
+    'download'                                              => 'herunter laden',
+    'opensource.or'                                         => 'oder ihren Quellcode',
+    'view'                                                  => 'ansehen',
+    'the_source_code_and_run_their_own_instance'            => 'und eine eigene Instanz betreiben!',
+    'open_source_in_pixelfed'                               => 'Open Source in Pixelfed',
+];

+ 39 - 1
resources/lang/en/site.php

@@ -28,4 +28,42 @@ return [
     'Submit'                                                => 'Submit',
     'log_in_to_send_a_message'                              => 'log in to send a message',
     'Please'                                                => 'Please',
-];
+
+    // site/about
+    'photo_sharing_for_everyone'                            => 'Photo Sharing. For Everyone',
+    'pixelfed_is_an_image_sharing_platform_etc'             => 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms.', // this is actually never used because it's a fallback for config_cache('app.description') and config_cache('app.short_description') which seem to be impossible to set to empty when saved via /admin/settings?t=branding
+    'feature_packed'                                        => 'Feature Packed.',
+    'the_best_for_the_brightest'                            => 'The best for the brightest 📸',
+    'albums'                                                => 'Albums',
+    'share_posts_with_up_to'                                => 'Share posts with up to',
+    'photos'                                                => 'photos',
+    'comments'                                              => 'Comments',
+    'comment_on_a_post_or_send_a_reply'                     => 'Comment on a post, or send a reply',
+    'collections'                                           => 'Collections',
+    'organize_and_share_collections_of_multiple_posts'      => 'Organize and share collections of multiple posts',
+    'discover'                                              => 'Discover',
+    'explore_categories_hashtags_and_topics'                => 'Explore categories, hashtags and topics',
+    'photo_filters'                                         => 'Photo Filters',
+    'add_a_special_touch_to_your_photos'                    => 'Add a special touch to your photos',
+    'stories'                                               => 'Stories',
+    'share_moments_with_your_followers_that_disappear_etc'  => 'Share moments with your followers that disappear after 24 hours',
+    'people_have_shared'                                    => 'people have shared',
+    'photos_and_videos_on'                                  => 'photos and videos on',
+    'sign_up_today'                                         => 'Sign up today',
+    'and_join_our_community_of_photographers_from_etc'      => 'and join our community of photographers from around the world.',
+
+    // site/fediverse
+    'is_a_portmanteau_of_federation_and_universe_etc'       => 'is a portmanteau of “federation” and “universe”. It is a common, informal name for a federation of social network servers, specializing in different types of media.',
+    'supported_fediverse_projects'                          => 'Supported Fediverse Projects',
+    'some_of_the_better_known_fediverse_projects_include'   => 'Some of the better known fediverse projects include:',
+    'a_federated_microblogging_alternative'                 => 'A federated microblogging alternative.',
+
+    // site/opensource
+    'the_software_that_powers_this_website_is_called'       => 'The software that powers this website is called',
+    'and_anyone_can'                                        => 'and anyone can',
+    'download'                                              => 'download',
+    'opensource.or'                                         => 'or',
+    'view'                                                  => 'view',
+    'the_source_code_and_run_their_own_instance'            => 'the source code and run their own instance!',
+    'open_source_in_pixelfed'                               => 'Open source in Pixelfed',
+];

+ 21 - 20
resources/views/site/about.blade.php

@@ -36,10 +36,11 @@
 			<a href="/">
 				<img class="d-block mx-auto mb-4" src="/img/pixelfed-icon-color.svg" alt="" width="72" height="57">
 			</a>
-			<h1 class="display-4 font-weight-bold py-3">{{ config_cache('about.title') ?? 'Photo Sharing. For Everyone' }}</h1>
+			
+			<h1 class="display-4 font-weight-bold py-3">{{ config_cache('about.title') ?? __('site.photo_sharing_for_everyone') }}</h1>
 			<div class="col-lg-6 mx-auto py-3">
 			  <p class="mb-4 font-weight-light text-left" style="font-size: 26px; line-height: 40px;">
-				{!! config_cache('app.description') ?? config_cache('app.short_description') ?? 'Pixelfed is an image sharing platform, an ethical alternative to centralized platforms.'!!}
+				{!! config_cache('app.description') ?? config_cache('app.short_description') ?? __('site.pixelfed_is_an_image_sharing_platform_etc') !!}
 			  </p>
 			</div>
 		</div>
@@ -126,10 +127,10 @@
 			<div class="row">
 				<div class="col-12 col-md-8 offset-md-2">
 					<div class="mt-5">
-						<p class="text-center display-4 font-weight-bold">Feature Packed.</p>
+						<p class="text-center display-4 font-weight-bold">{{__('site.feature_packed')}}</p>
 					</div>
 					<div class="my-2">
-						<p class="h3 font-weight-light text-muted text-center">The best for the brightest 📸</p>
+						<p class="h3 font-weight-light text-muted text-center">{{__('site.the_best_for_the_brightest')}}</p>
 					</div>
 				</div>
 			</div>
@@ -137,8 +138,8 @@
 		<div class="container my-5">
 			<div class="row p-4 pb-0 pt-lg-5 align-items-center rounded-3">
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Albums</h1>
-					<p class="h4 font-weight-light">Share posts with up to {{config_cache('pixelfed.max_album_length')}} photos</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.albums')}}</h1>
+					<p class="h4 font-weight-light">{{__('site.share_posts_with_up_to')}} {{config_cache('pixelfed.max_album_length')}} {{__('site.photos')}}</p>
 				</div>
 				<div class="col-lg-6 overflow-hidden">
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/1.jpeg" alt="" width="720">
@@ -152,8 +153,8 @@
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/2.jpeg" alt="" width="720">
 				</div>
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Comments</h1>
-					<p class="h4 font-weight-light text-justify">Comment on a post, or send a reply</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.comments')}}</h1>
+					<p class="h4 font-weight-light text-justify">{{__('site.comment_on_a_post_or_send_a_reply')}}</p>
 				</div>
 			</div>
 		</div>
@@ -161,8 +162,8 @@
 		<div class="container my-5">
 			<div class="row p-4 pb-0 pt-lg-5 align-items-center rounded-3">
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Collections</h1>
-					<p class="h4 font-weight-light text-justify">Organize and share collections of multiple posts</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.collections')}}</h1>
+					<p class="h4 font-weight-light text-justify">{{__('site.organize_and_share_collections_of_multiple_posts')}}</p>
 				</div>
 				<div class="col-lg-6 overflow-hidden">
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/3.jpeg" alt="" width="720">
@@ -176,8 +177,8 @@
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/4.jpeg" alt="" width="720">
 				</div>
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Discover</h1>
-					<p class="h4 font-weight-light text-justify">Explore categories, hashtags and topics</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.discover')}}</h1>
+					<p class="h4 font-weight-light text-justify">{{__('site.explore_categories_hashtags_and_topics')}}</p>
 				</div>
 			</div>
 		</div>
@@ -185,8 +186,8 @@
 		<div class="container my-5">
 			<div class="row p-4 pb-0 pt-lg-5 align-items-center rounded-3">
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Photo Filters</h1>
-					<p class="h4 font-weight-light text-justify">Add a special touch to your photos</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.photo_filters')}}</h1>
+					<p class="h4 font-weight-light text-justify">{{__('site.add_a_special_touch_to_your_photos')}}</p>
 				</div>
 				<div class="col-lg-6 overflow-hidden">
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/5.jpeg" alt="" width="720">
@@ -200,8 +201,8 @@
 					<img class="rounded-lg img-fluid filter-inkwell" src="/_landing/6.jpeg" alt="" width="720">
 				</div>
 				<div class="col-lg-6 p-3 p-lg-5 pt-lg-3">
-					<h1 class="display-4 font-weight-bold lh-1">Stories</h1>
-					<p class="h4 font-weight-light text-justify">Share moments with your followers that disappear after 24 hours</p>
+					<h1 class="display-4 font-weight-bold lh-1">{{__('site.stories')}}</h1>
+					<p class="h4 font-weight-light text-justify">{{__('site.share_moments_with_your_followers_that_disappear_etc')}}</p>
 				</div>
 			</div>
 		</div>
@@ -214,15 +215,15 @@
 				<div class="col">
 					<p class="display-3 font-weight-bold">
 						<span class="text-primary">{{$user_count}}</span>
-						people have shared
+						{{__('site.people_have_shared')}}
 						<span class="text-primary">{{$post_count}}</span>
-						photos and videos on {{config_cache('app.name')}}!
+						{{__('site.photos_and_videos_on')}} {{config_cache('app.name')}}!
 					</p>
 					@if(config_cache('pixelfed.open_registration'))
 					<div class="section-spacer"></div>
 					<p class="display-4 font-weight-bold mb-0">
-						<a class="text-primary" href="/register">Sign up today</a>
-						and join our community of photographers from around the world.
+						<a class="text-primary" href="/register">{{__('site.sign_up_today')}}</a>
+						{{__('site.and_join_our_community_of_photographers_from_etc')}}
 					</p>
 					@endif
 				</div>

+ 5 - 5
resources/views/site/fediverse.blade.php

@@ -7,15 +7,15 @@
   </div>
   <hr>
   <section>
-    <p class="lead"><a href="http://fediverse.party/" rel="nofollow noopener">Fediverse</a> is a portmanteau of “federation” and “universe”. It is a common, informal name for a federation of social network servers, specializing in different types of media.</p>
-    <p class="lead font-weight-bold text-muted mt-4 mb-0">Supported Fediverse Projects</p>
-    <p class="small text-muted">Some of the better known fediverse projects include:</p>
+    <p class="lead"><a href="http://fediverse.party/" rel="nofollow noopener">Fediverse</a> {{__('site.is_a_portmanteau_of_federation_and_universe_etc')}}</p>
+    <p class="lead font-weight-bold text-muted mt-4 mb-0">{{__('site.supported_fediverse_projects')}}</p>
+    <p class="small text-muted">{{__('site.some_of_the_better_known_fediverse_projects_include')}}</p>
     <ul class="lead pl-4">
-      <li><a href="https://joinmastodon.org" rel="nofollow noopener">Mastodon</a> – A federated microblogging alternative.</li>
+      <li><a href="https://joinmastodon.org" rel="nofollow noopener">Mastodon</a> – {{__('site.a_federated_microblogging_alternative')}}</li>
     </ul>
   </section>
 @endsection
 
 @push('meta')
-<meta property="og:description" content="Fediverse is a portmanteau of “federation” and “universe”. It is a common, informal name for a federation of social network servers, specializing in different types of media.">
+<meta property="og:description" content="Fediverse {{__('site.is_a_portmanteau_of_federation_and_universe_etc')}}">
 @endpush

+ 2 - 2
resources/views/site/opensource.blade.php

@@ -7,10 +7,10 @@
   </div>
   <hr>
   <section>
-    <p class="lead">The software that powers this website is called <a href="https://pixelfed.org">Pixelfed</a> and anyone can <a href="https://github.com/pixelfed/pixelfed">download</a> or <a href="https://github.com/pixelfed/pixelfed">view</a> the source code and run their own instance!</p>
+    <p class="lead">{{__('site.the_software_that_powers_this_website_is_called')}} <a href="https://pixelfed.org">Pixelfed</a> {{__('site.and_anyone_can')}} <a href="https://github.com/pixelfed/pixelfed">{{__('site.download')}}</a> {{__('site.opensource.or')}} <a href="https://github.com/pixelfed/pixelfed">{{__('site.view')}}</a> {{__('site.the_source_code_and_run_their_own_instance')}}</p>
   </section>
 @endsection
 
 @push('meta')
-<meta property="og:description" content="Open source in Pixelfed">
+<meta property="og:description" content="{{__('site.open_source_in_pixelfed')}}">
 @endpush