From 163fc3805dbe70cf49fb0df2aa96edeb3dfd70b0 Mon Sep 17 00:00:00 2001 From: "root (Deneir)" Date: Mon, 9 Dec 2024 18:28:56 +0100 Subject: [PATCH 1/6] internationalization of site/about, site/fediverse, site/opensource --- resources/lang/de/site.php | 40 +++++++++++++++++++++- resources/lang/en/site.php | 40 +++++++++++++++++++++- resources/views/site/about.blade.php | 41 ++++++++++++----------- resources/views/site/fediverse.blade.php | 10 +++--- resources/views/site/opensource.blade.php | 4 +-- 5 files changed, 106 insertions(+), 29 deletions(-) diff --git a/resources/lang/de/site.php b/resources/lang/de/site.php index d820b0cc6..c6392015f 100644 --- a/resources/lang/de/site.php +++ b/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', +]; \ No newline at end of file diff --git a/resources/lang/en/site.php b/resources/lang/en/site.php index b06c5dcdd..d1eb1be42 100644 --- a/resources/lang/en/site.php +++ b/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', +]; \ No newline at end of file diff --git a/resources/views/site/about.blade.php b/resources/views/site/about.blade.php index 7f5c3ccbf..85ec2920c 100644 --- a/resources/views/site/about.blade.php +++ b/resources/views/site/about.blade.php @@ -36,10 +36,11 @@ -

{{ config_cache('about.title') ?? 'Photo Sharing. For Everyone' }}

+ +

{{ config_cache('about.title') ?? __('site.photo_sharing_for_everyone') }}

- {!! 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') !!}

@@ -126,10 +127,10 @@
-

Feature Packed.

+

{{__('site.feature_packed')}}

-

The best for the brightest 📸

+

{{__('site.the_best_for_the_brightest')}}

@@ -137,8 +138,8 @@
-

Albums

-

Share posts with up to {{config_cache('pixelfed.max_album_length')}} photos

+

{{__('site.albums')}}

+

{{__('site.share_posts_with_up_to')}} {{config_cache('pixelfed.max_album_length')}} {{__('site.photos')}}

@@ -152,8 +153,8 @@
-

Comments

-

Comment on a post, or send a reply

+

{{__('site.comments')}}

+

{{__('site.comment_on_a_post_or_send_a_reply')}}

@@ -161,8 +162,8 @@
-

Collections

-

Organize and share collections of multiple posts

+

{{__('site.collections')}}

+

{{__('site.organize_and_share_collections_of_multiple_posts')}}

@@ -176,8 +177,8 @@
-

Discover

-

Explore categories, hashtags and topics

+

{{__('site.discover')}}

+

{{__('site.explore_categories_hashtags_and_topics')}}

@@ -185,8 +186,8 @@
-

Photo Filters

-

Add a special touch to your photos

+

{{__('site.photo_filters')}}

+

{{__('site.add_a_special_touch_to_your_photos')}}

@@ -200,8 +201,8 @@
-

Stories

-

Share moments with your followers that disappear after 24 hours

+

{{__('site.stories')}}

+

{{__('site.share_moments_with_your_followers_that_disappear_etc')}}

@@ -214,15 +215,15 @@

{{$user_count}} - people have shared + {{__('site.people_have_shared')}} {{$post_count}} - photos and videos on {{config_cache('app.name')}}! + {{__('site.photos_and_videos_on')}} {{config_cache('app.name')}}!

@if(config_cache('pixelfed.open_registration'))

- Sign up today - and join our community of photographers from around the world. + {{__('site.sign_up_today')}} + {{__('site.and_join_our_community_of_photographers_from_etc')}}

@endif
diff --git a/resources/views/site/fediverse.blade.php b/resources/views/site/fediverse.blade.php index 0e2e3e761..39fb57ae9 100644 --- a/resources/views/site/fediverse.blade.php +++ b/resources/views/site/fediverse.blade.php @@ -7,15 +7,15 @@
-

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.

-

Supported Fediverse Projects

-

Some of the better known fediverse projects include:

+

Fediverse {{__('site.is_a_portmanteau_of_federation_and_universe_etc')}}

+

{{__('site.supported_fediverse_projects')}}

+

{{__('site.some_of_the_better_known_fediverse_projects_include')}}

@endsection @push('meta') - + @endpush diff --git a/resources/views/site/opensource.blade.php b/resources/views/site/opensource.blade.php index cb2e7c771..b764f2015 100644 --- a/resources/views/site/opensource.blade.php +++ b/resources/views/site/opensource.blade.php @@ -7,10 +7,10 @@
-

The software that powers this website is called Pixelfed and anyone can download or view the source code and run their own instance!

+

{{__('site.the_software_that_powers_this_website_is_called')}} Pixelfed {{__('site.and_anyone_can')}} {{__('site.download')}} {{__('site.opensource.or')}} {{__('site.view')}} {{__('site.the_source_code_and_run_their_own_instance')}}

@endsection @push('meta') - + @endpush From 567579e5f8965874091277b886e7c0974684de14 Mon Sep 17 00:00:00 2001 From: "root (Deneir)" Date: Tue, 10 Dec 2024 00:38:28 +0100 Subject: [PATCH 2/6] internationalization of settings/home --- resources/lang/de/home.php | 33 +++++++++++++++ resources/lang/en/home.php | 33 +++++++++++++++ resources/views/settings/home.blade.php | 54 ++++++++++++------------- 3 files changed, 93 insertions(+), 27 deletions(-) create mode 100644 resources/lang/de/home.php create mode 100644 resources/lang/en/home.php diff --git a/resources/lang/de/home.php b/resources/lang/de/home.php new file mode 100644 index 000000000..af9896476 --- /dev/null +++ b/resources/lang/de/home.php @@ -0,0 +1,33 @@ + 'Konto-Einstellungen', + 'change_profile_photo' => 'Profilfoto ändern', + 'select_a_profile_photo' => 'Wähle dein Profilfoto', + 'must_be_a_jpeg_or_png_max_avatar_size' => 'Muss jpeg oder png sein. Maximale Größe:', + 'upload' => 'Hochladen', + 'delete_profile_photo' => 'Profilfoto löschen', + 'name' => 'Name', + 'your_name' => 'Dein Name', + 'website' => 'Website', + 'bio' => 'Bio', + 'add_a_bio_here' => 'Deine Biografie', + 'language' => 'Sprache', + 'pronouns' => 'Pronomen', + 'select_pronouns' => 'Wähle Pronomen', + 'select_up_to_4_pronouns_that_will_appear_on_etc' => 'Wähle bis zu 4 Pronomen, die auf deinem Profil angezeigt werden.', + 'account_aliases' => 'Konto-Alias', + 'manage_account_alias' => 'Verwalte dein Aliaskonto', + 'to_move_from_another_account_to_this_one_first_etc' => 'Um von einem anderen Konto hierher zu migrieren, musst du zuerst einen Alias anlegen', + 'account_migrate' => 'Konto-Migration', + 'migrate_to_another_account' => 'Ziehe dein Konto um', + 'to_redirect_this_account_to_a_different_one_etc' => 'Um dieses Konto auf ein anderes umzuleiten (wo es unterstützt wird).', + 'storage_usage' => 'Speichernutzung', + 'storage_used' => 'Belegter Speicher', + 'submit' => 'Absenden', + 'are_you_sure_you_want_to_delete_your_profile_photo' => 'Bist du sicher, dass du dein Profilfoto löschen möchtest?', + 'error' => 'Error', + 'an_error_occured_please_try_again_later' => 'An error occured, please try again later', + +]; \ No newline at end of file diff --git a/resources/lang/en/home.php b/resources/lang/en/home.php new file mode 100644 index 000000000..27ac8d643 --- /dev/null +++ b/resources/lang/en/home.php @@ -0,0 +1,33 @@ + 'Account Settings', + 'change_profile_photo' => 'Change Profile Photo', + 'select_a_profile_photo' => 'Select a profile photo', + 'must_be_a_jpeg_or_png_max_avatar_size' => 'Must be a jpeg or png. Max avatar size:', + 'upload' => 'Upload', + 'delete_profile_photo' => 'Delete Profile Photo', + 'name' => 'Name', + 'your_name' => 'Your Name', + 'website' => 'Website', + 'bio' => 'Bio', + 'add_a_bio_here' => 'Add a bio here', + 'language' => 'Language', + 'pronouns' => 'Pronouns', + 'select_pronouns' => 'Select Pronoun(s)', + 'select_up_to_4_pronouns_that_will_appear_on_etc' => 'Select up to 4 pronouns that will appear on your profile.', + 'account_aliases' => 'Account Aliases', + 'manage_account_alias' => 'Manage account alias', + 'to_move_from_another_account_to_this_one_first_etc' => 'To move from another account to this one, first you need to create an alias.', + 'account_migrate' => 'Account Migrate', + 'migrate_to_another_account' => 'Migrate to another account', + 'to_redirect_this_account_to_a_different_one_etc' => 'To redirect this account to a different one (where supported).', + 'storage_usage' => 'Storage Usage', + 'storage_used' => 'Storage Used', + 'submit' => 'Submit', + 'are_you_sure_you_want_to_delete_your_profile_photo' => 'Are you sure you want to delete your profile photo?', + 'error' => 'Fehler', + 'an_error_occured_please_try_again_later' => 'Es ist ein Fehler aufgetreten, versuche es bitte später noch einmal', + +]; \ No newline at end of file diff --git a/resources/views/settings/home.blade.php b/resources/views/settings/home.blade.php index 1ecd6bca8..ab1a8d4fe 100644 --- a/resources/views/settings/home.blade.php +++ b/resources/views/settings/home.blade.php @@ -3,7 +3,7 @@ @section('section')
-

Account Settings

+

{{__('home.account_settings')}}


@@ -13,7 +13,7 @@

{{Auth::user()->username}}

- +

@@ -21,41 +21,41 @@
- +
-

Must be a jpeg or png. Max avatar size:

+

{{__('home.must_be_a_jpeg_or_png_max_avatar_size')}}

-

+

- Delete Profile Photo + {{__('home.delete_profile_photo')}}

@csrf
- +
- +
- +
- +
- +