From ac84f5251326ef3a67e2eaa82a54cfa6b2293468 Mon Sep 17 00:00:00 2001
From: Felipe Mateus
Date: Thu, 9 Jan 2025 20:49:51 -0300
Subject: [PATCH] feat(translate): Helpcenter Profile
#2
---
resources/lang/en/helpcenter.php | 86 +++++++++-
resources/lang/pt/helpcenter.php | 72 ++++++++
.../views/site/help/your-profile.blade.php | 157 ++++--------------
3 files changed, 186 insertions(+), 129 deletions(-)
diff --git a/resources/lang/en/helpcenter.php b/resources/lang/en/helpcenter.php
index ddf207b97..7a601fd2f 100644
--- a/resources/lang/en/helpcenter.php
+++ b/resources/lang/en/helpcenter.php
@@ -229,13 +229,13 @@ return [
',
'discoverTips' => '
-
-
- - To make your posts more discoverable, add hashtags to your posts.
- - Any public posts that contain a hashtag may be included in discover pages.
+
+
+ - To make your posts more discoverable, add hashtags to your posts.
+ - Any public posts that contain a hashtag may be included in discover pages.
-
-
',
+
+
',
'dmSubTitle'=> 'Send and recieve direct messages from other profiles.',
'howUseDirectMessagesAsk' => 'How do I use Pixelfed Direct?',
@@ -293,4 +293,78 @@ return [
'safetyTipsVisilityContent' => 'You can limit the visibility of your content to specific people, followers, public and more.',
'safetyTipsPostsPrivacy' => 'Make your account or posts private',
'safetyTipsPostsPrivacyContent' => 'You can make your account private and vet new follow requests to control who your posts are shared with.',
+
+ 'profieleTitle' => 'Your Profile',
+ 'profileEdit' => "Edit",
+ "profileEditBioAsk" => 'How do I edit my bio, name, email, or password?',
+ 'profileEditBioAnswer' => '
+ To edit your account using a web browser:
+
+ - Go to '.route('settings').'.
+ - You should see the Name, Website, and Bio fields.
+ - Change the desired fields, and then click the Submit button.
+
+
',
+ 'profileEditUpdateUsernameAsk' => ' Why can\'t I update my username?',
+ 'profileEditUpdateUsernameAnswer' => '
+ Pixelfed is a federated application, changing your username is not supported in every
federated software so we cannot allow username changes. Your best option is to create a new account with your desired username.
+
',
+ 'profilePrivacyTitle' => 'Privacy',
+ 'profilePrivacyAsk' => 'How do I set my photos and videos to private so that only approved followers can see them?',
+ 'profilePrivacyAnswer' => '
+ To change your account visibility:
+
+ - Go to '.route('settings.privacy').'.
+ - Check the Private Account checkbox.
+ - The confirmation modal will popup and ask you if you want to keep existing followers and disable new follow requests
+ - Click the Submit button.
+
+
',
+ 'profileSecurityTitle' => 'Security',
+ 'profileSecurityHowSecureAsk' => 'How can I secure my account?',
+ 'profileSecurityHowSecureAnswer' => '
+ Here are some recommendations to keep your account secure:
+
+ - Pick a strong password, don\'t re-use it on other websites
+ - Never share your password
+ - Remember to log out on public computers or devices
+ - Periodically check your Account Log for any suspicious activity
+ - Setup Two Factor Authentication
+
+
',
+ 'profileSecurityHowAddSecurityAsk' => 'How can I add additional protection to my account?',
+ 'profileSecurityHowAddSecurityAnswer' => '
+ You can add an additional layer of security to your account by enabling
Two Factor Authentication. For more information, check your
security settings.
+
',
+ 'profileSecurityHowReportUnauthorizedAsk' => 'How do I report unauthorized use of my account?',
+ 'profileSecurityHowReportUnauthorizedAnswer' => ' Please contact the administrators of this instance.',
+ 'profileMigrarionTitle' => 'Migration',
+ 'profileMigrarionHowMigrateAsk' => 'How can I migrate my account?',
+ 'profileMigrarionHowMigrateAnswer' => '
+ To migrate your account successfully, your old account must be on a Pixelfed or Mastodon server, or one that supports the Mastodon Account Migration
extension.
+
+
Navigate to the Account Aliases page in the Settings to begin.
+
',
+ 'profileMigrationHowLongAsk' => 'How long does the migration take?',
+ 'profileMigrationHowLongAnswer' => 'It can take a few hours to process post migration imports, please contact admins if it takes longer than 24 hours.',
+ 'profileMigrationWhyPostNotAsk' => 'Why are my posts not migrated?',
+ 'profileMigrationWhyPostNotAnswer' => '
+ Post migrations are officially supported on Pixelfed servers running v0.11.9+ and higher, and when enabled by server admins.
+
+ It can take a few hours to process post migration imports, please contact admins if it takes longer than 24 hours.
+
',
+
+ 'profileDeleteTitle' => 'Delete Your Account',
+ 'profileDeleteTemporaryAsk' => 'How do I temporarily disable my account?',
+ 'profileDeleteTemporaryAnswer' => '
+
If you temporarily disable your account, your profile, photos, comments and likes will be hidden until you reactivate it by logging back in. To temporarily disable your account:
+
+ - Log into '.config('pixelfed.domain.app').'
+ - Tap or click the menu and select Settings
+ - Navigate to the Security Settings
+ - Confirm your account password.
+ - Scroll down to the Danger Zone section and click on the Disable button.
+ - Follow the instructions on the next page.
+
+
',
];
diff --git a/resources/lang/pt/helpcenter.php b/resources/lang/pt/helpcenter.php
index 77a519095..56fb56da0 100644
--- a/resources/lang/pt/helpcenter.php
+++ b/resources/lang/pt/helpcenter.php
@@ -273,5 +273,77 @@ return [
'safetyTipsPostsPrivacy' => 'Torne sua conta ou postagens privadas',
'safetyTipsPostsPrivacyContent' => 'Você pode tornar sua conta privada e verificar novas solicitações de seguidores para controlar com quem suas postagens são compartilhadas.',
+ 'profieleTitle' => 'Seu Perfil',
+ 'profileEdit' => 'Editar',
+ 'profileEditBioAsk' => 'Como edito minha biografia, nome, e-mail ou senha?',
+ 'profileEditBioAnswer' => '
+ Para editar sua conta usando um navegador web:
+
+ - Vá para '.route('settings').'.
+ - Você deve ver os campos Nome, Website e Bio.
+ - Altere os campos desejados e clique no botão Enviar.
+
+
',
+ 'profileEditUpdateUsernameAsk' => 'Por que não consigo alterar meu nome de usuário?',
+ 'profileEditUpdateUsernameAnswer' => '
+ Pixelfed é um aplicativo federado, alterar seu nome de usuário não é suportado em todos os
softwares federados, portanto, não podemos permitir alterações de nome de usuário. Sua melhor opção é criar uma nova conta com o nome de usuário desejado.
+
',
+ 'profilePrivacyTitle' => 'Privacidade',
+ 'profilePrivacyAsk' => 'Como faço para definir minhas fotos e vídeos como privados para que apenas seguidores aprovados possam vê-los?',
+ 'profilePrivacyAnswer' => '
+ Para alterar a visibilidade da sua conta:
+
+ - Vá para '.route('settings.privacy').'.
+ - Marque a caixa de seleção Conta Privada.
+ - O modal de confirmação aparecerá e perguntará se você deseja manter os seguidores existentes e desativar novas solicitações de seguidores.
+ - Clique no botão Enviar.
+
+
',
+ 'profileSecurityTitle' => 'Segurança',
+ 'profileSecurityHowSecureAsk' => 'Como posso proteger minha conta?',
+ 'profileSecurityHowSecureAnswer' => '
+ Aqui estão algumas recomendações para manter sua conta segura:
+
+
',
+ 'profileSecurityHowAddSecurityAsk' => 'Como posso adicionar proteção adicional à minha conta?',
+ 'profileSecurityHowAddSecurityAnswer' => '
+ Você pode adicionar uma camada adicional de segurança à sua conta ativando a
Autenticação de Dois Fatores. Para mais informações, verifique suas
configurações de segurança.
+
',
+ 'profileSecurityHowReportUnauthorizedAsk' => 'Como faço para relatar o uso não autorizado da minha conta?',
+ 'profileSecurityHowReportUnauthorizedAnswer' => 'Por favor, entre em contato com os administradores desta instância.',
+ 'profileMigrarionTitle' => 'Migração',
+ 'profileMigrarionHowMigrateAsk' => 'Como posso migrar minha conta?',
+ 'profileMigrarionHowMigrateAnswer' => '',
+ 'profileMigrationHowLongAsk' => 'Quanto tempo leva a migração?',
+ 'profileMigrationHowLongAnswer' => 'Pode levar algumas horas para processar as importações de migração de postagens, por favor, entre em contato com os administradores se demorar mais de 24 horas.',
+ 'profileMigrationWhyPostNotAsk' => 'Por que minhas postagens não foram migradas?',
+ 'profileMigrationWhyPostNotAnswer' => '
+ As migrações de postagens são oficialmente suportadas em servidores Pixelfed que executam a versão v0.11.9+ e superior, e quando habilitadas pelos administradores do servidor.
+
+ Pode levar algumas horas para processar as importações de migração de postagens, por favor, entre em contato com os administradores se demorar mais de 24 horas.
+ ',
+ 'profileDeleteTitle' => 'Excluir Sua Conta',
+ 'profileDeleteTemporaryAsk' => 'Como desativo temporariamente minha conta?',
+ 'profileDeleteTemporaryAnswer' => '
+
Se você desativar temporariamente sua conta, seu perfil, fotos, comentários e curtidas serão ocultados até que você a reative fazendo login novamente. Para desativar temporariamente sua conta:
+
+ - Faça login em '.config('pixelfed.domain.app').'
+ - Toque ou clique no menu e selecione Configurações
+ - Navegue até as Configurações de Segurança
+ - Confirme a senha da sua conta.
+ - Role para baixo até a seção Zona de Perigo e clique no botão Desativar.
+ - Siga as instruções na próxima página.
+
+
',
];
diff --git a/resources/views/site/help/your-profile.blade.php b/resources/views/site/help/your-profile.blade.php
index 22a105d33..ac1fee419 100644
--- a/resources/views/site/help/your-profile.blade.php
+++ b/resources/views/site/help/your-profile.blade.php
@@ -1,207 +1,118 @@
-@extends('site.help.partial.template', ['breadcrumb'=>'Your Profile'])
+@extends('site.help.partial.template', ['breadcrumb'=>__("helpcenter.profieleTitle") ])
@section('section')
-
Your Profile
+ {{ __("helpcenter.profieleTitle") }}
- Edit
+ {{ __("helpcenter.profileEdit") }}
- How do I edit my bio, name, email, or password?
+ {{ __("helpcenter.profileEditBioAsk") }}
-
- To edit your account using a web browser:
-
- - Go to {{route('settings')}}.
- - You should see the Name, Website, and Bio fields.
- - Change the desired fields, and then click the Submit button.
-
-
+ {!! __("helpcenter.profileEditBioAnswer") !!}
-
+
- Why can't I update my username?
+ {{ __("helpcenter.profileEditUpdateUsernameAsk") }}
-
- Pixelfed is a federated application, changing your username is not supported in every
federated software so we cannot allow username changes. Your best option is to create a new account with your desired username.
-
+ {!! __("helpcenter.profileEditUpdateUsernameAnswer") !!}
- Privacy
-
+
{{ __('helpcenter.profilePrivacyTitle')}}
+
- How do I set my photos and videos to private so that only approved followers can see them?
+ {{ __('helpcenter.profilePrivacyAsk')}}
-
- To change your account visibility:
-
- - Go to {{route('settings.privacy')}}.
- - Check the Private Account checkbox.
- - The confirmation modal will popup and ask you if you want to keep existing followers and disable new follow requests
- - Click the Submit button.
-
-
+ {!! __('helpcenter.profilePrivacyAnswer') !!}
- {{--
-
-
- Who can like, share or comment on my photos and videos?
-
-
-
- It depends on the visibility of your post.
-
-
- --}}
- {{--
-
-
- How do I filter out comments that I don't want to appear on my posts?
-
-
- --}}
- {{--
-
-
- Who can see my posts?
-
-
- --}}
- {{--
-
-
- Who can see my private posts if I add a hashtag?
-
-
- --}}
- Security
-
+
{{ __("helpcenter.profileSecurityTitle")}}
+
- How can I secure my account?
+ {{ __("helpcenter.profileSecurityHowSecureAsk")}}
-
- Here are some recommendations to keep your account secure:
-
- - Pick a strong password, don't re-use it on other websites
- - Never share your password
- - Remember to log out on public computers or devices
- - Periodically check your Account Log for any suspicious activity
- - Setup Two Factor Authentication
-
-
+ {!! __("helpcenter.profileSecurityHowSecureAnswer") !!}
-
+
- How can I add additional protection to my account?
+ {{ __("helpcenter.profileSecurityHowAddSecurityAsk")}}
-
- You can add an additional layer of security to your account by enabling
Two Factor Authentication. For more information, check your
security settings.
-
+ {!! __("helpcenter.profileSecurityHowAddSecurityAnswer") !!}
-
+
- How do I report unauthorized use of my account?
+ {{ __("helpcenter.profileSecurityHowReportUnauthorizedAsk")}}
- Please contact the administrators of this instance{{-- , for contact information
click here --}}.
+ {{ __('helpcenter.profileSecurityHowReportUnauthorizedAnswer') }}
- Migration
+ {{ __("helpcenter.profileMigrarionTitle") }}
- How can I migrate my account?
+ {{ __("helpcenter.profileMigrarionHowMigrateAsk") }}
-
- To migrate your account successfully, your old account must be on a Pixelfed or Mastodon server, or one that supports the Mastodon Account Migration
extension.
-
-
Navigate to the Account Aliases page in the Settings to begin.
-
+ {!! __("helpcenter.profileMigrarionHowMigrateAnswer") !!}
- How long does the migration take?
+ {{ __("helpcenter.profileMigrationHowLongAsk") }}
- It can take a few hours to process post migration imports, please contact admins if it takes longer than 24 hours.
+ {!! __("helpcenter.profileMigrationHowLongAnswer") !!}
- Why are my posts not migrated?
+ {{__("helpcenter.profileMigrationWhyPostNotAsk") }}
-
- Post migrations are officially supported on Pixelfed servers running v0.11.9+ and higher, and when enabled by server admins.
-
- It can take a few hours to process post migration imports, please contact admins if it takes longer than 24 hours.
-
+ {!! __("helpcenter.profileMigrationWhyPostNotAnswer") !!}
- Delete Your Account
-
+
{{ __('helpcenter.profileDeleteTitle') }}
+
- How do I temporarily disable my account?
+ {{ __('helpcenter.profileDeleteTemporaryAsk') }}
-
-
If you temporarily disable your account, your profile, photos, comments and likes will be hidden until you reactivate it by logging back in. To temporarily disable your account:
-
- - Log into {{config('pixelfed.domain.app')}}
- - Tap or click the menu and select Settings
- - Navigate to the Security Settings
- - Confirm your account password.
- - Scroll down to the Danger Zone section and click on the Disable button.
- - Follow the instructions on the next page.
-
-
+ {!! __('helpcenter.profileDeleteTemporaryAnswer') !!}
@if(config('pixelfed.account_deletion'))
-
+
How do I delete my account?