From a345479de20bb508ef576af54427c35888deb0cc Mon Sep 17 00:00:00 2001
From: Masoud Abkenar
Date: Mon, 11 Sep 2017 01:35:27 +0200
Subject: l10n: update Persian translation (#4880)
* l10n: update Persian translation
* l10n: fix missing Persian translation
---
app/javascript/mastodon/locales/fa.json | 2 ++
1 file changed, 2 insertions(+)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/fa.json b/app/javascript/mastodon/locales/fa.json
index d05b26eb9..284c5a812 100644
--- a/app/javascript/mastodon/locales/fa.json
+++ b/app/javascript/mastodon/locales/fa.json
@@ -34,6 +34,7 @@
"column.mutes": "کاربران بیصداشده",
"column.notifications": "اعلانها",
"column.public": "نوشتههای همهجا",
+ "column.pins": "نوشتههای ثابت",
"column_back_button.label": "بازگشت",
"column_header.hide_settings": "نهفتن تنظیمات",
"column_header.moveLeft_settings": "انتقال ستون به چپ",
@@ -111,6 +112,7 @@
"navigation_bar.mutes": "کاربران بیصداشده",
"navigation_bar.preferences": "ترجیحات",
"navigation_bar.public_timeline": "نوشتههای همهجا",
+ "navigation_bar.pins": "نوشتههای ثابت",
"notification.favourite": "{name} نوشتهٔ شما را پسندید",
"notification.follow": "{name} پیگیر شما شد",
"notification.mention": "{name} از شما نام برد",
--
cgit
From c2bee07dbc12c799f412a39a4d5499264baac81e Mon Sep 17 00:00:00 2001
From: Anna e só
Date: Sun, 10 Sep 2017 20:40:29 -0300
Subject: l10n: Full PT-BR translation (#4882)
* devise.pt-BR.yml now fully translated
* pt-BR.json now fully translated
* pt-BR.yml partially translated; 46 lines left
* pt-BR.yml now fully translated
* simple_form.pt-BR.yml fully translated
* doorkeeper.pt-BR.yml now fully translated
* E-mail instructions on app/views/user_mailer added and fully translated
* PT-BR translation for #4871
* Deleted an unwanted caracter on pt-BR.yml
* Fixing typos on pt-BR.yml
* Added translation for Pinned toots tab on pt-BR.json
* Added missing translation for navigation_bar.pins
---
app/javascript/mastodon/locales/pt-BR.json | 176 ++++---
.../confirmation_instructions.pt-BR.html.erb | 12 +
.../confirmation_instructions.pt-BR.text.erb | 12 +
.../user_mailer/password_change.pt-BR.html.erb | 3 +
.../user_mailer/password_change.pt-BR.text.erb | 3 +
.../reset_password_instructions.pt-BR.html.erb | 8 +
.../reset_password_instructions.pt-BR.text.erb | 8 +
config/locales/devise.pt-BR.yml | 70 +--
config/locales/doorkeeper.pt-BR.yml | 115 ++--
config/locales/pt-BR.yml | 581 +++++++++++++++------
config/locales/simple_form.pt-BR.yml | 75 +--
11 files changed, 683 insertions(+), 380 deletions(-)
create mode 100644 app/views/user_mailer/confirmation_instructions.pt-BR.html.erb
create mode 100644 app/views/user_mailer/confirmation_instructions.pt-BR.text.erb
create mode 100644 app/views/user_mailer/password_change.pt-BR.html.erb
create mode 100644 app/views/user_mailer/password_change.pt-BR.text.erb
create mode 100644 app/views/user_mailer/reset_password_instructions.pt-BR.html.erb
create mode 100644 app/views/user_mailer/reset_password_instructions.pt-BR.text.erb
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/pt-BR.json b/app/javascript/mastodon/locales/pt-BR.json
index e861bf73f..87f8097aa 100644
--- a/app/javascript/mastodon/locales/pt-BR.json
+++ b/app/javascript/mastodon/locales/pt-BR.json
@@ -6,25 +6,25 @@
"account.follow": "Seguir",
"account.followers": "Seguidores",
"account.follows": "Segue",
- "account.follows_you": "É seu seguidor",
+ "account.follows_you": "Segue você",
"account.media": "Mídia",
"account.mention": "Mencionar @{name}",
"account.mute": "Silenciar @{name}",
"account.posts": "Posts",
"account.report": "Denunciar @{name}",
- "account.requested": "Aguardando aprovação",
+ "account.requested": "Aguardando aprovação. Clique para cancelar a solicitação.",
"account.share": "Compartilhar perfil de @{name}",
- "account.unblock": "Não bloquear @{name}",
+ "account.unblock": "Desbloquear @{name}",
"account.unblock_domain": "Desbloquear {domain}",
"account.unfollow": "Deixar de seguir",
"account.unmute": "Não silenciar @{name}",
"account.view_full_profile": "Ver perfil completo",
- "boost_modal.combo": "Pode clicar {combo} para não voltar a ver",
- "bundle_column_error.body": "Something went wrong while loading this component.",
+ "boost_modal.combo": "Você pode pressionar {combo} para ignorar este diálogo na próxima vez",
+ "bundle_column_error.body": "Algo de errado aconteceu enquanto este componente era carregado.",
"bundle_column_error.retry": "Tente novamente",
- "bundle_column_error.title": "Network error",
+ "bundle_column_error.title": "Erro de rede",
"bundle_modal_error.close": "Fechar",
- "bundle_modal_error.message": "Something went wrong while loading this component.",
+ "bundle_modal_error.message": "Algo de errado aconteceu enquanto este componente era carregado.",
"bundle_modal_error.retry": "Tente novamente",
"column.blocks": "Usuários bloqueados",
"column.community": "Local",
@@ -34,6 +34,7 @@
"column.mutes": "Usuários silenciados",
"column.notifications": "Notificações",
"column.public": "Global",
+ "column.pins": "Postagens fixadas",
"column_back_button.label": "Voltar",
"column_header.hide_settings": "Esconder configurações",
"column_header.moveLeft_settings": "Mover coluna para a esquerda",
@@ -43,156 +44,157 @@
"column_header.unpin": "Desafixar",
"column_subheading.navigation": "Navegação",
"column_subheading.settings": "Configurações",
- "compose_form.lock_disclaimer": "A sua conta não está {locked}. Qualquer pessoa pode te seguir e visualizar as suas postagens só para seguidores.",
- "compose_form.lock_disclaimer.lock": "locked",
+ "compose_form.lock_disclaimer": "A sua conta não está {locked}. Qualquer pessoa pode te seguir e visualizar postagens direcionadas a apenas seguidores.",
+ "compose_form.lock_disclaimer.lock": "trancado",
"compose_form.placeholder": "No que você está pensando?",
- "compose_form.privacy_disclaimer": "O seu conteúdo privado será compartilhado com os usuários do {domains}. Você confia {domainsCount, plural, one {neste servidor} other {nestes servidores}}? As configurações de privacidade só funcionam em instâncias do Mastodon. Se {domains} {domainsCount, plural, one {não é uma instância} other {não são instâncias}}, não há como garantir a privacidade de suas postagens, e elas podem ser compartilhadas com outros.",
+ "compose_form.privacy_disclaimer": "O seu conteúdo privado será compartilhado com os usuários de {domains}. Você confia {domainsCount, plural, one {neste servidor} other {nestes servidores}}? As configurações de privacidade só funcionam em instâncias do Mastodon. Se {domains} {domainsCount, plural, one {não é uma instância} other {não são instâncias}}, não há como garantir a privacidade de suas postagens, e elas podem ser compartilhadas com destinatários indesejados.",
"compose_form.publish": "Publicar",
"compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "Marcar mídia como conteúdo sensível",
- "compose_form.spoiler": "Esconder texto com aviso",
+ "compose_form.spoiler": "Esconder texto com aviso de conteúdo",
"compose_form.spoiler_placeholder": "Aviso de conteúdo",
"confirmation_modal.cancel": "Cancelar",
"confirmations.block.confirm": "Bloquear",
"confirmations.block.message": "Você tem certeza de que quer bloquear {name}?",
"confirmations.delete.confirm": "Excluir",
- "confirmations.delete.message": "Você tem certeza de que quer excluir este status?",
+ "confirmations.delete.message": "Você tem certeza de que quer excluir esta postagem?",
"confirmations.domain_block.confirm": "Esconder o domínio inteiro",
"confirmations.domain_block.message": "Você quer mesmo bloquear {domain} inteiro? Na maioria dos casos, silenciar ou bloquear alguns usuários é o suficiente e o recomendado.",
"confirmations.mute.confirm": "Silenciar",
"confirmations.mute.message": "Você tem certeza de que quer silenciar {name}?",
"confirmations.unfollow.confirm": "Deixar de seguir",
"confirmations.unfollow.message": "Você tem certeza de que quer deixar de seguir {name}?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
- "emoji_button.activity": "Activity",
- "emoji_button.flags": "Flags",
- "emoji_button.food": "Food & Drink",
+ "embed.instructions": "Incorpore esta postagem em seu site copiando o código abaixo:",
+ "embed.preview": "Aqui está uma previsão de como ficará:",
+ "emoji_button.activity": "Atividades",
+ "emoji_button.flags": "Bandeiras",
+ "emoji_button.food": "Comidas & Bebidas",
"emoji_button.label": "Inserir Emoji",
- "emoji_button.nature": "Nature",
- "emoji_button.objects": "Objects",
- "emoji_button.people": "People",
- "emoji_button.search": "Search...",
- "emoji_button.symbols": "Symbols",
- "emoji_button.travel": "Travel & Places",
- "empty_column.community": "Ainda não existem conteúdo local para mostrar!",
- "empty_column.hashtag": "Ainda não existe qualquer conteúdo com essa hashtag",
- "empty_column.home": "Ainda não segues qualquer utilizador. Visita {public} ou utiliza a pesquisa para procurar outros utilizadores.",
- "empty_column.home.inactivity": "Your home feed is empty. If you have been inactive for a while, it will be regenerated for you soon.",
+ "emoji_button.nature": "Natureza",
+ "emoji_button.objects": "Objetos",
+ "emoji_button.people": "Pessoas",
+ "emoji_button.search": "Buscar...",
+ "emoji_button.symbols": "Símbolos",
+ "emoji_button.travel": "Viagens & Lugares",
+ "empty_column.community": "A timeline local está vazia. Escreva algo publicamente para começar!",
+ "empty_column.hashtag": "Ainda não há qualquer conteúdo com essa hashtag",
+ "empty_column.home": "Você ainda não segue usuário algo. Visite a timeline {public} ou use o buscador para procurar e conhecer outros usuários.",
+ "empty_column.home.inactivity": "A sua página inicial está vazia. Se você esteve inativo por um tempo, ela irá se regenerar em alguns intantes.",
"empty_column.home.public_timeline": "global",
- "empty_column.notifications": "Não tens notificações. Interage com outros utilizadores para iniciar uma conversa.",
- "empty_column.public": "Não há nada aqui! Escreve algo publicamente ou segue outros utilizadores para ver aqui os conteúdos públicos.",
+ "empty_column.notifications": "Você ainda não possui notificações. Interaja com outros usuários para começar a conversar!",
+ "empty_column.public": "Não há nada aqui! Escreva algo publicamente ou siga manualmente usuários de outras instâncias.",
"follow_request.authorize": "Autorizar",
"follow_request.reject": "Rejeitar",
"getting_started.appsshort": "Apps",
"getting_started.faq": "FAQ",
"getting_started.heading": "Primeiros passos",
- "getting_started.open_source_notice": "Mastodon é software de fonte aberta. Podes contribuir ou repostar problemas no GitHub do projecto: {github}.",
- "getting_started.userguide": "User Guide",
+ "getting_started.open_source_notice": "Mastodon é um software de código aberto. Você pode contribuir ou reportar problemas na página do GitHub do projeto: {github}.",
+ "getting_started.userguide": "Guia de usuário",
"home.column_settings.advanced": "Avançado",
"home.column_settings.basic": "Básico",
"home.column_settings.filter_regex": "Filtrar com uma expressão regular",
- "home.column_settings.show_reblogs": "Mostrar as partilhas",
+ "home.column_settings.show_reblogs": "Mostrar compartilhamentos",
"home.column_settings.show_replies": "Mostrar as respostas",
- "home.settings": "Parâmetros da listagem",
+ "home.settings": "Configurações de colunas",
"lightbox.close": "Fechar",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "Próximo",
+ "lightbox.previous": "Anterior",
"loading_indicator.label": "Carregando...",
"media_gallery.toggle_visible": "Esconder/Mostrar",
"missing_indicator.label": "Não encontrado",
- "navigation_bar.blocks": "Utilizadores bloqueados",
+ "navigation_bar.blocks": "Usuários bloqueados",
"navigation_bar.community_timeline": "Local",
"navigation_bar.edit_profile": "Editar perfil",
"navigation_bar.favourites": "Favoritos",
"navigation_bar.follow_requests": "Seguidores pendentes",
"navigation_bar.info": "Mais informações",
"navigation_bar.logout": "Sair",
- "navigation_bar.mutes": "Utilizadores silenciados",
+ "navigation_bar.mutes": "Usuários silenciados",
"navigation_bar.preferences": "Preferências",
"navigation_bar.public_timeline": "Global",
- "notification.favourite": "{name} adicionou o teu post aos favoritos",
- "notification.follow": "{name} seguiu-te",
- "notification.mention": "{name} mencionou-te",
- "notification.reblog": "{name} partilhou o teu post",
+ "navigation_bar.pins": "Postagens fixadas",
+ "notification.favourite": "{name} adicionou a sua postagem aos favoritos",
+ "notification.follow": "{name} te seguiu",
+ "notification.mention": "{name} te mencionou",
+ "notification.reblog": "{name} compartilhou a sua postagem",
"notifications.clear": "Limpar notificações",
- "notifications.clear_confirmation": "Queres mesmo limpar todas as notificações?",
+ "notifications.clear_confirmation": "Você tem certeza de que quer limpar todas as suas notificações permanentemente?",
"notifications.column_settings.alert": "Notificações no computador",
"notifications.column_settings.favourite": "Favoritos:",
"notifications.column_settings.follow": "Novos seguidores:",
"notifications.column_settings.mention": "Menções:",
- "notifications.column_settings.push": "Push notifications",
- "notifications.column_settings.push_meta": "This device",
- "notifications.column_settings.reblog": "Partilhas:",
+ "notifications.column_settings.push": "Enviar notificações",
+ "notifications.column_settings.push_meta": "Este aparelho",
+ "notifications.column_settings.reblog": "Compartilhamento:",
"notifications.column_settings.show": "Mostrar nas colunas",
"notifications.column_settings.sound": "Reproduzir som",
- "onboarding.done": "Done",
- "onboarding.next": "Next",
- "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.",
- "onboarding.page_four.home": "The home timeline shows posts from people you follow.",
- "onboarding.page_four.notifications": "The notifications column shows when someone interacts with you.",
- "onboarding.page_one.federation": "Mastodon is a network of independent servers joining up to make one larger social network. We call these servers instances.",
- "onboarding.page_one.handle": "You are on {domain}, so your full handle is {handle}",
- "onboarding.page_one.welcome": "Welcome to Mastodon!",
- "onboarding.page_six.admin": "Your instance's admin is {admin}.",
- "onboarding.page_six.almost_done": "Almost done...",
+ "onboarding.done": "Pronto",
+ "onboarding.next": "Próximo",
+ "onboarding.page_five.public_timelines": "A timeline local mostra postagens públicas de todos os usuários no {domain}. A timeline federada mostra todas as postagens de todas as pessoas que pessoas no {domain} seguem. Estas são as timelines públicas, uma ótima maneira de conhecer novas pessoas.",
+ "onboarding.page_four.home": "A página inicial mostra postagens de pessoas que você segue.",
+ "onboarding.page_four.notifications": "A coluna de notificações te mostra quando alguém interage com você.",
+ "onboarding.page_one.federation": "Mastodon é uma rede d servidores independentes se juntando para fazer uma grande rede social. Nós chamamos estes servidores de instâncias.",
+ "onboarding.page_one.handle": "Você está no {domain}, então o seu nome de usuário completo é {handle}",
+ "onboarding.page_one.welcome": "Seja bem-vindo(a) ao Mastodon!",
+ "onboarding.page_six.admin": "O administrador de sua instância é {admin}.",
+ "onboarding.page_six.almost_done": "Quase acabando...",
"onboarding.page_six.appetoot": "Bon Appetoot!",
- "onboarding.page_six.apps_available": "There are {apps} available for iOS, Android and other platforms.",
- "onboarding.page_six.github": "Mastodon is free open-source software. You can report bugs, request features, or contribute to the code on {github}.",
- "onboarding.page_six.guidelines": "community guidelines",
- "onboarding.page_six.read_guidelines": "Please read {domain}'s {guidelines}!",
- "onboarding.page_six.various_app": "mobile apps",
- "onboarding.page_three.profile": "Edit your profile to change your avatar, bio, and display name. There, you will also find other preferences.",
- "onboarding.page_three.search": "Use the search bar to find people and look at hashtags, such as {illustration} and {introductions}. To look for a person who is not on this instance, use their full handle.",
- "onboarding.page_two.compose": "Write posts from the compose column. You can upload images, change privacy settings, and add content warnings with the icons below.",
- "onboarding.skip": "Skip",
+ "onboarding.page_six.apps_available": "Há {apps} disponíveis para iOS, Android e outras plataformas.",
+ "onboarding.page_six.github": "Mastodon é um software gratuito e de código aberto. Você pode reportar bugs, prequisitar novas funções ou contribuir para o código no {github}.",
+ "onboarding.page_six.guidelines": "diretrizes da comunidade",
+ "onboarding.page_six.read_guidelines": "Por favor, leia as {guidelines} do {domain}!",
+ "onboarding.page_six.various_app": "aplicativos móveis",
+ "onboarding.page_three.profile": "Edite o seu perfil para mudar o seu o seu avatar, bio e nome de exibição. No menu de configurações, você também encontrará outras preferências.",
+ "onboarding.page_three.search": "Use a barra de buscas para encontrar pessoas e consultar hashtahs, como #illustrations e #introductions. Para procurar por uma pessoa que não estiver nesta instância, use o nome de usuário completo dela.",
+ "onboarding.page_two.compose": "Escreva postagens na coluna de escrita. Você pode hospedar imagens, mudar as configurações de privacidade e adicionar alertas de conteúdo através dos ícones abaixo.",
+ "onboarding.skip": "Pular",
"privacy.change": "Ajustar a privacidade da mensagem",
- "privacy.direct.long": "Apenas para utilizadores mencionados",
- "privacy.direct.short": "Directo",
- "privacy.private.long": "Apenas para os seguidores",
- "privacy.private.short": "Privado",
+ "privacy.direct.long": "Apenas para usuários mencionados",
+ "privacy.direct.short": "Direta",
+ "privacy.private.long": "Apenas para seus seguidores",
+ "privacy.private.short": "Privada",
"privacy.public.long": "Publicar em todos os feeds",
- "privacy.public.short": "Público",
- "privacy.unlisted.long": "Não publicar nos feeds públicos",
- "privacy.unlisted.short": "Não listar",
+ "privacy.public.short": "Pública",
+ "privacy.unlisted.long": "Não publicar em feeds públicos",
+ "privacy.unlisted.short": "Não listada",
"reply_indicator.cancel": "Cancelar",
"report.placeholder": "Comentários adicionais",
"report.submit": "Enviar",
"report.target": "Denunciar",
"search.placeholder": "Pesquisar",
"search_results.total": "{count, number} {count, plural, one {resultado} other {resultados}}",
- "standalone.public_title": "A look inside...",
- "status.cannot_reblog": "This post cannot be boosted",
+ "standalone.public_title": "Dê uma espiada...",
+ "status.cannot_reblog": "Esta postagem não pode ser compartilhada",
"status.delete": "Eliminar",
- "status.embed": "Embed",
+ "status.embed": "Incorporar",
"status.favourite": "Adicionar aos favoritos",
"status.load_more": "Carregar mais",
- "status.media_hidden": "Media escondida",
+ "status.media_hidden": "Mídia escondida",
"status.mention": "Mencionar @{name}",
- "status.mute_conversation": "Mute conversation",
+ "status.mute_conversation": "Silenciar conversa",
"status.open": "Expandir",
- "status.pin": "Pin on profile",
- "status.reblog": "Partilhar",
- "status.reblogged_by": "{name} partilhou",
+ "status.pin": "Fixar no perfil",
+ "status.reblog": "Compartilhar",
+ "status.reblogged_by": "{name} compartilhou",
"status.reply": "Responder",
- "status.replyAll": "Reply to thread",
- "status.report": "Denúnciar @{name}",
+ "status.replyAll": "Responder à sequência",
+ "status.report": "Denunciar @{name}",
"status.sensitive_toggle": "Clique para ver",
"status.sensitive_warning": "Conteúdo sensível",
- "status.share": "Share",
+ "status.share": "Compartilhar",
"status.show_less": "Mostrar menos",
"status.show_more": "Mostrar mais",
- "status.unmute_conversation": "Unmute conversation",
- "status.unpin": "Unpin from profile",
+ "status.unmute_conversation": "Desativar silêncio desta conversa",
+ "status.unpin": "Desafixar do perfil",
"tabs_bar.compose": "Criar",
"tabs_bar.federated_timeline": "Global",
- "tabs_bar.home": "Home",
+ "tabs_bar.home": "Página inicial",
"tabs_bar.local_timeline": "Local",
"tabs_bar.notifications": "Notificações",
"upload_area.title": "Arraste e solte para enviar",
- "upload_button.label": "Adicionar media",
+ "upload_button.label": "Adicionar mídia",
"upload_form.undo": "Anular",
- "upload_progress.label": "A gravar...",
+ "upload_progress.label": "Salvando...",
"video_player.expand": "Expandir vídeo",
"video_player.toggle_sound": "Ligar/Desligar som",
"video_player.toggle_visible": "Ligar/Desligar vídeo",
diff --git a/app/views/user_mailer/confirmation_instructions.pt-BR.html.erb b/app/views/user_mailer/confirmation_instructions.pt-BR.html.erb
new file mode 100644
index 000000000..80edcfda7
--- /dev/null
+++ b/app/views/user_mailer/confirmation_instructions.pt-BR.html.erb
@@ -0,0 +1,12 @@
+Boas vindas, <%= @resource.email %>!
+
+Você acabou de criar uma conta no <%= @instance %>.
+
+Para confirmar o seu cadastro, por favor clique no link a seguir:
+<%= link_to 'Confirmar cadastro', confirmation_url(@resource, confirmation_token: @token) %>
+
+
Por favor, leia também os nossos <%= link_to 'termos de serviços', terms_url %>.
+
+Atenciosamente,
+
+
A equipe do <%= @instance %>
diff --git a/app/views/user_mailer/confirmation_instructions.pt-BR.text.erb b/app/views/user_mailer/confirmation_instructions.pt-BR.text.erb
new file mode 100644
index 000000000..95efb3436
--- /dev/null
+++ b/app/views/user_mailer/confirmation_instructions.pt-BR.text.erb
@@ -0,0 +1,12 @@
+Boas vindas, <%= @resource.email %>!
+
+Você acabou de criar uma conta no <%= @instance %>.
+
+Para confirmar o seu cadastro, por favor clique no link a seguir:
+<%= confirmation_url(@resource, confirmation_token: @token) %>
+
+Por favor, leia também os nossos termos e condições de uso <%= terms_url %>
+
+Atenciosamente,
+
+A equipe do <%= @instance %>
diff --git a/app/views/user_mailer/password_change.pt-BR.html.erb b/app/views/user_mailer/password_change.pt-BR.html.erb
new file mode 100644
index 000000000..5f707ba09
--- /dev/null
+++ b/app/views/user_mailer/password_change.pt-BR.html.erb
@@ -0,0 +1,3 @@
+Olá, <%= @resource.email %>!
+
+Estamos te contatando para te notificar que a senha senha no <%= @instance %> foi modificada.
diff --git a/app/views/user_mailer/password_change.pt-BR.text.erb b/app/views/user_mailer/password_change.pt-BR.text.erb
new file mode 100644
index 000000000..d8b76648c
--- /dev/null
+++ b/app/views/user_mailer/password_change.pt-BR.text.erb
@@ -0,0 +1,3 @@
+Olá, <%= @resource.email %>!
+
+Estamos te contatando para te notificar que a senha senha no <%= @instance %> foi modificada.
diff --git a/app/views/user_mailer/reset_password_instructions.pt-BR.html.erb b/app/views/user_mailer/reset_password_instructions.pt-BR.html.erb
new file mode 100644
index 000000000..940438b7c
--- /dev/null
+++ b/app/views/user_mailer/reset_password_instructions.pt-BR.html.erb
@@ -0,0 +1,8 @@
+Olá, <%= @resource.email %>!
+
+Alguém solicitou um link para mudar a sua senha no <%= @instance %>. Você pode fazer isso através do link abaixo:
+
+<%= link_to 'Mudar a minha senha', edit_password_url(@resource, reset_password_token: @token) %>
+
+Se você não solicitou isso, por favor ignore este e-mail.
+A senha senha não será modificada até que você acesse o link acima e crie uma nova.
diff --git a/app/views/user_mailer/reset_password_instructions.pt-BR.text.erb b/app/views/user_mailer/reset_password_instructions.pt-BR.text.erb
new file mode 100644
index 000000000..f574fe08f
--- /dev/null
+++ b/app/views/user_mailer/reset_password_instructions.pt-BR.text.erb
@@ -0,0 +1,8 @@
+Olá, <%= @resource.email %>!
+
+Alguém solicitou um link para mudar a sua senha no <%= @instance %>. Você pode fazer isso através do link abaixo:
+
+<%= edit_password_url(@resource, reset_password_token: @token) %>
+
+Se você não solicitou isso, por favor ignore este e-mail.
+A senha senha não será modificada até que você acesse o link acima e crie uma nova.
diff --git a/config/locales/devise.pt-BR.yml b/config/locales/devise.pt-BR.yml
index c647fabbd..13736b3a3 100644
--- a/config/locales/devise.pt-BR.yml
+++ b/config/locales/devise.pt-BR.yml
@@ -2,60 +2,60 @@
pt-BR:
devise:
confirmations:
- confirmed: O seu endereço de email foi confirmado.
- send_instructions: Você irá receber um email com instruções em como confirmar o seu endereço de email dentro de alguns minutos.
- send_paranoid_instructions: Se o seu endereço de email já existir na nossa base de dados, irá receber um email com instruções em como confirmá-lo dentro de alguns minutos.
+ confirmed: O seu endereço de e-mail foi confirmado.
+ send_instructions: Você receberá uma mensagem em sua caixa de entrada com instruções sobre como confirmar o seu endereço de e-mail dentro de alguns minutos. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
+ send_paranoid_instructions: Se o seu endereço de e-mail já existir em nossa base de dados, você receberá uma mensagem em sua caixa de entrada com instruções sobre confirmá-lo dentro de alguns minutos. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
failure:
already_authenticated: A sua sessão já está aberta.
inactive: A sua contra ainda não está ativada.
- invalid: "%{authentication_keys} ou password inválidos."
- last_attempt: Tem mais uma tentativa antes de a sua conta ser protegida.
- locked: A sua conta está protegida
- not_found_in_database: "%{authentication_keys} ou password inválidos."
- timeout: A sua sessão expirou. Por favore entre de novo para continuar.
- unauthenticated: Você precsa de entrar ou registar-se antes de continuar.
- unconfirmed: Você tem de confirmar o seu endereço de email antes de continuar.
+ invalid: "%{authentication_keys} ou senha inválida."
+ last_attempt: Você tem apenas mais uma tentativa sobrando antes que a sua conta seja bloqueada.
+ locked: A sua conta está bloqueada.
+ not_found_in_database: "%{authentication_keys} ou senha inválida."
+ timeout: A sua sessão expirou. Por favor, entre novamente para continuar.
+ unauthenticated: Você precisa entrar ou registar-se antes de continuar.
+ unconfirmed: Você precisa confirmar o seu endereço de e-mail antes de continuar.
mailer:
confirmation_instructions:
subject: 'Mastodon: Instruções de confirmação'
password_change:
- subject: 'Mastodon: Password nova'
+ subject: 'Mastodon: Senha modificada'
reset_password_instructions:
- subject: 'Mastodon: Instruções para editar a password'
+ subject: 'Mastodon: Instruções para mudança de senha'
unlock_instructions:
- subject: 'Mastodon: Instruções para desproteger a sua conta'
+ subject: 'Mastodon: Instruções de desbloqueio'
omniauth_callbacks:
- failure: Could not authenticate you from %{kind} because "%{reason}".
- success: Successfully authenticated from %{kind} account.
+ failure: Não foi possível autenticá-lo como %{kind} porque "%{reason}".
+ success: Autenticado com sucesso como %{kind}.
passwords:
- no_token: Você não pode aceder a esta página sem ter vindo de um email para mudar a password. Se este for o case, por favor faça questão de verificar que usou o URL no email.
- send_instructions: Irá receber um email com instruções em como mudar a sua password dentro de algns minutos.
- send_paranoid_instructions: Se seu endereço de email existe na nossa base de dados, irá receber um link para recuperar a sua password dentro de alguns minutos.
- updated: A sua password foi alterada. A sua sessão está aberta.
- updated_not_active: A sua password foi alterada.
+ no_token: Você não pode acessar esta página se não tiver vindo de uma mensagem de mudança de senha. Se este for o caso, por favor verifique se a URL utilizada está completa.
+ send_instructions: Se o seu endereço de e-mail já estiver cadastrado em nossa base de dados, você receberá uma mensagem com um link para realizar a mudança de senha em alguns minutos. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
+ send_paranoid_instructions: Se o seu endereço de e-mail já estiver cadastrado em nossa base de dados, você receberá uma mensagem com um link para realizar a mudança de senha em alguns minutos. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
+ updated: A sua senha foi alterada. A sua sessão está aberta.
+ updated_not_active: A sua senha foi alterada.
registrations:
destroyed: Adeus! A sua conta foi cancelada. Esperamos vê-lo em breve.
- signed_up: Bem vindo! A sua conta foi registada com sucesso.
- signed_up_but_inactive: A sua conta foi registada. No entanto, não abrimos a sua sessão porque a sua conta ainda não foi ativada.
- signed_up_but_locked: A sua conta foi registada. No entanto, não abrimos a sua sessão porque a sua conta está protegida.
- signed_up_but_unconfirmed: Uma mensagem com um link de confirmação foi enviada para o seu email. Por favor siga o link para ativar a sua conta.
- update_needs_confirmation: Você mudou o seu endereço de email ou password, mas é necessário confirmar a mudança. Por favor siga o link que foi enviado para o seu novo endereço de email.
+ signed_up: Bem vindo! A sua conta foi registrada com sucesso.
+ signed_up_but_inactive: A sua conta foi registrada. No entanto, não abrimos a sua sessão porque a sua conta ainda não foi ativada.
+ signed_up_but_locked: A sua conta foi registrada. No entanto, não abrimos a sua sessão porque a sua conta está bloqueada.
+ signed_up_but_unconfirmed: Uma mensagem com um link de confirmação foi enviada para o seu endereço de e-mail. Por favor, siga o link para ativar a sua conta e, caso não tenha recebido esta mensagem, cheque a sua pasta de spam.
+ update_needs_confirmation: Você mudou o seu endereço de e-mail ou a sua senha, mas é necessário confirmar a mudança. Por favor siga o link que foi enviado para o seu novo endereço de e-mail e, caso não tenha recebido esta mensagem, cheque a sua pasta de spam.
updated: A sua conta foi alterada com sucesso.
sessions:
- already_signed_out: Sessão fechada.
+ already_signed_out: Sessão encerrada.
signed_in: Sessão iniciada.
- signed_out: Sessão fechada.
+ signed_out: Sessão encerrada.
unlocks:
- send_instructions: Irá receber um email com instruções para desproteger a sua conta dentro de alguns minutos.
- send_paranoid_instructions: Se a sua conta existe, irá receber um email com instruções a detalhar como a desproteger dentro de alguns minutos.
- unlocked: A sua conta foi desprotegida. Por favor inicie sessão para continuar.
+ send_instructions: Você receberá uma mensagem com instruções para desbloquear a sua conta em alguns instantes. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
+ send_paranoid_instructions: Se a sua conta já existe, você receberá uma mensagem com instruções para desbloquear a sua conta em alguns instantes. Por favor, cheque a sua pasta de spam caso não tenha recebido esta mensagem.
+ unlocked: A sua conta foi desbloqueada com sucesso. Por favor inicie sessão para continuar.
errors:
messages:
already_confirmed: já foi confirmado, por favor tente iniciar sessão
- confirmation_period_expired: tem de ser confirmado dentro de %{period}, por favor tente outra vez
- expired: expirou, por favor tente outra vez
+ confirmation_period_expired: precisa ser confirmada em até %{period}, por favor, solicite novo link de confirmação
+ expired: expirou, por favor solicite uma nova
not_found: não encontrado
- not_locked: não está protegido
+ not_locked: não está bloqueada
not_saved:
- one: '1 erro impediu este %{resource} de ser guardado:'
- other: "%{count} erros impediram este %{resource} de ser guardado:"
+ one: '1 erro impediu este %{resource} de ser salvo(a):'
+ other: "%{count} erros impediram este %{resource} de ser salvo(a):"
diff --git a/config/locales/doorkeeper.pt-BR.yml b/config/locales/doorkeeper.pt-BR.yml
index 85ea3bfcc..f0f3c6893 100644
--- a/config/locales/doorkeeper.pt-BR.yml
+++ b/config/locales/doorkeeper.pt-BR.yml
@@ -3,17 +3,19 @@ pt-BR:
activerecord:
attributes:
doorkeeper/application:
- name: Nome
- redirect_uri: Redirect URI
+ name: Nome do aplicativo
+ redirect_uri: URI de redirecionamento
+ scopes: Autorizações
+ website: Website do aplicativo
errors:
models:
doorkeeper/application:
attributes:
redirect_uri:
fragment_present: não pode conter um fragmento.
- invalid_uri: tem de ser um URI válido.
- relative_uri: tem de ser um URI absoluto.
- secured_uri: tem de ser um HTTPS/SSL URI.
+ invalid_uri: precisa ser uma URI válida.
+ relative_uri: precisa ser uma URI absoluta.
+ secured_uri: precisa ser uma URI HTTPS/SSL.
doorkeeper:
applications:
buttons:
@@ -21,92 +23,97 @@ pt-BR:
cancel: Cancelar
destroy: Destruir
edit: Editar
- submit: Submeter
+ submit: Enviar
confirmations:
- destroy: Tem a certeza?
+ destroy: Você tem certeza?
edit:
- title: Editar aplicação
+ title: Editar aplicativo
form:
- error: Oops! Verifique que o formulário não tem erros
+ error: Oops! Verifique o seu formulário para saber de possíveis erros
help:
native_redirect_uri: Use %{native_redirect_uri} para testes locais
- redirect_uri: Utilize uma linha por URI
- scopes: Separate scopes with spaces. Leave blank to use the default scopes.
+ redirect_uri: Use uma linha para cada URI
+ scopes: Separe autorizações com espaços. Deixe em branco para usar autorizações padrões.
index:
- callback_url: Callback URL
+ application: Aplicativos
+ callback_url: URL de retorno
+ delete: Excluir
name: Nome
- new: Nova Aplicação
- title: As suas aplicações
+ new: Novo aplicativo
+ scopes: Autorizações
+ show: Mostrar
+ title: Seus aplicativos
new:
- title: Nova aplicação
+ title: Novos aplicativos
show:
actions: Ações
- application_id: Id de Aplicação
- callback_urls: Callback urls
- scopes: Scopes
- secret: Segredo
- title: 'Aplicação: %{name}'
+ application_id: Chave do cliente
+ callback_urls: URLs de retorno
+ scopes: Autorizações
+ secret: Segredo do cliente
+ title: 'Application: %{name}'
authorizations:
buttons:
- authorize: Autorize
- deny: Não autorize
+ authorize: Autorizar
+ deny: Negar
error:
title: Ocorreu um erro
new:
- able_to: Vai poder
- prompt: Aplicação %{client_name} requisita acesso à sua conta
- title: Autorização é necessária
+ able_to: Será capaz de
+ prompt: O aplicativo %{client_name} solicita acesso à sua conta
+ title: Autorização necessária
show:
title: Código de autorização
authorized_applications:
buttons:
revoke: Revogar
confirmations:
- revoke: Tem a certeza?
+ revoke: Você tem certeza?
index:
- application: Aplicação
- created_at: Criada em
- date_format: "%Y-%m-%d %H:%M:%S"
- title: As suas aplicações autorizadas
+ application: Aplicativos
+ created_at: Autorizados
+ date_format: "%d-%m-%Y %H:%M:%S"
+ scopes: Autorizações
+ title: Aplicativos autorizados
errors:
messages:
- access_denied: The resource owner or authorization server denied the request.
- credential_flow_not_configured: Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.
- invalid_client: Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.
- invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
- invalid_redirect_uri: The redirect uri included is not valid.
- invalid_request: The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.
- invalid_resource_owner: The provided resource owner credentials are not valid, or resource owner cannot be found
- invalid_scope: The requested scope is invalid, unknown, or malformed.
+ access_denied: O proprietário ou servidor de autorização negou a solicitação.
+ credential_flow_not_configured: Cadeira de Credenciais de Senha do Proprietário falhou porque Doorkeeper.configure.resource_owner_from_credentials não foram configuradas.
+ invalid_client: Autenticação do cliente falhou por causa de um cliente desconhecido, nenhum cliente de autenticação incluído ou método de autenticação não suportado.
+ invalid_grant: A garantia de autorização é inválida, expirou, foi revogada, não é equivalente à URI de redirecionamento usada da solicitação de autorização ou foi emitida por outro cliente.
+ invalid_redirect_uri: A URI de redirecionamento incluída não é válida.
+ invalid_request: A solicitação não possui um parâmetro obrigatório, inclui um valor não suportado ou está mal formatada.
+ invalid_resource_owner: As credenciais do proprietário não são válidas ou o proprietário não pôde ser encontrado.
+ invalid_scope: A autorização requirida é inválida, desconhecida ou está mal formatada.
invalid_token:
expired: O token de acesso expirou
revoked: O token de acesso foi revogado
unknown: O token de acesso é inválido
- resource_owner_authenticator_not_configured: Resource Owner find failed due to Doorkeeper.configure.resource_owner_authenticator being unconfiged.
- server_error: The authorization server encountered an unexpected condition which prevented it from fulfilling the request.
- temporarily_unavailable: The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
- unauthorized_client: The client is not authorized to perform this request using this method.
- unsupported_grant_type: The authorization grant type is not supported by the authorization server.
- unsupported_response_type: The authorization server does not support this response type.
+ resource_owner_authenticator_not_configured: Procura pelo proprietário falhou porque Doorkeeper.configure.resource_owner_authenticator não foi configurado.
+ server_error: O servidor de autorização encontrou uma condição inesperada que preveniu a solicitação de ser respondida.
+ temporarily_unavailable: O servidor de autorização é incapaz de lidar com a solicitação no momento por causa d múltiplas requisições ou manutenção programada.
+ unauthorized_client: O cliente não possui autorização para performar esta solicitação usando este método.
+ unsupported_grant_type: O tipo de garantia de autorização não é suportada pelo servidor de autorização.
+ unsupported_response_type: O servidor de autorização não suporta este tipo de resposta.
flash:
applications:
create:
- notice: Aplicação criada.
+ notice: Aplicativo criado.
destroy:
- notice: Aplicação eliminada.
+ notice: Aplicativo deletado.
update:
- notice: Aplicação alterada.
+ notice: Aplicativo atualizado.
authorized_applications:
destroy:
- notice: Aplicação revogada.
+ notice: Aplicativo revogado.
layouts:
admin:
nav:
- applications: Aplicações
- oauth2_provider: OAuth2 Provider
+ applications: Aplicativo
+ oauth2_provider: Provedor de OAuth2
application:
- title: Autorização OAuth necessária
+ title: Autorização OAuth obrigatória
scopes:
- follow: siga, bloqueie, desbloqueie, e deixe de seguir contas
- read: tenha acesso aos dados da sua conta
- write: públique por si
+ follow: seguir, bloquear, desbloquear e deixar de seguir outras contas
+ read: ler os dados da sua conta
+ write: postar em seu nome
diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml
index 750120299..00941d215 100644
--- a/config/locales/pt-BR.yml
+++ b/config/locales/pt-BR.yml
@@ -1,52 +1,78 @@
---
pt-BR:
about:
- about_mastodon_html: Mastodon é um servidor de rede social grátis, e open-source . Uma alternativa descentralizada ás plataformas comerciais, que evita o risco de uma única empresa monopolizar a sua comunicação. Escolha um servidor que você confie — qualquer um que escolher, você poderá interagir com todo o resto. Qualquer um pode ter uma instância Mastodon e assim participar na rede social federada sem problemas.
- about_this: Sobre essa instância
- closed_registrations: Registros estão fechadas para essa instância.
+ about_mastodon_html: Mastodon é uma rede social baseada em protocolos abertos e software gratuito e de código aberto. É descentralizada como e-mail.
+ about_this: Sobre
+ closed_registrations: Cadastros estão atualmente fechados nesta instância. No entanto! Você pode procurar uma instância diferente na qual possa criar uma conta e acessar a mesma rede por lá.
contact: Contato
+ contact_missing: Não definido
+ contact_unavailable: N/A
description_headline: O que é %{domain}?
domain_count_after: outras instâncias
domain_count_before: Conectado a
- other_instances: Outras instâncias
- source_code: Source code
- status_count_after: status
- status_count_before: Quem autorizou
+ extended_description_html:
+ Um bom lugar para as regras
+ A descrição extendida ainda não foi definida.
+ features:
+ humane_approach_body: Aprendendo com erros de outras redes, Mastodon tem como objetivo fazer decisões éticas de design para combater o desuso de redes sociais.
+ humane_approach_title: Uma abordagem mais humana
+ not_a_product_body: Mastodon não é uma rede comercial. Sem propagandas, coleta de dados, jardins fechados. Não há uma autoridade central.
+ not_a_product_title: Você é uma pessoa e não um produto
+ real_conversation_body: Com 500 caracteres à sua disposição e suporte para conteúdo granular e avisos de conteúdo, você pode se expressar da maneira que desejar.
+ real_conversation_title: Feito para conversas reais
+ within_reach_body: Vários apps para iOS, Android e outras plataformas graças a um ecossistema de API amigável para desenvolvedores proporcionam que você possa se manter atualizado sobre seus amigos de qualquer lugar.
+ within_reach_title: Sempre a seu alcance
+ find_another_instance: Encontre outra instância
+ generic_description: "%{domain} é um servidor na rede"
+ hosted_on: Mastodon hospedado em %{domain}
+ learn_more: Saiba mais
+ other_instances: Lista de instâncias
+ source_code: Código fonte
+ status_count_after: postagens
+ status_count_before: Autores de
user_count_after: usuários
- user_count_before: Lugar de
+ user_count_before: Casa de
+ what_is_mastodon: O que é Mastodon?
accounts:
follow: Seguir
followers: Seguidores
following: Seguindo
+ media: Mídia
nothing_here: Não há nada aqui!
- people_followed_by: Pessoas seguidas por %{name}
+ people_followed_by: Pessoas que %{name} segue
people_who_follow: Pessoas que seguem %{name}
- posts: Posts
- remote_follow: Acesso remoto
- unfollow: Unfollow
+ posts: Toots
+ posts_with_replies: Toots com respostas
+ remote_follow: Siga remotamente
+ reserved_username: Este usuário está reservado
+ roles:
+ admin: Administrador
+ unfollow: Deixar de seguir
admin:
accounts:
are_you_sure: Você tem certeza?
- confirm: Confirme
+ confirm: Confirmar
confirmed: Confirmado
- disable_two_factor_authentication: Desabilitar senha de 2 passos
- display_name: Nome mostrado
- domain: Domain
+ disable_two_factor_authentication: Desativar 2FA
+ display_name: Nome de exibição
+ domain: Domínio
edit: Editar
email: E-mail
- feed_url: URL do Feed
+ feed_url: Feed URL
followers: Seguidores
- follows: Seguindo
+ follows: Segue
+ inbox_url: Inbox URL
+ ip: IP
location:
all: Todos
local: Local
remote: Remoto
- title: Local
- media_attachments: Mídia anexadas
+ title: Localização
+ media_attachments: Mídia(s) anexada(s)
moderation:
all: Todos
- silenced: Silenciado
- suspended: Supenso
+ silenced: Silenciados
+ suspended: Suspensos
title: Moderação
most_recent_activity: Atividade mais recente
most_recent_ip: IP mais recente
@@ -55,206 +81,281 @@ pt-BR:
alphabetic: Alfabética
most_recent: Mais recente
title: Ordem
- perform_full_suspension: Fazer suspensão completa
+ outbox_url: Outbox URL
+ perform_full_suspension: Efetue suspensão total
profile_url: URL do perfil
+ protocol: Protocolo
public: Público
- push_subscription_expires: PuSH subscription expires
- reset_password: Resetar senha
+ push_subscription_expires: Inscrição PuSH expira
+ redownload: Atualizar avatar
+ reset: Anular
+ reset_password: Modificar senha
+ resubscribe: Reinscrever-se
salmon_url: Salmon URL
+ search: Pesquisar
show:
- created_reports: Reports criados por esta conta
- report: report
- targeted_reports: Reports feitos sobre esta conta
+ created_reports: Relatórios criados por esta conta
+ report: relatórios
+ targeted_reports: Relatórios feitos sobre esta conta
silence: Silêncio
- statuses: Status
+ statuses: Postagens
+ subscribe: Inscrever-se
title: Contas
- undo_silenced: Desfazer silenciar
- undo_suspension: Desfazer supensão
- username: Usuário
+ undo_silenced: Retirar silêncio
+ undo_suspension: Retirar suspensão
+ unsubscribe: Desinscrever-se
+ username: Nome de usuário
web: Web
domain_blocks:
- add_new: Adicionar nova
- created_msg: Bloqueio do domínio está sendo processado
- destroyed_msg: Bloqueio de domínio está sendo desfeito
+ add_new: Adicionar novo
+ created_msg: Bloqueio de domínio está sendo processado
+ destroyed_msg: Bloqueio de domínio desfeito
domain: Domínio
new:
create: Criar bloqueio
- hint: O bloqueio de dominio não vai previnir a criação de entradas no banco de dados, mas irá, retroativamente e automaticamente aplicar métodos de moderação específica nessas contas.
+ hint: O bloqueio de domínio não prevenirá a criação de entradas de contas na base de dados, mas vai reatroativa e automaticamente aplicar métodos específicos de moderação nestas contas.
severity:
- desc_html: "Silenciar irá fazer com que os posts dessas contas sejam invisíveis para todos que não a seguem. Supender irá remover todos o conteúdo das contas, mídia e dados do perfil."
- silence: Silenciar
- suspend: Suspender
+ desc_html: "O Silêncio fará com que as postagens da conta fiquem invisíveis para qualquer um que não a esteja seguindo. A Suspensão removerá todo o conteúdo da conta, mídia e dados de perfil. Use Nenhum se você apenas deseja rejeitar arquivos de mídia."
+ noop: Nenhum
+ silence: Silêncio
+ suspend: Suspensão
title: Novo bloqueio de domínio
reject_media: Rejeitar arquivos de mídia
- reject_media_hint: Remove localmente arquivos armazenados e rejeita fazer o download de novos no futuro. Irrelevante em suspensões.
+ reject_media_hint: Remove arquivos de mídia armazenados localmente e recusa quaisquer outros no futuro. Irrelevante para suspensões.
severities:
- silence: Silenciar
- suspend: Suspender
- severity: Severidade
+ noop: Nenhum
+ silence: Silêncio
+ suspend: Suspensão
+ severity: Rigidez
show:
affected_accounts:
- one: Uma conta no banco de dados afetada
- other: "%{count} contas no banco de dados afetada"
+ one: Uma conta no banco de dados foi afetada
+ other: "%{count} contas no banco de dados foram afetadas"
retroactive:
- silence: Desilenciar todas as contas existentes nesse domínio
- suspend: Desuspender todas as contas existentes nesse domínio
- title: Desfazer bloqueio de domínio para %{domain}
- title: Bloqueio de domínio
- undo: Desfazer
+ silence: Retirar silêncio de todas as contas existentes neste domínio
+ suspend: Retirar suspensão de todas as contas neste domínio
+ title: Retirar bloqueio de domínio de %{domain}
+ undo: Retirar
+ title: Bloqueios de domínio
+ undo: Retirar
instances:
account_count: Contas conhecidas
domain_name: Domínio
title: Instâncias conhecidas
reports:
+ action_taken_by: Ação realizada por
+ are_you_sure: Você tem certeza?
comment:
- label: Commentário
- none: None
- delete: Deletar
+ label: Comentário
+ none: Nenhum
+ delete: Excluir
id: ID
- mark_as_resolved: Marque como resolvido
- report: 'Report #%{id}'
- report_contents: Conteúdo
+ mark_as_resolved: Marcar como resolvido
+ nsfw:
+ 'false': Mostrar mídias anexadas
+ 'true': Esconder mídias anexadas
+ report: 'Reportar #%{id}'
+ report_contents: Conteúdos
reported_account: Conta reportada
- reported_by: Reportado por
+ reported_by: Reportada por
resolved: Resolvido
- silence_account: Conta silenciada
+ silence_account: Silenciar conta
status: Status
- suspend_account: Conta suspensa
- target: Target
- title: Reports
- unresolved: Unresolved
- view: View
+ suspend_account: Suspender conta
+ target: Alvo
+ title: Denúncias
+ unresolved: Não resolvido
+ view: Visualizar
settings:
+ bootstrap_timeline_accounts:
+ desc_html: Separe nomes de usuário através de vírgulas. Funciona apenas com contas locais e destrancadas. O padrão quando vazio são todos os administradores locais.
+ title: Usuários a serem seguidos por padrão por novas contas
contact_information:
- email: Entre um endereço de email público
- username: Entre com usuário
+ email: E-mail
+ username: Contate usuário
registrations:
closed_message:
- desc_html: Mostrar na página inicial quando registros estão fecados Você pode usar tags HTML
- title: Mensagem de registro fechados
+ desc_html: Exibido na página inicial quando cadastros estão fechados. Você pode usar tags HTML.
+ title: Mensagem de cadastros fechados
+ deletion:
+ desc_html: Permitir que qualquer um delete a sua conta
+ title: Exclusão aberta de contas
open:
- title: Aberto para registro
+ desc_html: Permitir que qualquer um crie uma conta
+ title: Cadastro aberto
site_description:
- desc_html: Mostrar como parágrafo e usado como meta tag. Vôce pode usar tags HTML, em particular <a>
e <em>
.
- title: Descrição do site
+ desc_html: Parágrafo introdutório na página inicial e em meta tags. Você pode usar tags HTML, em especial <a>
e <em>
.
+ title: Descrição da instância
site_description_extended:
- desc_html: Mostrar na página de informação extendiada Você pode usar tags HTML
- title: Descrição extendida do site
- site_title: Título do site
- title: Preferências do site
+ desc_html: Um ótimo lugar para seu código de conduta, regras, diretrizes e outras coisas para diferenciar a sua instância. Você pode usar tags HTML.
+ title: Informação estendida customizada
+ site_terms:
+ desc_html: Você pode escrever a sua própria política de privacidade, termos de serviço, entre outras coisas.Você pode usar tags HTML.
+ title: Termos de serviço customizados
+ site_title: Nome da instância
+ timeline_preview:
+ desc_html: Exibir a timeline pública na página inicial
+ title: Prévia da timeline
+ title: Configurações do site
+ statuses:
+ back_to_account: Voltar para página da conta
+ batch:
+ delete: Deletar
+ nsfw_off: NSFW OFF
+ nsfw_on: NSFW ON
+ execute: Executar
+ failed_to_execute: Falha em executar
+ media:
+ hide: Esconder mídia
+ show: Mostrar mídia
+ title: Mídia
+ no_media: Não há mídia
+ title: Postagens da conta
+ with_media: Com mídia
subscriptions:
- callback_url: URL de Callback
+ callback_url: Callback URL
confirmed: Confirmado
expires_in: Expira em
last_delivery: Última entrega
title: WebSub
topic: Tópico
title: Administração
+ admin_mailer:
+ new_report:
+ body: "%{reporter} reportou %{target}"
+ subject: Nova denúncia sobre %{instance} (#%{id})
application_mailer:
- settings: 'Mudar preferências de email: %{link}'
- signature: notificações Mastodon de %{instance}
- view: 'View:'
+ salutation: "%{name},"
+ settings: 'Change e-mail preferences: %{link}'
+ signature: Notificações do Mastodon de %{instance}
+ view: 'Visualizar:'
applications:
- invalid_url: URL dada é inválida
+ created: Aplicação criada com sucesso
+ destroyed: Aplicação excluída com sucesso
+ invalid_url: A URL provida é inválida
+ regenerate_token: Regenerar token de acesso
+ token_regenerated: Token de acesso renegerado com sucesso
+ warning: Tenha cuidado com estes dados. Nunca compartilhe com alguém!
+ your_token: Seu token de acesso
auth:
- change_password: Mudar senha
+ agreement_html: Cadastrando-se você concorda com nossos termos de serviço e política de privacidade .
+ change_password: Segurança
+ delete_account: Excluir conta
+ delete_account_html: Se você deseja excluir a sua conta, você pode prosseguir para cá . Uma confirmação será requisitada.
didnt_get_confirmation: Não recebeu instruções de confirmação?
- forgot_password: Esqueceu a senha?
+ forgot_password: Esqueceu a sua senha?
+ invalid_reset_password_token: Token de modificação de senha é inválido ou expirou. Por favor, requisite um novo.
login: Entrar
logout: Sair
- register: Registar
+ register: Cadastrar-se
resend_confirmation: Reenviar instruções de confirmação
- reset_password: Resetar senha
- set_new_password: Editar password
+ reset_password: Modificar senha
+ set_new_password: Definir uma nova senha
authorize_follow:
- error: Infelizmente houve um erro olhando uma conta remota
+ error: Infelizmente, ocorreu um erro quando visualizando a conta remota.
follow: Seguir
+ follow_request: 'Você mandou uma solicitação de seguidor para:'
+ following: 'Sucesso! Você agora está seguindo:'
+ post_follow:
+ close: Ou você pode simplesmente fechar esta janela.
+ return: Retornar ao perfil do usuário
+ web: Voltar para a página inicial
title: Seguir %{acct}
datetime:
distance_in_words:
about_x_hours: "%{count}h"
- about_x_months: "%{count}mo"
- about_x_years: "%{count}y"
- almost_x_years: "%{count}y"
+ about_x_months: "%{count} meses"
+ about_x_years: "%{count} anos"
+ almost_x_years: "%{count} anos"
half_a_minute: Agora
- less_than_x_minutes: "%{count}m"
+ less_than_x_minutes: "%{count} meses"
less_than_x_seconds: Agora
- over_x_years: "%{count}y"
- x_days: "%{count}d"
- x_minutes: "%{count}m"
- x_months: "%{count}mo"
- x_seconds: "%{count}s"
+ over_x_years: "%{count} anos"
+ x_days: "%{count} dias"
+ x_minutes: "%{count} minutos"
+ x_months: "%{count} meses"
+ x_seconds: "%{count} segundos"
+ deletes:
+ bad_password_msg: Boa tentativa, hackers! Senha incorreta.
+ confirm_password: Insira a sua senha atual para verificar a sua identidade
+ description_html: Isto vai permanente e irreversivelmente remover conteúdo de sua conta e desativá-la. O seu nome de usuário permanecerá reservado para previnir futuros roubos de identidade.
+ proceed: Excluir conta
+ success_msg: A sua conta foi excluída com sucesso
+ warning_html: Apenas a exclusão de conteúdo desta instância em particular é garantida. Conteúdo que tenha sido largamente compartilhado muito provavelmente deixará traços. Servidores offline e servidores que se desinscreveram de suas atualizações não irão atualizar as suas bases de dados.
+ warning_title: Disponibilidade de conteúdo disseminado
errors:
- '403': Você não tem permissão para ver essa página.
- '404': A página que você procura não existe.
- '410': A página que você procura não existe mais.
+ '403': Você não tem permissão para ver esta página.
+ '404': A página pela qual você está procurando não existe.
+ '410': A página pela qual você está procurando não existe mais.
'422':
- content: Verificação de segurança falhou. Você está bloqueando cookies?
- title: Verificação de segurança falhou
+ content: A verificação de segurança falhou. Você desativou o uso de cookies?
+ title: Falha na verificação de segurança
+ '429': Muitas requisições
+ noscript_html: Para usar o aplicativo web do Mastodon, por favor ative o JavaScript. Alternativamente, experimente um dos apps nativos para o Mastodon para a sua plataforma.
exports:
- blocks: Você bloqueia
+ blocks: Você bloqueou
csv: CSV
follows: Você segue
- mutes: Você selencia
- storage: Mídia de dados
+ mutes: Você silenciou
+ storage: Armazenamento de mídia
followers:
domain: Domínio
- explanation_html: Se você quer garantir a privacidade doe seu status, você precisa saber quem te segue. Seu status privado é enviado a todas as instancias que você tem seguidores . Você pode querer reavaliar e remover os seguidores que você não confia que sua privacidade vai ser mantida pelos administradores ou softwares de outras instancias.
- followers_count: Númbero de seguidores
- lock_link: Bloquear sua conta
- purge: Remove dos seguidores
+ explanation_html: Se você quer garantir a privacidade de suas postagens, você deve ficar atento a quem está te seguindo.Suas postagens privadas são enviadas para todas as instâncias em que você tem seguidores . Convém revisá-las e remover seguidores se você acredita que a sua privacidade não será respeitada pela equipe ou software destas instâncias.
+ followers_count: Número de seguidores
+ lock_link: Tranque a sua conta
+ purge: Remover de seus seguidores
success:
- one: Em processo de bloquear seguidores de um domínio...
- other: Em processo de bloqueio-leve dos seguidores de %{count} domínios...
- true_privacy_html: Saiba que privaicade de verdade só pode ser atingida com criptografia ponto-a-ponto .
- unlocked_warning_html: Qualquer um que te seguir para ver seus status privado imediatamente. %{lock_link} para poder rever e rejeitar seguidores.
- unlocked_warning_title: Sua conta não está bloqueada
+ one: No processo de bloqueio suave de seguidores de outro domínio...
+ other: No processo de bloqueio suave de seguidores de outros %{count} domínios...
+ true_privacy_html: Lembre-se de que a verdadeira privacidade só pode ser alcançada através de encriptação ponto-a-ponto .
+ unlocked_warning_html: Qualquer pessoa pode te seguir e ver as suas postagens privadas. %{lock_link} para ser capaz de revisar e rejeitar seguidores.
+ unlocked_warning_title: A sua conta não está trancada
generic:
- changes_saved_msg: Mudanças guardadas!
+ changes_saved_msg: Mudanças salvas com sucesso!
powered_by: powered by %{link}
- save_changes: Guardar alterações
+ save_changes: Salvar mudanças
validation_errors:
- one: Algo não está correto. Por favor reveja o erro abaixo
- other: Algo não está correto. Por favor reveja os %{count} erros abaixo
+ one: Algo não está certo! Por favor, reveja o erro abaixo
+ other: Algo não está certo! Por favor, reveja os %{count} erros abaixo
imports:
- preface: Você pode importar certos dados, como as pessoas que você segue ou estão bloqueadas para sua conta nessa instancia, de arquivos com dados criados por outra instancia.
- success: Seus dados foram carregados com sucesso and serão processados em algum tempo
+ preface: Você pode importar dados que você exportou de outra instância, como a lista de pessoas que você segue ou bloqueou.
+ success: Os seus dados foram enviados com sucesso e serão processados em instantes
types:
blocking: Lista de bloqueio
- following: Lista de seguidos
- muting: Lista de silenciados
- upload: Carregar
- landing_strip_html: "%{name} is a user on %{link_to_root_path}. You can follow them or interact with them if you have an account anywhere in the fediverse."
- landing_strip_signup_html: If you don't, you can sign up here .
+ following: Pessoas que você segue
+ muting: Lista de silêncio
+ upload: Enviar
+ landing_strip_html: "%{name} é um usuário no %{link_to_root_path}. Você pode seguí-lo ou interagir com ele se você tiver uma conta em qualquer lugar no fediverso."
+ landing_strip_signup_html: Se não, você pode se cadastrar aqui .
media_attachments:
validations:
- images_and_video: Cannot attach a video to a status that already contains images
- too_many: Cannot attach more than 4 files
+ images_and_video: Não é possível anexar um vídeo a uma postagem que já contém imagens.
+ too_many: Não é possível anexar mais de quatro imagens.
notification_mailer:
digest:
- body: 'Isto é um resumo do que você perdeu em %{instance} desde sua última visita %{since}:'
- mention: "%{name} mencionou você em:"
+ body: 'Aqui está um resumo do que você perdeu no %{instance} desde o seu último acesso em %{since}:'
+ mention: "%{name} te mencionou em:"
new_followers_summary:
- one: Você tem um novo seguidor!
- other: Você conseguiu %{count} novos seguidores! Incrível
+ one: Você tem um novo seguidor! Yay!
+ other: Você tem %{count} novos seguidores! Maravilha!
subject:
- one: "1 nova notificação desde sua última visita \U0001F418"
- other: "%{count} novas notificações desde a última visita \U0001F418"
+ one: "Uma nova notificação desde o seu último acesso \U0001F418"
+ other: "%{count} novas notificações desde o seu último acesso \U0001F418"
favourite:
- body: 'O seu post foi favoritado por %{name}:'
- subject: "%{name} favouritou o seu post"
+ body: 'Sua postagem foi favoritada por %{name}:'
+ subject: "%{name} favoritou a sua postagem"
follow:
- body: "%{name} seguiu você!"
- subject: "%{name} segue você"
+ body: "%{name} está te seguindo!"
+ subject: "%{name} está te seguindo"
follow_request:
- body: "%{name} pediu para te seguir"
- subject: 'Seguidor pendente: %{name}'
+ body: "%{name} requisitou autorização para te seguir"
+ subject: 'Pending follower: %{name}'
mention:
body: 'Você foi mencionado por %{name} em:'
- subject: Foi mencionado por %{name}
+ subject: Você foi mencionado por %{name}
reblog:
- body: 'O seu post foi reblogado por %{name}:'
- subject: "%{name} reblogou o seu post"
+ body: 'Sua postagem foi compartilhada por %{name}:'
+ subject: "%{name} compartilhou a sua postagem"
number:
human:
decimal_units:
@@ -267,56 +368,190 @@ pt-BR:
trillion: T
unit: ''
pagination:
- next: Next
- prev: Prev
+ next: Próximo
+ prev: Anterior
truncate: "…"
+ push_notifications:
+ favourite:
+ title: "%{name} favoritou a sua postagem"
+ follow:
+ title: "%{name} está te seguindo"
+ group:
+ title: "%{count} notificações"
+ mention:
+ action_boost: Compartilhar
+ action_expand: Mostrar mais
+ action_favourite: Favoritar
+ title: "%{name} mencionou você"
+ reblog:
+ title: "%{name} compartilhou a sua postagem"
remote_follow:
- acct: Entre seu usuário@domínio do qual quer seguir
- missing_resource: Não foi possível achar a URL de redirecionamento para sua conta
- proceed: Prossiga para seguir
- prompt: 'Você vai seguir:'
+ acct: Insira o seu usuário@domínio do qual você quer seguir
+ missing_resource: Não foi possível encontrar a URL de direcionamento para a sua conta
+ proceed: Prosseguir para seguir
+ prompt: 'Você irá seguir:'
+ sessions:
+ activity: Última atividade
+ browser: Navegador
+ browsers:
+ alipay: Alipay
+ blackberry: Blackberry
+ chrome: Chrome
+ edge: Microsoft Edge
+ firefox: Firefox
+ generic: Unknown browser
+ ie: Internet Explorer
+ micro_messenger: MicroMessenger
+ nokia: Nokia S40 Ovi Browser
+ opera: Opera
+ phantom_js: PhantomJS
+ qq: QQ Browser
+ safari: Safari
+ uc_browser: UCBrowser
+ weibo: Weibo
+ current_session: Sessão atual
+ description: "%{browser} em %{platform}"
+ explanation: Estes são os navegadores que estão conectados com a sua conta do Mastodon.
+ ip: IP
+ platforms:
+ adobe_air: Adobe Air
+ android: Android
+ blackberry: Blackberry
+ chrome_os: ChromeOS
+ firefox_os: Firefox OS
+ ios: iOS
+ linux: Linux
+ mac: Mac
+ other: unknown platform
+ windows: Windows
+ windows_mobile: Windows Mobile
+ windows_phone: Windows Phone
+ revoke: Revogar
+ revoke_success: Sessão revogada com sucesso
+ title: Sessões
settings:
- authorized_apps: Aplicativos autorizados
- back: Voltar ao Mastodon
+ authorized_apps: Apps autorizados
+ back: Voltar para o Mastodon
+ delete: Exclusão de conta
+ development: Desenvolvimento
edit_profile: Editar perfil
- export: Importar dados
+ export: Exportar dados
followers: Seguidores autorizados
import: Importar
preferences: Preferências
- settings: Settings
- two_factor_authentication: Autenticação Two-factor
+ settings: Configurações
+ two_factor_authentication: Autenticação em dois passos
+ your_apps: Seus aplicativos
statuses:
- open_in_web: Abrir no browser
- over_character_limit: limite de caracter excedeu %{max}
+ open_in_web: Abrir na web
+ over_character_limit: limite de caracteres de %{max} excedido
+ pin_errors:
+ ownership: Toots de outras pessoas não podem ser fixados
+ private: Toot não-público não pode ser fixado
+ reblog: Um compartilhamento não pode ser fixado
show_more: Mostrar mais
visibilities:
- private: Seguidores-apenas
+ private: Apenas seguidores
private_long: Mostrar apenas para seguidores
public: Público
- public_long: Qualquer um pode ver
- unlisted: Público, mas não mostre no timeline público
- unlisted_long: Todo mundo pode ver mas não será listado nas timeline públicas
+ public_long: Todos podem ver
+ unlisted: Não listado
+ unlisted_long: Todos podem ver, porém não será postado nas timelines públicas
stream_entries:
- click_to_show: Clique pra mostrar
- reblogged: boosted
+ click_to_show: Clique para mostrar
+ pinned: Toot fixado
+ reblogged: compartilhado
sensitive_content: Conteúdo sensível
+ terms:
+ body_html: |
+ Política de privacidade
+
+ Que informações nós coletamos?
+
+ Coletamos informações quando você se cadastra em nosso site e capturamos dados quando você participa do fórum lendo, escrevendo e analisando o conteúdo aqui compartilhado.
+
+ Quando você se registrar em nosso site, será requisitado que você ceda seu nome e endereço de e-mail. Você pode, porém, visitar nosso site sem se cadastrar. Seu endereço de e-mail será verificado por uma mensagem contendo um link único. Se este link for visitado, saberemos que você controla este endereço de e-mail.
+
+ Quando registrado e postando, nós gravamos o endereço de IP de onde a postagem se originou. Nós também podemos reter logs de serviores que incluem o endereço de IP em cada requisição para o nosso servidor.
+
+ Para que usamos essas informações?
+
+ Quaisquer das informações que coletamos podem ser usadas das seguintes formas:
+
+
+ Para personalizar a sua experiência — suas informações nos ajudam a nos adequar melhor às suas necessidades individuais.
+ Para melhorar nosso site — nós continuamente nos esforçamos para aprimorar nosso site baseados na informação e no feedback que recebemos de você.
+ Para aprimorar o serviço ao consumidor — suas informações nos ajudam a responder efetivamente às suas requisições e solicitações por suporte.
+ Para mandar e-mails periódicos — O endereço de e-mail que você forneceu pode ser usado para lhe enviar informações, notificações que você requisitar sobre mudanças a determinados tópicos ou menções ao seu nome de usuário, responder requisições e/ou solicitações e perguntas.
+
+
+ Como protegemos as suas informações?
+
+ Nós implementamos uma variedade de medidas de segurança para manter a segurança de suas informações pessoais quando você insere, submete ou acessa as suas informações pessoais.
+
+ Qual a sua política de retenção de dados?
+
+ Faremos esforços de boa fé para:
+
+
+ Reter logs de servidor contendo o endereço IP de todas as requisições a este servidor por não mais que 90 dias.
+ Reter os endereços IP associados a usuários cadastrados e suas postagens por não mais que 5 anos.
+
+
+ Nós usamos cookies?
+
+ Sim. Cookies são pequenos arquivos que um site ou o provedor de serviço transfere para o armazenamento interno de seu computador através de seu navegador (se você permitir). Estes cookies habilitam o site para reconhecer o seu navegador e, se você ter um cadastro, associá-lo a esta conta.
+
+ Nós usamos cookies para entender e salvar as suas preferências para futuras visitas e compilar dados agregados sobre o tráfego do site para que possamos oferecer melhores experiências e ferramentas no futuro. Nós podemos contratar serviços de terceiros para nos auxiliar a entender melhor nossos visitantes. Estes provedores de serviço não são autoriza usar as informações coletadas em nosso nome exceto para nos ajudar a conduzir e aprimorar nosso funcionamento.
+
+ Nós revelamos informações para terceiros?
+
+ Nós não vendemos, tocamos ou transferimos para terceiros informações pessoais que te identificam. Isso não inclui partes em que confiamos para nos ajudar a operar nosso site, conduzir nosso funcionamento ou servir você desde que estes terceiros concordem em manter essas informações em segredo. Nós também podemos prover as suas informações para obedecer ordens judiciais, reforçar nossas políticas ou proteger nossos direitos ou de outrem, propriedades ou segurança. Entretanto, informações pessoais não identificáveis podem ser enviadas para outras partes para marketing, propaganda e outros usos.
+
+ Links de terceiros
+
+ Ocasionalmente, à nossa discrição, podemos icluir ou oferecer produtos ou serviços de terceiros em nosso site. Estes terceiros têm políticas de privacidade separadas e independentes. Nós, portanto, não nos responsabilizamos pelo conteúdo e atividades destes sites de terceiros. Occasionally, at our discretion, we may include or offer third party products or services on our site. Não obstante, nós procuramos proteger a integridade de nosso site e todo feedback sobre estes sites de terceiros é bem-vindo.
+
+ Obediência ao Ato de Proteção da Privacidade Online de Crianças
+
+ Nosso site, produtos e serviços são todos direcionados a pessoas que têm pelo menos 13 anos de idade. Se este servidor estiver nos EUA, e você tiver menos de 13 anos, pelos requerimentos da COPPA (Children's Online Privacy Protection Act ) não use este site.
+
+ Política de Apenas Privacidade Online
+
+ Esta política de privacidade online se aplica somente a informações coletadas por nosso site e não a informações coletadas offline.
+
+ Seu Consentimento
+
+ Usando o nosso site, você concorda com a nossa política de privacidade.
+
+ Mudanças em nossa Política de Privacidade
+
+ Se decidirmos mudar a nossa política de privacidade, publicaremos as mudanças nesta página.
+
+ Este documento é CC-BY-SA. A sua última atualização aconteceu em 31 de maio de 2013.
+
+ Originalmente adaptado da política de privacidade do Discourse .
+ title: "%{instance} Termos de Serviço e Política de Privacidade"
time:
formats:
- default: "%d %b, %Y, %H:%M"
+ default: "%b %d, %Y, %H:%M"
two_factor_authentication:
- code_hint: Entre o código gerado pelo seu aplicativo para confirmar
- description_html: Se você habilitar autenticação two-factor , quando logar será necessário o seu telefone que vai gerar os tokens usado.
- disable: Disabilitar
- enable: Habilitar
- enabled_success: Autenticador Two-factor habilitador com sucesso
- generate_recovery_codes: Gerar códigos para recuperar conta
- instructions_html: "Scaneie este código QR no seu Google Authenticator ou aplicativo similar no seu telefone . A partir de agora seu aplicativo irá gerar tokens que deverão ser digitados para você logar."
- lost_recovery_codes: Códigos de recuperação permite que você recupere o acesso a sua conta se você perder seu telefone. Se você perder os códigos de recuperação, você pode regera-los aqui. Seus códigos antigos serão invalidados.
- manual_instructions: 'Se você não puder scanear o código QR e precisa digita-los manualmente, aqui está o segredo em texto.:'
- recovery_codes_regenerated: Códigos de recuperação foram gerados com sucesso
- recovery_instructions_html: Se algum dia você perder o acesso ao seu telefone, você pode usar um dos códigos de abaixo para recupera o acesso a sua conta. Guarde os códigos de acesso em local seguro, por exemplo imprimindo ou guardados com documentos importantes.
+ code_hint: Insira o código gerado pelo seu aplicativo auteticador para confirmar
+ description_html: Se você ativar a autenticação em dois passos , o acesso à sua conta exigirá posse de seu celular, que irá gerar tokens para validação.
+ disable: Desativar
+ enable: Ativar
+ enabled: A autenticação em dois passos está ativada
+ enabled_success: Autenticação em dois passos ativada com sucesso
+ generate_recovery_codes: Gerar códigos de recuperação
+ instructions_html: "Escaneie este QR Code no Google Authenticator ou aplicativo TOTP similar com o seu celular . De agora em diante, este aplicativo irá gerar tokens que você terá que inserir quando desejar acessar a sua conta."
+ lost_recovery_codes: Códigos de recuperação permitem que você recupere acesso à sua conta caso perca o seu celular. Se você perdeu seus códigos de recuperação, você pode gerá-los novamente aqui. Seus códigos de recuperaçãp anteriores serão invalidados.
+ manual_instructions: 'Se você não pode escanear o QR code e precisa inserí-lo manualmente, aqui está o segredo em texto:'
+ recovery_codes: Códigos de recuperação de reserva
+ recovery_codes_regenerated: Códigos de recuperação regenerados com sucesso
+ recovery_instructions_html: Se você perder acesso ao seu celular, você pode usar um dos códigos de recuperação abaixo para reganhar acesso à sua conta. Mantenha os códigos de recuperação em um local seguro . Por exemplo, você pode imprimi-los e guardá-los com outros documentos importantes.
setup: Configurar
- wrong_code: O código digitado é inválido! Os relógios do servidor e do dispositivo estão corretos?
+ wrong_code: O código inserido é invalido! O horário do servidor e o horário do seu aparelho estão corretos?
users:
- invalid_email: Endereço e-mail inválido
- invalid_otp_token: Código two-factor inválido
+ invalid_email: O endereço de e-mail é inválido
+ invalid_otp_token: Código de autenticação inválido
+ signed_in_as: 'Acesso como:'
diff --git a/config/locales/simple_form.pt-BR.yml b/config/locales/simple_form.pt-BR.yml
index 733e16892..bc6766689 100644
--- a/config/locales/simple_form.pt-BR.yml
+++ b/config/locales/simple_form.pt-BR.yml
@@ -1,51 +1,64 @@
---
pt-BR:
simple_form:
- labels:
+ hints:
defaults:
- avatar: PNG, GIF or JPG. Máximo 2MB. Será reduzido para 120x120px
- display_name: '%{count} caracteres restantes'
- header: PNG, GIF or JPG. Máximo 2MB. Será reduzido para 700x335px
- locked: Requer você aprovação manualmente seguidores e posts padrão de privacidade para seguidores-apenas
- note: '%{count} caracteres restantes'
+ avatar: PNG, GIF or JPG. Arquivos de até 2MB. Eles serão diminuídos para 120x120px
+ display_name:
+ one: 1 caracter restante
+ other: %{count} caracteres restantes
+ header: PNG, GIF or JPG. Arquivos de até 2MB. Eles serão diminuídos para 700x335px
+ locked: Requer aprovação manual de seguidores
+ note:
+ one: 1 caracter restante
+ other: %{count} caracteres restantes
+ setting_noindex: Afeta seu perfil público e as páginas de suas postagens
imports:
- data: Arquivo CSV exportado de outra instancia Mastodon
+ data: Arquivo CSV exportado de outra instância do Mastodon
sessions:
- otp: Entre com o código de 2 passos do seu telefone ou use os códiogos de recuperação.
+ otp: Insira o código de autenticação do seu celular ou use um dos códigos de recuperação.
+ user:
+ filtered_languages: Selecione os idiomas que devem ser removidos de suas timelines públicas.
labels:
defaults:
avatar: Avatar
- confirm_new_password: Confirme nova senha
- confirm_password: Confirme a senha
+ confirm_new_password: Confirmar nova senha
+ confirm_password: Confirmar senha
current_password: Senha atual
data: Dados
- display_name: Nome
- email: Endereço de email
- header: Header
- locale: Linguagem
- locked: Conta bloqueada
+ display_name: Nome de exibição
+ email: Endereço de e-mail
+ filtered_languages: Idiomas filtrados
+ header: Cabeçalho
+ locale: Idioma
+ locked: Trancar conta
new_password: Nova senha
- note: Biografia
- otp_attempt: Autenticação 2 passos
+ note: Bio
+ otp_attempt: Código de autenticação em dois passos
password: Senha
- setting_auto_play_gif: Tocar GIFs animados automaticamente
- setting_boost_modal: Mostrar dialogo de confirmação antes de fazer boost
- setting_default_privacy: Postar privacidade
- severity: Severidade
- type: Importar tipo
- username: Usuário
+ setting_auto_play_gif: Reproduzir GIFs automaticamente
+ setting_boost_modal: Mostrar diálogo de confirmação antes de compartilhar postagem
+ setting_default_privacy: Privacidade das postagens
+ setting_default_sensitive: Sempre marcar mídia como sensível
+ setting_delete_modal: Mostrar diálogo de confirmação antes de deletar uma postagem
+ setting_noindex: Não quero ser indexado por mecanismos de busca
+ setting_system_font_ui: Usar a fonte padrão de seu sistema
+ setting_unfollow_modal: Mostrar diálogo de confirmação antes de deixar de seguir alguém
+ severity: Gravidade
+ type: Tipo de importação
+ username: Nome de usuário
interactions:
must_be_follower: Bloquear notificações de não-seguidores
- must_be_following: Bloquear notificações de pessoas que você
+ must_be_following: Bloquear notificações de pessoas que você não segue
notification_emails:
- digest: Enviar resumo de emails
- favourite: Enviar email quando alguém favorita um post seu
- follow: Enviar email quando alguém seguir você
- follow_request: Enviar email quando alguém requisitar te seguir
- mention: Enviar email quando alguém mencionar você
- reblog: Enviar email quando alguém reblogar um post seu
+ digest: Mandar e-mails com relatórios
+ favourite: Mandar um e-mail quando alguém favoritar suas postagens
+ follow: Mandar um e-mail quando alguém te seguir
+ follow_request: Mandar um e-maill quando alguém solicitar ser seu seguidor
+ mention: Mandar um e-mail quando alguém te mencionar
+ reblog: Mandar um e-mail quando alguém compartilhar suas postagens
'no': 'Não'
required:
mark: "*"
- text: necessário
+ text: obrigatório
'yes': 'Sim'
--
cgit
From 47d48fed8d398a1d1ebae01fcded0eb9f4f73c42 Mon Sep 17 00:00:00 2001
From: unarist
Date: Mon, 11 Sep 2017 23:19:54 +0900
Subject: Reset preview image if avatar/header image selection was cancelled
(#4893)
---
app/javascript/packs/public.js | 4 ++--
app/views/settings/profiles/show.html.haml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index 1a274c4cb..ca6f9eac6 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -124,7 +124,7 @@ function main() {
delegate(document, '#account_avatar', 'change', ({ target }) => {
const avatar = document.querySelector('.card.compact .avatar img');
const [file] = target.files || [];
- const url = URL.createObjectURL(file);
+ const url = file ? URL.createObjectURL(file) : avatar.dataset.originalSrc;
avatar.src = url;
});
@@ -132,7 +132,7 @@ function main() {
delegate(document, '#account_header', 'change', ({ target }) => {
const header = document.querySelector('.card.compact');
const [file] = target.files || [];
- const url = URL.createObjectURL(file);
+ const url = file ? URL.createObjectURL(file) : header.dataset.originalSrc;
header.style.backgroundImage = `url(${url})`;
});
diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml
index e0fb613f8..7a06cd014 100644
--- a/app/views/settings/profiles/show.html.haml
+++ b/app/views/settings/profiles/show.html.haml
@@ -8,8 +8,8 @@
= f.input :display_name, placeholder: t('simple_form.labels.defaults.display_name'), hint: t('simple_form.hints.defaults.display_name', count: 30 - @account.display_name.size).html_safe
= f.input :note, placeholder: t('simple_form.labels.defaults.note'), hint: t('simple_form.hints.defaults.note', count: 160 - @account.note.size).html_safe
- .card.compact{ style: "background-image: url(#{@account.header.url(:original)})" }
- .avatar= image_tag @account.avatar.url(:original)
+ .card.compact{ style: "background-image: url(#{@account.header.url(:original)})", data: { original_src: @account.header.url(:original) } }
+ .avatar= image_tag @account.avatar.url(:original), data: { original_src: @account.avatar.url(:original) }
.fields-group
= f.input :avatar, wrapper: :with_label, input_html: { accept: AccountAvatar::IMAGE_MIME_TYPES.join(',') }, hint: t('simple_form.hints.defaults.avatar')
--
cgit
From af10c9fbfff237e45ff46355d118e6824ae05b79 Mon Sep 17 00:00:00 2001
From: unarist
Date: Wed, 13 Sep 2017 06:06:10 +0900
Subject: Add section for protocol specific information on the admin page
(#4910)
This PR adds section for protocol specific information, then always show
both of OStatus and ActivityPub. Specifically, this will help admins to
check PuSH subscription status and unsubscribe manually, even `protocol`
has been changed.
This also includes below changes:
* Add `overflow: hidden` to prevent float leaking
* Add missing fields for ActivityPub
---
app/javascript/styles/admin.scss | 8 +++
app/views/admin/accounts/show.html.haml | 109 +++++++++++++++++++-------------
config/locales/en.yml | 2 +
3 files changed, 75 insertions(+), 44 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/admin.scss b/app/javascript/styles/admin.scss
index fa7859e38..87bc710af 100644
--- a/app/javascript/styles/admin.scss
+++ b/app/javascript/styles/admin.scss
@@ -97,6 +97,14 @@
margin-bottom: 40px;
}
+ h3 {
+ color: $ui-secondary-color;
+ font-size: 20px;
+ line-height: 28px;
+ font-weight: 400;
+ margin-bottom: 30px;
+ }
+
h6 {
font-size: 16px;
color: $ui-secondary-color;
diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml
index 89355281a..3775b6721 100644
--- a/app/views/admin/accounts/show.html.haml
+++ b/app/views/admin/accounts/show.html.haml
@@ -37,29 +37,6 @@
%th= t('admin.accounts.protocol')
%td= @account.protocol.humanize
- - if @account.ostatus?
- %tr
- %th= t('admin.accounts.feed_url')
- %td= link_to @account.remote_url, @account.remote_url
- %tr
- %th= t('admin.accounts.push_subscription_expires')
- %td
- - if @account.subscribed?
- %time.formatted{ datetime: @account.subscription_expires_at.iso8601, title: l(@account.subscription_expires_at) }
- = l @account.subscription_expires_at
- - else
- = t('admin.accounts.not_subscribed')
- %tr
- %th= t('admin.accounts.salmon_url')
- %td= link_to @account.salmon_url, @account.salmon_url
- - elsif @account.activitypub?
- %tr
- %th= t('admin.accounts.inbox_url')
- %td= link_to @account.inbox_url, @account.inbox_url
- %tr
- %th= t('admin.accounts.outbox_url')
- %td= link_to @account.outbox_url, @account.outbox_url
-
%tr
%th= t('admin.accounts.follows')
%td= @account.following_count
@@ -82,29 +59,73 @@
%th= t('.targeted_reports')
%td= link_to pluralize(@account.targeted_reports.count, t('.report')), admin_reports_path(target_account_id: @account.id)
-%div{ style: 'float: right' }
- - if @account.local?
- = link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
- - if @account.user&.otp_required_for_login?
- = link_to t('admin.accounts.disable_two_factor_authentication'), admin_user_two_factor_authentication_path(@account.user.id), method: :delete, class: 'button'
- - else
- - if @account.ostatus?
+%div{ style: 'overflow: hidden' }
+ %div{ style: 'float: right' }
+ - if @account.local?
+ = link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
+ - if @account.user&.otp_required_for_login?
+ = link_to t('admin.accounts.disable_two_factor_authentication'), admin_user_two_factor_authentication_path(@account.user.id), method: :delete, class: 'button'
+ - else
+ = link_to t('admin.accounts.redownload'), redownload_admin_account_path(@account.id), method: :post, class: 'button'
+
+ %div{ style: 'float: left' }
+ - if @account.silenced?
+ = link_to t('admin.accounts.undo_silenced'), admin_account_silence_path(@account.id), method: :delete, class: 'button'
+ - else
+ = link_to t('admin.accounts.silence'), admin_account_silence_path(@account.id), method: :post, class: 'button'
+
+ - if @account.local?
+ - unless @account.user_confirmed?
+ = link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
+
+ - if @account.suspended?
+ = link_to t('admin.accounts.undo_suspension'), admin_account_suspension_path(@account.id), method: :delete, class: 'button'
+ - else
+ = link_to t('admin.accounts.perform_full_suspension'), admin_account_suspension_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button'
+
+- unless @account.local?
+ %hr
+ %h3 OStatus
+
+ .table-wrapper
+ %table.table
+ %tbody
+ %tr
+ %th= t('admin.accounts.feed_url')
+ %td= link_to @account.remote_url, @account.remote_url
+ %tr
+ %th= t('admin.accounts.push_subscription_expires')
+ %td
+ - if @account.subscribed?
+ %time.formatted{ datetime: @account.subscription_expires_at.iso8601, title: l(@account.subscription_expires_at) }
+ = l @account.subscription_expires_at
+ - else
+ = t('admin.accounts.not_subscribed')
+ %tr
+ %th= t('admin.accounts.salmon_url')
+ %td= link_to @account.salmon_url, @account.salmon_url
+
+ %div{ style: 'overflow: hidden' }
+ %div{ style: 'float: right' }
= link_to @account.subscribed? ? t('admin.accounts.resubscribe') : t('admin.accounts.subscribe'), subscribe_admin_account_path(@account.id), method: :post, class: 'button'
- if @account.subscribed?
= link_to t('admin.accounts.unsubscribe'), unsubscribe_admin_account_path(@account.id), method: :post, class: 'button negative'
- = link_to t('admin.accounts.redownload'), redownload_admin_account_path(@account.id), method: :post, class: 'button'
-
-%div{ style: 'float: left' }
- - if @account.silenced?
- = link_to t('admin.accounts.undo_silenced'), admin_account_silence_path(@account.id), method: :delete, class: 'button'
- - else
- = link_to t('admin.accounts.silence'), admin_account_silence_path(@account.id), method: :post, class: 'button'
- - if @account.local?
- - unless @account.user_confirmed?
- = link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
+ %hr
+ %h3 ActivityPub
- - if @account.suspended?
- = link_to t('admin.accounts.undo_suspension'), admin_account_suspension_path(@account.id), method: :delete, class: 'button'
- - else
- = link_to t('admin.accounts.perform_full_suspension'), admin_account_suspension_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }, class: 'button'
+ .table-wrapper
+ %table.table
+ %tbody
+ %tr
+ %th= t('admin.accounts.inbox_url')
+ %td= link_to @account.inbox_url, @account.inbox_url
+ %tr
+ %th= t('admin.accounts.outbox_url')
+ %td= link_to @account.outbox_url, @account.outbox_url
+ %tr
+ %th= t('admin.accounts.shared_inbox_url')
+ %td= link_to @account.shared_inbox_url, @account.shared_inbox_url
+ %tr
+ %th= t('admin.accounts.followers_url')
+ %td= link_to @account.followers_url, @account.followers_url
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 64fc556f3..e31f883ac 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -60,6 +60,7 @@ en:
email: E-mail
feed_url: Feed URL
followers: Followers
+ followers_url: Followers URL
follows: Follows
inbox_url: Inbox URL
ip: IP
@@ -93,6 +94,7 @@ en:
resubscribe: Resubscribe
salmon_url: Salmon URL
search: Search
+ shared_inbox_url: Shared Inbox URL
show:
created_reports: Reports created by this account
report: report
--
cgit
From 60944d5dca0f25c668db00c0d84910f1dddc2a12 Mon Sep 17 00:00:00 2001
From: abcang
Date: Wed, 13 Sep 2017 17:24:33 +0900
Subject: Fix height cache (#4909)
---
app/javascript/mastodon/actions/height_cache.js | 17 +++++++++++
app/javascript/mastodon/actions/statuses.js | 17 -----------
.../components/intersection_observer_article.js | 33 +++++++++++-----------
.../mastodon/components/scrollable_list.js | 17 +++++++++--
.../intersection_observer_article_container.js | 17 +++++++++++
.../mastodon/containers/status_container.js | 6 +---
app/javascript/mastodon/features/ui/index.js | 4 +--
app/javascript/mastodon/reducers/height_cache.js | 23 +++++++++++++++
app/javascript/mastodon/reducers/index.js | 2 ++
app/javascript/mastodon/reducers/statuses.js | 18 ------------
10 files changed, 93 insertions(+), 61 deletions(-)
create mode 100644 app/javascript/mastodon/actions/height_cache.js
create mode 100644 app/javascript/mastodon/containers/intersection_observer_article_container.js
create mode 100644 app/javascript/mastodon/reducers/height_cache.js
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/actions/height_cache.js b/app/javascript/mastodon/actions/height_cache.js
new file mode 100644
index 000000000..4c752993f
--- /dev/null
+++ b/app/javascript/mastodon/actions/height_cache.js
@@ -0,0 +1,17 @@
+export const HEIGHT_CACHE_SET = 'HEIGHT_CACHE_SET';
+export const HEIGHT_CACHE_CLEAR = 'HEIGHT_CACHE_CLEAR';
+
+export function setHeight (key, id, height) {
+ return {
+ type: HEIGHT_CACHE_SET,
+ key,
+ id,
+ height,
+ };
+};
+
+export function clearHeight () {
+ return {
+ type: HEIGHT_CACHE_CLEAR,
+ };
+};
diff --git a/app/javascript/mastodon/actions/statuses.js b/app/javascript/mastodon/actions/statuses.js
index 0b5e72c17..2204e0b14 100644
--- a/app/javascript/mastodon/actions/statuses.js
+++ b/app/javascript/mastodon/actions/statuses.js
@@ -23,9 +23,6 @@ export const STATUS_UNMUTE_REQUEST = 'STATUS_UNMUTE_REQUEST';
export const STATUS_UNMUTE_SUCCESS = 'STATUS_UNMUTE_SUCCESS';
export const STATUS_UNMUTE_FAIL = 'STATUS_UNMUTE_FAIL';
-export const STATUS_SET_HEIGHT = 'STATUS_SET_HEIGHT';
-export const STATUSES_CLEAR_HEIGHT = 'STATUSES_CLEAR_HEIGHT';
-
export function fetchStatusRequest(id, skipLoading) {
return {
type: STATUS_FETCH_REQUEST,
@@ -218,17 +215,3 @@ export function unmuteStatusFail(id, error) {
error,
};
};
-
-export function setStatusHeight (id, height) {
- return {
- type: STATUS_SET_HEIGHT,
- id,
- height,
- };
-};
-
-export function clearStatusesHeight () {
- return {
- type: STATUSES_CLEAR_HEIGHT,
- };
-};
diff --git a/app/javascript/mastodon/components/intersection_observer_article.js b/app/javascript/mastodon/components/intersection_observer_article.js
index 347767818..bb83a4da0 100644
--- a/app/javascript/mastodon/components/intersection_observer_article.js
+++ b/app/javascript/mastodon/components/intersection_observer_article.js
@@ -7,10 +7,13 @@ import getRectFromEntry from '../features/ui/util/get_rect_from_entry';
export default class IntersectionObserverArticle extends ImmutablePureComponent {
static propTypes = {
- intersectionObserverWrapper: PropTypes.object,
+ intersectionObserverWrapper: PropTypes.object.isRequired,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
index: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
listLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
+ saveHeightKey: PropTypes.string,
+ cachedHeight: PropTypes.number,
+ onHeightChange: PropTypes.func,
children: PropTypes.node,
};
@@ -34,13 +37,10 @@ export default class IntersectionObserverArticle extends ImmutablePureComponent
}
componentDidMount () {
- if (!this.props.intersectionObserverWrapper) {
- // TODO: enable IntersectionObserver optimization for notification statuses.
- // These are managed in notifications/index.js rather than status_list.js
- return;
- }
- this.props.intersectionObserverWrapper.observe(
- this.props.id,
+ const { intersectionObserverWrapper, id } = this.props;
+
+ intersectionObserverWrapper.observe(
+ id,
this.node,
this.handleIntersection
);
@@ -49,20 +49,21 @@ export default class IntersectionObserverArticle extends ImmutablePureComponent
}
componentWillUnmount () {
- if (this.props.intersectionObserverWrapper) {
- this.props.intersectionObserverWrapper.unobserve(this.props.id, this.node);
- }
+ const { intersectionObserverWrapper, id } = this.props;
+ intersectionObserverWrapper.unobserve(id, this.node);
this.componentMounted = false;
}
handleIntersection = (entry) => {
+ const { onHeightChange, saveHeightKey, id } = this.props;
+
if (this.node && this.node.children.length !== 0) {
// save the height of the fully-rendered element
this.height = getRectFromEntry(entry).height;
- if (this.props.onHeightChange) {
- this.props.onHeightChange(this.props.status, this.height);
+ if (onHeightChange && saveHeightKey) {
+ onHeightChange(saveHeightKey, id, this.height);
}
}
@@ -94,16 +95,16 @@ export default class IntersectionObserverArticle extends ImmutablePureComponent
}
render () {
- const { children, id, index, listLength } = this.props;
+ const { children, id, index, listLength, cachedHeight } = this.props;
const { isIntersecting, isHidden } = this.state;
- if (!isIntersecting && isHidden) {
+ if (!isIntersecting && (isHidden || cachedHeight)) {
return (
diff --git a/app/javascript/mastodon/components/scrollable_list.js b/app/javascript/mastodon/components/scrollable_list.js
index 723dd322b..3d78b3ffa 100644
--- a/app/javascript/mastodon/components/scrollable_list.js
+++ b/app/javascript/mastodon/components/scrollable_list.js
@@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import { ScrollContainer } from 'react-router-scroll';
import PropTypes from 'prop-types';
-import IntersectionObserverArticle from './intersection_observer_article';
+import IntersectionObserverArticleContainer from '../containers/intersection_observer_article_container';
import LoadMore from './load_more';
import IntersectionObserverWrapper from '../features/ui/util/intersection_observer_wrapper';
import { throttle } from 'lodash';
@@ -9,6 +9,10 @@ import { List as ImmutableList } from 'immutable';
export default class ScrollableList extends PureComponent {
+ static contextTypes = {
+ router: PropTypes.object,
+ };
+
static propTypes = {
scrollKey: PropTypes.string.isRequired,
onScrollToBottom: PropTypes.func,
@@ -173,9 +177,16 @@ export default class ScrollableList extends PureComponent {
{prepend}
{React.Children.map(this.props.children, (child, index) => (
-
+
{child}
-
+
))}
{loadMore}
diff --git a/app/javascript/mastodon/containers/intersection_observer_article_container.js b/app/javascript/mastodon/containers/intersection_observer_article_container.js
new file mode 100644
index 000000000..b6f162199
--- /dev/null
+++ b/app/javascript/mastodon/containers/intersection_observer_article_container.js
@@ -0,0 +1,17 @@
+import { connect } from 'react-redux';
+import IntersectionObserverArticle from '../components/intersection_observer_article';
+import { setHeight } from '../actions/height_cache';
+
+const makeMapStateToProps = (state, props) => ({
+ cachedHeight: state.getIn(['height_cache', props.saveHeightKey, props.id]),
+});
+
+const mapDispatchToProps = (dispatch) => ({
+
+ onHeightChange (key, id, height) {
+ dispatch(setHeight(key, id, height));
+ },
+
+});
+
+export default connect(makeMapStateToProps, mapDispatchToProps)(IntersectionObserverArticle);
diff --git a/app/javascript/mastodon/containers/status_container.js b/app/javascript/mastodon/containers/status_container.js
index a727a87d1..c61b7d00d 100644
--- a/app/javascript/mastodon/containers/status_container.js
+++ b/app/javascript/mastodon/containers/status_container.js
@@ -18,7 +18,7 @@ import {
blockAccount,
muteAccount,
} from '../actions/accounts';
-import { muteStatus, unmuteStatus, deleteStatus, setStatusHeight } from '../actions/statuses';
+import { muteStatus, unmuteStatus, deleteStatus } from '../actions/statuses';
import { initReport } from '../actions/reports';
import { openModal } from '../actions/modal';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
@@ -138,10 +138,6 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
}
},
- onHeightChange (status, height) {
- dispatch(setStatusHeight(status.get('id'), height));
- },
-
});
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Status));
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js
index 41ce0f8b5..30a52a448 100644
--- a/app/javascript/mastodon/features/ui/index.js
+++ b/app/javascript/mastodon/features/ui/index.js
@@ -11,7 +11,7 @@ import { debounce } from 'lodash';
import { uploadCompose } from '../../actions/compose';
import { refreshHomeTimeline } from '../../actions/timelines';
import { refreshNotifications } from '../../actions/notifications';
-import { clearStatusesHeight } from '../../actions/statuses';
+import { clearHeight } from '../../actions/height_cache';
import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers';
import UploadArea from './components/upload_area';
import ColumnsAreaContainer from './containers/columns_area_container';
@@ -68,7 +68,7 @@ export default class UI extends React.PureComponent {
handleResize = debounce(() => {
// The cached heights are no longer accurate, invalidate
- this.props.dispatch(clearStatusesHeight());
+ this.props.dispatch(clearHeight());
this.setState({ width: window.innerWidth });
}, 500, {
diff --git a/app/javascript/mastodon/reducers/height_cache.js b/app/javascript/mastodon/reducers/height_cache.js
new file mode 100644
index 000000000..2f5716fae
--- /dev/null
+++ b/app/javascript/mastodon/reducers/height_cache.js
@@ -0,0 +1,23 @@
+import { Map as ImmutableMap } from 'immutable';
+import { HEIGHT_CACHE_SET, HEIGHT_CACHE_CLEAR } from '../actions/height_cache';
+
+const initialState = ImmutableMap();
+
+const setHeight = (state, key, id, height) => {
+ return state.update(key, ImmutableMap(), map => map.set(id, height));
+};
+
+const clearHeights = () => {
+ return ImmutableMap();
+};
+
+export default function statuses(state = initialState, action) {
+ switch(action.type) {
+ case HEIGHT_CACHE_SET:
+ return setHeight(state, action.key, action.id, action.height);
+ case HEIGHT_CACHE_CLEAR:
+ return clearHeights();
+ default:
+ return state;
+ }
+};
diff --git a/app/javascript/mastodon/reducers/index.js b/app/javascript/mastodon/reducers/index.js
index 3aaf259c2..0a8c3ce6c 100644
--- a/app/javascript/mastodon/reducers/index.js
+++ b/app/javascript/mastodon/reducers/index.js
@@ -19,6 +19,7 @@ import compose from './compose';
import search from './search';
import media_attachments from './media_attachments';
import notifications from './notifications';
+import height_cache from './height_cache';
const reducers = {
timelines,
@@ -41,6 +42,7 @@ const reducers = {
search,
media_attachments,
notifications,
+ height_cache,
};
export default combineReducers(reducers);
diff --git a/app/javascript/mastodon/reducers/statuses.js b/app/javascript/mastodon/reducers/statuses.js
index eec2a5f16..7f906bef6 100644
--- a/app/javascript/mastodon/reducers/statuses.js
+++ b/app/javascript/mastodon/reducers/statuses.js
@@ -15,8 +15,6 @@ import {
CONTEXT_FETCH_SUCCESS,
STATUS_MUTE_SUCCESS,
STATUS_UNMUTE_SUCCESS,
- STATUS_SET_HEIGHT,
- STATUSES_CLEAR_HEIGHT,
} from '../actions/statuses';
import {
TIMELINE_REFRESH_SUCCESS,
@@ -95,18 +93,6 @@ const filterStatuses = (state, relationship) => {
return state;
};
-const setHeight = (state, id, height) => {
- return state.update(id, ImmutableMap(), map => map.set('height', height));
-};
-
-const clearHeights = (state) => {
- state.forEach(status => {
- state = state.deleteIn([status.get('id'), 'height']);
- });
-
- return state;
-};
-
const initialState = ImmutableMap();
export default function statuses(state = initialState, action) {
@@ -148,10 +134,6 @@ export default function statuses(state = initialState, action) {
return deleteStatus(state, action.id, action.references);
case ACCOUNT_BLOCK_SUCCESS:
return filterStatuses(state, action.relationship);
- case STATUS_SET_HEIGHT:
- return setHeight(state, action.id, action.height);
- case STATUSES_CLEAR_HEIGHT:
- return clearHeights(state);
default:
return state;
}
--
cgit
From 283a5ec1a4b4c771e36e5ad50f6e7c425fcfc4f7 Mon Sep 17 00:00:00 2001
From: MitarashiDango
Date: Wed, 13 Sep 2017 22:20:03 +0900
Subject: fix share intent. (#4926)
---
app/javascript/mastodon/features/standalone/compose/index.js | 2 ++
1 file changed, 2 insertions(+)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/features/standalone/compose/index.js b/app/javascript/mastodon/features/standalone/compose/index.js
index 96d07fefb..0d764575f 100644
--- a/app/javascript/mastodon/features/standalone/compose/index.js
+++ b/app/javascript/mastodon/features/standalone/compose/index.js
@@ -2,6 +2,7 @@ import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
+import ModalContainer from '../../ui/containers/modal_container';
export default class Compose extends React.PureComponent {
@@ -10,6 +11,7 @@ export default class Compose extends React.PureComponent {
+
);
--
cgit
From 331263270bbc4b9536b3f15cdf93361493a60b97 Mon Sep 17 00:00:00 2001
From: Jeroen
Date: Wed, 13 Sep 2017 16:12:29 +0200
Subject: Updating Dutch translation (#4927)
* Update doorkeeper.nl.yml
* Update nl.yml
* Update simple_form.nl.yml
* Update nl.json
* Update en.json
* Update en.json
* Update nl.json
---
app/javascript/mastodon/locales/nl.json | 17 +++++++-----
config/locales/doorkeeper.nl.yml | 49 ++++++++++++++++++---------------
config/locales/nl.yml | 19 ++++++++++++-
config/locales/simple_form.nl.yml | 14 ++++++++--
4 files changed, 66 insertions(+), 33 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/nl.json b/app/javascript/mastodon/locales/nl.json
index d6775e1e4..2cadc7ac2 100644
--- a/app/javascript/mastodon/locales/nl.json
+++ b/app/javascript/mastodon/locales/nl.json
@@ -12,7 +12,7 @@
"account.mute": "Negeer @{name}",
"account.posts": "Toots",
"account.report": "Rapporteer @{name}",
- "account.requested": "Wacht op goedkeuring",
+ "account.requested": "Wacht op goedkeuring. Klik om volgverzoek te annuleren.",
"account.share": "Profiel van @{name} delen",
"account.unblock": "Deblokkeer @{name}",
"account.unblock_domain": "{domain} niet meer negeren",
@@ -34,10 +34,11 @@
"column.mutes": "Genegeerde gebruikers",
"column.notifications": "Meldingen",
"column.public": "Globale tijdlijn",
+ "column.pins": "Vastgezette toots",
"column_back_button.label": "terug",
"column_header.hide_settings": "Instellingen verbergen",
- "column_header.moveLeft_settings": "Move column to the left",
- "column_header.moveRight_settings": "Move column to the right",
+ "column_header.moveLeft_settings": "Kolom naar links verplaatsen",
+ "column_header.moveRight_settings": "Kolom naar rechts verplaatsen",
"column_header.pin": "Vastmaken",
"column_header.show_settings": "Instellingen tonen",
"column_header.unpin": "Losmaken",
@@ -63,8 +64,8 @@
"confirmations.mute.message": "Weet je het zeker dat je {name} wilt negeren?",
"confirmations.unfollow.confirm": "Ontvolgen",
"confirmations.unfollow.message": "Weet je het zeker dat je {name} wilt ontvolgen?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
+ "embed.instructions": "Embed deze toot op jouw website, door de onderstaande code te kopiëren.",
+ "embed.preview": "Zo komt het eruit te zien:",
"emoji_button.activity": "Activiteiten",
"emoji_button.flags": "Vlaggen",
"emoji_button.food": "Eten en drinken",
@@ -85,6 +86,7 @@
"follow_request.authorize": "Goedkeuren",
"follow_request.reject": "Afkeuren",
"getting_started.appsshort": "Apps",
+ "getting_started.donate": "Doneren",
"getting_started.faq": "FAQ",
"getting_started.heading": "Beginnen",
"getting_started.open_source_notice": "Mastodon is open-sourcesoftware. Je kunt bijdragen of problemen melden op GitHub via {github}.",
@@ -111,6 +113,7 @@
"navigation_bar.mutes": "Genegeerde gebruikers",
"navigation_bar.preferences": "Instellingen",
"navigation_bar.public_timeline": "Globale tijdlijn",
+ "navigation_bar.pins": "Vastgezette toots",
"notification.favourite": "{name} markeerde jouw toot als favoriet",
"notification.follow": "{name} volgt jou nu",
"notification.mention": "{name} vermeldde jou",
@@ -171,7 +174,7 @@
"status.mention": "Vermeld @{name}",
"status.mute_conversation": "Negeer conversatie",
"status.open": "Toot volledig tonen",
- "status.pin": "Pin on profile",
+ "status.pin": "Aan profielpagina vastmaken",
"status.reblog": "Boost",
"status.reblogged_by": "{name} boostte",
"status.reply": "Reageren",
@@ -183,7 +186,7 @@
"status.show_less": "Minder tonen",
"status.show_more": "Meer tonen",
"status.unmute_conversation": "Conversatie niet meer negeren",
- "status.unpin": "Unpin from profile",
+ "status.unpin": "Van profielpagina losmaken",
"tabs_bar.compose": "Schrijven",
"tabs_bar.federated_timeline": "Globaal",
"tabs_bar.home": "Start",
diff --git a/config/locales/doorkeeper.nl.yml b/config/locales/doorkeeper.nl.yml
index 77cf2503b..ae1f8bc52 100644
--- a/config/locales/doorkeeper.nl.yml
+++ b/config/locales/doorkeeper.nl.yml
@@ -3,9 +3,10 @@ nl:
activerecord:
attributes:
doorkeeper/application:
- name: Naam
+ name: Naam toepassing
redirect_uri: Redirect-URI
- scopes: Scopes
+ scopes: Toestemmingen
+ website: Website toepassing
errors:
models:
doorkeeper/application:
@@ -26,27 +27,31 @@ nl:
confirmations:
destroy: Weet je het zeker?
edit:
- title: Applicatie bewerken
+ title: Toepassing bewerken
form:
error: Oops! Controleer het formulier op fouten
help:
native_redirect_uri: Gebruik %{native_redirect_uri} voor lokale tests
redirect_uri: 'Gebruik één regel per URI. '
- scopes: Scopes met spaties van elkaar scheiden. Laat leeg om de standaardscopes te gebruiken.
+ scopes: Toestemmingen met spaties van elkaar scheiden. Laat leeg om de standaardtoestemmingen te gebruiken.
index:
+ application: Toepassing
callback_url: Callback-URL
+ delete: Verwijderen
name: Naam
- new: Nieuwe applicatie
- title: Jouw applicaties
+ new: Nieuwe toepassing
+ scopes: Toestemmingen
+ show: Tonen
+ title: Jouw toepassingen
new:
- title: Nieuwe applicatie
+ title: Nieuwe toepassing
show:
actions: Acties
- application_id: Applicatie-ID
+ application_id: Client-key
callback_urls: Callback-URL's
- scopes: Scopes
- secret: Secret
- title: 'Applicatie: %{name}'
+ scopes: Toestemmingen
+ secret: Client-secret
+ title: 'Toepassing: %{name}'
authorizations:
buttons:
authorize: Autoriseren
@@ -54,7 +59,7 @@ nl:
error:
title: Er is een fout opgetreden
new:
- able_to: Deze applicatie zal in staat zijn om
+ able_to: Deze toepassing zal in staat zijn om
prompt: "%{client_name} autoriseren om uw account te gebruiken?"
title: Autorisatie vereist
show:
@@ -65,10 +70,10 @@ nl:
confirmations:
revoke: Weet je het zeker?
index:
- application: Applicatie
+ application: Toepassing
created_at: Aangemaakt op
date_format: "%d-%m-%Y %H:%M:%S"
- title: Jouw geautoriseerde applicaties
+ title: Jouw geautoriseerde toepassingen
errors:
messages:
access_denied: De resource-eigenaar of autorisatie-server weigerde het verzoek.
@@ -92,23 +97,23 @@ nl:
flash:
applications:
create:
- notice: Applicatie aangemaakt.
+ notice: Toepassing aangemaakt.
destroy:
- notice: Applicatie verwijderd.
+ notice: Toepassing verwijderd.
update:
- notice: Applicatie bewerkt.
+ notice: Toepassing bewerkt.
authorized_applications:
destroy:
- notice: Applicatie ingetrokken.
+ notice: Toepassing ingetrokken.
layouts:
admin:
nav:
- applications: Applicaties
+ applications: Toepassingen
home: Home
oauth2_provider: OAuth2-provider
application:
title: OAuth-autorisatie vereist
scopes:
- follow: accounts te volgen, te negeren en te blokkeren.
- read: jouw accountgegevens te lezen
- write: namens jou berichten te plaatsen
+ follow: accounts volgen, negeren en blokkeren
+ read: berichten lezen
+ write: berichten plaatsen
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index 2b7a1a511..c2b4b6da6 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -41,8 +41,11 @@ nl:
people_followed_by: Mensen die %{name} volgt
people_who_follow: Mensen die %{name} volgen
posts: Toots
+ posts_with_replies: Toots met reacties
remote_follow: Extern volgen
reserved_username: Deze gebruikersnaam is gereserveerd
+ roles:
+ admin: Beheerder
unfollow: Ontvolgen
admin:
accounts:
@@ -56,7 +59,9 @@ nl:
email: E-mail
feed_url: Feed-URL
followers: Volgers
+ followers_url: Volgers-URL
follows: Volgt
+ inbox_url: Inbox-URL
ip: IP
location:
all: Alles
@@ -86,6 +91,7 @@ nl:
resubscribe: Opnieuw abonneren
salmon_url: Salmon-URL
search: Zoeken
+ shared_inbox_url: Gedeelde inbox-URL
show:
created_reports: Toots door dit account gerapporteerd
report: gerapporteerd
@@ -160,6 +166,9 @@ nl:
unresolved: Onopgelost
view: Weergeven
settings:
+ bootstrap_timeline_accounts:
+ desc_html: Meerdere gebruikersnamen met komma's scheiden. Alleen lokale en niet opgeschorte accounts werken. Laat leeg voor alle lokale beheerders.
+ title: Standaard te volgen accounts voor nieuwe gebruikers
contact_information:
email: Vul een openbaar gebruikt e-mailadres in
username: Vul een gebruikersnaam in
@@ -272,7 +281,7 @@ nl:
content: Veiligheidsverificatie mislukt. Blokkeer je toevallig cookies?
title: Veiligheidsverificatie mislukt
'429': Te veel verbindingsaanvragen.
- noscript_html: Schakel JavaScript in om de webapplicatie van Mastodon te gebruiken. Als alternatief kan je een Mastodon-app zoeken voor jouw platform.
+ noscript_html: Schakel JavaScript in om de webapp van Mastodon te kunnen gebruiken. Als alternatief kan je een Mastodon-app zoeken voor jouw platform.
exports:
blocks: Jij blokkeert
csv: CSV
@@ -412,6 +421,7 @@ nl:
authorized_apps: Geautoriseerde apps
back: Terug naar Mastodon
delete: Account deletion
+ development: Ontwikkelaars
edit_profile: Profiel bewerken
export: Export
followers: Geautoriseerde volgers
@@ -419,9 +429,15 @@ nl:
preferences: Voorkeuren
settings: Instellingen
two_factor_authentication: Tweestapsverificatie
+ your_apps: Jouw toepassingen
statuses:
open_in_web: In de webapp openen
over_character_limit: Limiet van %{max} tekens overschreden
+ pin_errors:
+ limit: Te veel toots vastgezet
+ ownership: Een toot van iemand anders kan niet worden vastgezet
+ private: Alleen openbare toots kunnen worden vastgezet
+ reblog: Een boost kan niet worden vastgezet
show_more: Meer tonen
visibilities:
private: Alleen volgers
@@ -432,6 +448,7 @@ nl:
unlisted_long: Aan iedereen tonen, maar niet op openbare tijdlijnen
stream_entries:
click_to_show: Klik om te tonen
+ pinned: Vastgemaakte toot
reblogged: boostte
sensitive_content: Gevoelige inhoud
terms:
diff --git a/config/locales/simple_form.nl.yml b/config/locales/simple_form.nl.yml
index 351d1800c..82f6cd426 100644
--- a/config/locales/simple_form.nl.yml
+++ b/config/locales/simple_form.nl.yml
@@ -7,7 +7,10 @@ nl:
display_name: Maximaal 30 tekens
header: PNG, GIF of JPG. Maximaal 2MB. Wordt teruggeschaald naar 700x335px
locked: Vereist dat je handmatig volgers moet accepteren en stelt de privacy van toots standaard in op alleen volgers
- note: Maximaal 160 tekens
+ note:
+ one: 1 teken over
+ other: %{count} tekens over
+ setting_noindex: Heeft invloed op jouw openbare profiel en toots
imports:
data: CSV-bestand dat op een andere Mastodon-server werd geëxporteerd
sessions:
@@ -32,8 +35,13 @@ nl:
otp_attempt: Tweestaps-aanmeldcode
password: Wachtwoord
setting_auto_play_gif: Speel geanimeerde GIF's automatisch af
- setting_boost_modal: Vraag voor het boosten een bevestiging
- setting_default_privacy: Tootprivacy
+ setting_boost_modal: Vraag voor het boosten van een toot een bevestiging
+ setting_default_privacy: Zichtbaarheid toots
+ setting_default_sensitive: Media altijd als gevoelig markeren
+ setting_delete_modal: Vraag voor het verwijderen van een toot een bevestiging
+ setting_noindex: Jouw toots niet door zoekmachines laten indexeren
+ setting_system_font_ui: Standaardlettertype van jouw systeem gebruiken
+ setting_unfollow_modal: Vraag voor het ontvolgen van iemand een bevestiging
type: Importtype
username: gebruikersnaam
interactions:
--
cgit
From 9239e4ce4d4e958e62552d4a01183d0295c020f5 Mon Sep 17 00:00:00 2001
From: Eugen Rochko
Date: Thu, 14 Sep 2017 00:04:30 +0200
Subject: Uploads for admin site settings (#4913)
* Improve OpenGraph tags for about pages
* Add thumbnail admin setting
* Fix error
* Fix up
---
app/controllers/admin/settings_controller.rb | 14 ++++++--
app/javascript/images/mastodon_small.jpg | Bin 25199 -> 0 bytes
app/javascript/images/preview.jpg | Bin 0 -> 292252 bytes
app/models/site_upload.rb | 44 +++++++++++++++++++++++
app/presenters/instance_presenter.rb | 4 +++
app/serializers/rest/instance_serializer.rb | 8 ++++-
app/views/about/_og.html.haml | 10 ++++++
app/views/about/more.html.haml | 11 +-----
app/views/about/show.html.haml | 11 +-----
app/views/admin/settings/edit.html.haml | 5 +++
config/locales/en.yml | 3 ++
db/migrate/20170913000752_create_site_uploads.rb | 10 ++++++
db/schema.rb | 14 +++++++-
spec/fabricators/site_upload_fabricator.rb | 3 ++
spec/models/site_upload_spec.rb | 5 +++
spec/views/about/show.html.haml_spec.rb | 9 ++---
16 files changed, 123 insertions(+), 28 deletions(-)
delete mode 100644 app/javascript/images/mastodon_small.jpg
create mode 100644 app/javascript/images/preview.jpg
create mode 100644 app/models/site_upload.rb
create mode 100644 app/views/about/_og.html.haml
create mode 100644 db/migrate/20170913000752_create_site_uploads.rb
create mode 100644 spec/fabricators/site_upload_fabricator.rb
create mode 100644 spec/models/site_upload_spec.rb
(limited to 'app/javascript')
diff --git a/app/controllers/admin/settings_controller.rb b/app/controllers/admin/settings_controller.rb
index c5e6fe4e5..a2f86b8a9 100644
--- a/app/controllers/admin/settings_controller.rb
+++ b/app/controllers/admin/settings_controller.rb
@@ -14,6 +14,7 @@ module Admin
open_deletion
timeline_preview
bootstrap_timeline_accounts
+ thumbnail
).freeze
BOOLEAN_SETTINGS = %w(
@@ -22,14 +23,23 @@ module Admin
timeline_preview
).freeze
+ UPLOAD_SETTINGS = %w(
+ thumbnail
+ ).freeze
+
def edit
@admin_settings = Form::AdminSettings.new
end
def update
settings_params.each do |key, value|
- setting = Setting.where(var: key).first_or_initialize(var: key)
- setting.update(value: value_for_update(key, value))
+ if UPLOAD_SETTINGS.include?(key)
+ upload = SiteUpload.where(var: key).first_or_initialize(var: key)
+ upload.update(file: value)
+ else
+ setting = Setting.where(var: key).first_or_initialize(var: key)
+ setting.update(value: value_for_update(key, value))
+ end
end
flash[:notice] = I18n.t('generic.changes_saved_msg')
diff --git a/app/javascript/images/mastodon_small.jpg b/app/javascript/images/mastodon_small.jpg
deleted file mode 100644
index 9c88ce3f7..000000000
Binary files a/app/javascript/images/mastodon_small.jpg and /dev/null differ
diff --git a/app/javascript/images/preview.jpg b/app/javascript/images/preview.jpg
new file mode 100644
index 000000000..ec2856748
Binary files /dev/null and b/app/javascript/images/preview.jpg differ
diff --git a/app/models/site_upload.rb b/app/models/site_upload.rb
new file mode 100644
index 000000000..8ffdc8313
--- /dev/null
+++ b/app/models/site_upload.rb
@@ -0,0 +1,44 @@
+# frozen_string_literal: true
+# == Schema Information
+#
+# Table name: site_uploads
+#
+# id :integer not null, primary key
+# var :string default(""), not null
+# file_file_name :string
+# file_content_type :string
+# file_file_size :integer
+# file_updated_at :datetime
+# meta :json
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
+class SiteUpload < ApplicationRecord
+ has_attached_file :file
+
+ validates_attachment_content_type :file, content_type: /\Aimage\/.*\z/
+ validates :var, presence: true, uniqueness: true
+
+ before_save :set_meta
+ after_commit :clear_cache
+
+ def cache_key
+ "site_uploads/#{var}"
+ end
+
+ private
+
+ def set_meta
+ tempfile = file.queued_for_write[:original]
+
+ return if tempfile.nil?
+
+ geometry = Paperclip::Geometry.from_file(tempfile)
+ self.meta = { width: geometry.width.to_i, height: geometry.height.to_i }
+ end
+
+ def clear_cache
+ Rails.cache.delete(cache_key)
+ end
+end
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 8104b7531..c9e3c31a1 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -35,4 +35,8 @@ class InstancePresenter
def source_url
Mastodon::Version.source_url
end
+
+ def thumbnail
+ @thumbnail ||= Rails.cache.fetch('site_uploads/thumbnail') { SiteUpload.find_by(var: 'thumbnail') }
+ end
end
diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb
index a97137909..2898011fd 100644
--- a/app/serializers/rest/instance_serializer.rb
+++ b/app/serializers/rest/instance_serializer.rb
@@ -1,8 +1,10 @@
# frozen_string_literal: true
class REST::InstanceSerializer < ActiveModel::Serializer
+ include RoutingHelper
+
attributes :uri, :title, :description, :email,
- :version, :urls, :stats
+ :version, :urls, :stats, :thumbnail
def uri
Rails.configuration.x.local_domain
@@ -24,6 +26,10 @@ class REST::InstanceSerializer < ActiveModel::Serializer
Mastodon::Version.to_s
end
+ def thumbnail
+ full_asset_url(instance_presenter.thumbnail.file.url) if instance_presenter.thumbnail
+ end
+
def stats
{
user_count: instance_presenter.user_count,
diff --git a/app/views/about/_og.html.haml b/app/views/about/_og.html.haml
new file mode 100644
index 000000000..dbd476915
--- /dev/null
+++ b/app/views/about/_og.html.haml
@@ -0,0 +1,10 @@
+- thumbnail = @instance_presenter.thumbnail
+= opengraph 'og:site_name', t('about.hosted_on', domain: site_hostname)
+= opengraph 'og:url', about_url
+= opengraph 'og:type', 'website'
+= opengraph 'og:title', @instance_presenter.site_title
+= opengraph 'og:description', strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html'))
+= opengraph 'og:image', full_asset_url(thumbnail&.file&.url || asset_pack_path('preview.jpg', protocol: :request))
+= opengraph 'og:image:width', thumbnail ? thumbnail.meta['width'] : '1200'
+= opengraph 'og:image:height', thumbnail ? thumbnail.meta['height'] : '630'
+= opengraph 'twitter:card', 'summary_large_image'
diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index 094188472..1a4e74643 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -3,16 +3,7 @@
- content_for :header_tags do
= javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
-
- %meta{ property: 'og:site_name', content: site_title }/
- %meta{ property: 'og:url', content: about_url }/
- %meta{ property: 'og:type', content: 'website' }/
- %meta{ property: 'og:title', content: site_hostname }/
- %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html')) }/
- %meta{ property: 'og:image', content: asset_pack_path('mastodon_small.jpg', protocol: :request) }/
- %meta{ property: 'og:image:width', content: '400' }/
- %meta{ property: 'og:image:height', content: '400' }/
- %meta{ property: 'twitter:card', content: 'summary' }/
+ = render partial: 'og'
.landing-page
.header-wrapper.compact
diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml
index 93270fe3d..0d311b895 100644
--- a/app/views/about/show.html.haml
+++ b/app/views/about/show.html.haml
@@ -4,16 +4,7 @@
- content_for :header_tags do
%script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
= javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous'
-
- %meta{ property: 'og:site_name', content: site_title }/
- %meta{ property: 'og:url', content: about_url }/
- %meta{ property: 'og:type', content: 'website' }/
- %meta{ property: 'og:title', content: site_hostname }/
- %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html')) }/
- %meta{ property: 'og:image', content: asset_pack_path('mastodon_small.jpg', protocol: :request) }/
- %meta{ property: 'og:image:width', content: '400' }/
- %meta{ property: 'og:image:height', content: '400' }/
- %meta{ property: 'twitter:card', content: 'summary' }/
+ = render partial: 'og'
.landing-page
.header-wrapper
diff --git a/app/views/admin/settings/edit.html.haml b/app/views/admin/settings/edit.html.haml
index 50d019ec4..468166035 100644
--- a/app/views/admin/settings/edit.html.haml
+++ b/app/views/admin/settings/edit.html.haml
@@ -10,6 +10,11 @@
%hr/
+ .fields-group
+ = f.input :thumbnail, as: :file, wrapper: :with_block_label, label: t('admin.settings.thumbnail.title'), hint: t('admin.settings.thumbnail.desc_html')
+
+ %hr/
+
.fields-group
= f.input :timeline_preview, as: :boolean, wrapper: :with_label, label: t('admin.settings.timeline_preview.title'), hint: t('admin.settings.timeline_preview.desc_html')
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0cd57a64f..8b5f52b02 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -195,6 +195,9 @@ en:
desc_html: You can write your own privacy policy, terms of service or other legalese. You can use HTML tags
title: Custom terms of service
site_title: Instance name
+ thumbnail:
+ desc_html: Used for previews via OpenGraph and API. 1200x630px recommended
+ title: Instance thumbnail
timeline_preview:
desc_html: Display public timeline on landing page
title: Timeline preview
diff --git a/db/migrate/20170913000752_create_site_uploads.rb b/db/migrate/20170913000752_create_site_uploads.rb
new file mode 100644
index 000000000..2246e48cd
--- /dev/null
+++ b/db/migrate/20170913000752_create_site_uploads.rb
@@ -0,0 +1,10 @@
+class CreateSiteUploads < ActiveRecord::Migration[5.1]
+ def change
+ create_table :site_uploads do |t|
+ t.string :var, default: '', null: false, index: { unique: true }
+ t.attachment :file
+ t.json :meta
+ t.timestamps
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d8af0a1f8..f2ca2af69 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170905165803) do
+ActiveRecord::Schema.define(version: 20170913000752) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -288,6 +288,18 @@ ActiveRecord::Schema.define(version: 20170905165803) do
t.index ["thing_type", "thing_id", "var"], name: "index_settings_on_thing_type_and_thing_id_and_var", unique: true
end
+ create_table "site_uploads", force: :cascade do |t|
+ t.string "var", default: "", null: false
+ t.string "file_file_name"
+ t.string "file_content_type"
+ t.integer "file_file_size"
+ t.datetime "file_updated_at"
+ t.json "meta"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.index ["var"], name: "index_site_uploads_on_var", unique: true
+ end
+
create_table "status_pins", force: :cascade do |t|
t.bigint "account_id", null: false
t.bigint "status_id", null: false
diff --git a/spec/fabricators/site_upload_fabricator.rb b/spec/fabricators/site_upload_fabricator.rb
new file mode 100644
index 000000000..8f4e43ac9
--- /dev/null
+++ b/spec/fabricators/site_upload_fabricator.rb
@@ -0,0 +1,3 @@
+Fabricator(:site_upload) do
+
+end
diff --git a/spec/models/site_upload_spec.rb b/spec/models/site_upload_spec.rb
new file mode 100644
index 000000000..8745d54b8
--- /dev/null
+++ b/spec/models/site_upload_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe SiteUpload, type: :model do
+
+end
diff --git a/spec/views/about/show.html.haml_spec.rb b/spec/views/about/show.html.haml_spec.rb
index aa151dd27..724643cbc 100644
--- a/spec/views/about/show.html.haml_spec.rb
+++ b/spec/views/about/show.html.haml_spec.rb
@@ -15,15 +15,16 @@ describe 'about/show.html.haml', without_verify_partial_doubles: true do
version_number: '1.0',
source_url: 'https://github.com/tootsuite/mastodon',
open_registrations: false,
+ thumbnail: nil,
closed_registrations_message: 'yes')
assign(:instance_presenter, instance_presenter)
render
header_tags = view.content_for(:header_tags)
- expect(header_tags).to match(%r{ })
- expect(header_tags).to match(%r{ })
- expect(header_tags).to match(%r{ })
- expect(header_tags).to match(%r{ })
+ expect(header_tags).to match(%r{ })
+ expect(header_tags).to match(%r{ })
+ expect(header_tags).to match(%r{ })
+ expect(header_tags).to match(%r{ })
end
end
--
cgit
From 2bbf987a0a352a36ef0cc7f06fe366b60593e89c Mon Sep 17 00:00:00 2001
From: Eugen Rochko
Date: Thu, 14 Sep 2017 03:39:10 +0200
Subject: Redesign video player (#4911)
* Redesign video player
* Use new video player on static public pages too
* Use media gallery component on static public pages too
* Pause video when hiding it
* Full-screen sizing on WebKit
* Add aria labels to video player buttons
* Display link card on public status page
* Fix fullscreen from modal sizing issue
* Remove contain: strict property to fix fullscreen from columns
---
app/javascript/mastodon/components/status.js | 19 +-
.../mastodon/containers/card_container.js | 18 ++
.../mastodon/containers/media_gallery_container.js | 34 +++
.../mastodon/containers/video_container.js | 26 ++
.../mastodon/features/status/components/card.js | 10 +-
.../features/status/components/detailed_status.js | 19 +-
.../mastodon/features/ui/components/video_modal.js | 22 +-
.../mastodon/features/ui/util/async-components.js | 4 +
app/javascript/mastodon/features/video/index.js | 304 +++++++++++++++++++++
app/javascript/mastodon/locales/ar.json | 11 +
app/javascript/mastodon/locales/bg.json | 11 +
app/javascript/mastodon/locales/ca.json | 11 +
app/javascript/mastodon/locales/de.json | 11 +
.../mastodon/locales/defaultMessages.json | 62 +++++
app/javascript/mastodon/locales/en.json | 13 +-
app/javascript/mastodon/locales/eo.json | 11 +
app/javascript/mastodon/locales/es.json | 11 +
app/javascript/mastodon/locales/fa.json | 13 +-
app/javascript/mastodon/locales/fi.json | 11 +
app/javascript/mastodon/locales/fr.json | 13 +-
app/javascript/mastodon/locales/he.json | 11 +
app/javascript/mastodon/locales/hr.json | 12 +-
app/javascript/mastodon/locales/hu.json | 11 +
app/javascript/mastodon/locales/id.json | 11 +
app/javascript/mastodon/locales/io.json | 11 +
app/javascript/mastodon/locales/it.json | 11 +
app/javascript/mastodon/locales/ja.json | 13 +-
app/javascript/mastodon/locales/ko.json | 13 +-
app/javascript/mastodon/locales/nl.json | 11 +
app/javascript/mastodon/locales/no.json | 11 +
app/javascript/mastodon/locales/oc.json | 13 +-
app/javascript/mastodon/locales/pl.json | 9 +
app/javascript/mastodon/locales/pt-BR.json | 13 +-
app/javascript/mastodon/locales/pt.json | 11 +
app/javascript/mastodon/locales/ru.json | 11 +
app/javascript/mastodon/locales/th.json | 11 +
app/javascript/mastodon/locales/tr.json | 11 +
app/javascript/mastodon/locales/uk.json | 11 +
app/javascript/mastodon/locales/zh-CN.json | 11 +
app/javascript/mastodon/locales/zh-HK.json | 11 +
app/javascript/mastodon/locales/zh-TW.json | 11 +
app/javascript/packs/public.js | 30 +-
app/javascript/styles/components.scss | 197 ++++++++++++-
app/javascript/styles/stream_entries.scss | 150 +---------
.../stream_entries/_detailed_status.html.haml | 15 +-
app/views/stream_entries/_simple_status.html.haml | 17 +-
46 files changed, 1064 insertions(+), 217 deletions(-)
create mode 100644 app/javascript/mastodon/containers/card_container.js
create mode 100644 app/javascript/mastodon/containers/media_gallery_container.js
create mode 100644 app/javascript/mastodon/containers/video_container.js
create mode 100644 app/javascript/mastodon/features/video/index.js
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js
index 30a0c10cb..82359156d 100644
--- a/app/javascript/mastodon/components/status.js
+++ b/app/javascript/mastodon/components/status.js
@@ -9,7 +9,7 @@ import StatusContent from './status_content';
import StatusActionBar from './status_action_bar';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
-import { MediaGallery, VideoPlayer } from '../features/ui/util/async-components';
+import { MediaGallery, Video } from '../features/ui/util/async-components';
// We use the component (and not the container) since we do not want
// to use the progress bar to show download progress
@@ -88,6 +88,10 @@ export default class Status extends ImmutablePureComponent {
return
;
}
+ handleOpenVideo = startTime => {
+ this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), startTime);
+ }
+
render () {
let media = null;
let statusAvatar;
@@ -127,9 +131,18 @@ export default class Status extends ImmutablePureComponent {
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
+ const video = status.getIn(['media_attachments', 0]);
+
media = (
-
- {Component => }
+
+ {Component => }
);
} else {
diff --git a/app/javascript/mastodon/containers/card_container.js b/app/javascript/mastodon/containers/card_container.js
new file mode 100644
index 000000000..11b9f88d4
--- /dev/null
+++ b/app/javascript/mastodon/containers/card_container.js
@@ -0,0 +1,18 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import Card from '../features/status/components/card';
+import { fromJS } from 'immutable';
+
+export default class CardContainer extends React.PureComponent {
+
+ static propTypes = {
+ locale: PropTypes.string,
+ card: PropTypes.array.isRequired,
+ };
+
+ render () {
+ const { card, ...props } = this.props;
+ return ;
+ }
+
+}
diff --git a/app/javascript/mastodon/containers/media_gallery_container.js b/app/javascript/mastodon/containers/media_gallery_container.js
new file mode 100644
index 000000000..812c3d4e5
--- /dev/null
+++ b/app/javascript/mastodon/containers/media_gallery_container.js
@@ -0,0 +1,34 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { IntlProvider, addLocaleData } from 'react-intl';
+import { getLocale } from '../locales';
+import MediaGallery from '../components/media_gallery';
+import { fromJS } from 'immutable';
+
+const { localeData, messages } = getLocale();
+addLocaleData(localeData);
+
+export default class MediaGalleryContainer extends React.PureComponent {
+
+ static propTypes = {
+ locale: PropTypes.string.isRequired,
+ media: PropTypes.array.isRequired,
+ };
+
+ handleOpenMedia = () => {}
+
+ render () {
+ const { locale, media, ...props } = this.props;
+
+ return (
+
+
+
+ );
+ }
+
+}
diff --git a/app/javascript/mastodon/containers/video_container.js b/app/javascript/mastodon/containers/video_container.js
new file mode 100644
index 000000000..2fd353096
--- /dev/null
+++ b/app/javascript/mastodon/containers/video_container.js
@@ -0,0 +1,26 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { IntlProvider, addLocaleData } from 'react-intl';
+import { getLocale } from '../locales';
+import Video from '../features/video';
+
+const { localeData, messages } = getLocale();
+addLocaleData(localeData);
+
+export default class VideoContainer extends React.PureComponent {
+
+ static propTypes = {
+ locale: PropTypes.string.isRequired,
+ };
+
+ render () {
+ const { locale, ...props } = this.props;
+
+ return (
+
+
+
+ );
+ }
+
+}
diff --git a/app/javascript/mastodon/features/status/components/card.js b/app/javascript/mastodon/features/status/components/card.js
index 6b13e15cc..41c4300d3 100644
--- a/app/javascript/mastodon/features/status/components/card.js
+++ b/app/javascript/mastodon/features/status/components/card.js
@@ -1,4 +1,5 @@
import React from 'react';
+import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
import classnames from 'classnames';
@@ -22,10 +23,15 @@ export default class Card extends React.PureComponent {
static propTypes = {
card: ImmutablePropTypes.map,
+ maxDescription: PropTypes.number,
+ };
+
+ static defaultProps = {
+ maxDescription: 50,
};
renderLink () {
- const { card } = this.props;
+ const { card, maxDescription } = this.props;
let image = '';
let provider = card.get('provider_name');
@@ -52,7 +58,7 @@ export default class Card extends React.PureComponent {
{card.get('title')}
-
{(card.get('description') || '').substring(0, 50)}
+
{(card.get('description') || '').substring(0, maxDescription)}
{provider}
diff --git a/app/javascript/mastodon/features/status/components/detailed_status.js b/app/javascript/mastodon/features/status/components/detailed_status.js
index 940a2699b..b11b41780 100644
--- a/app/javascript/mastodon/features/status/components/detailed_status.js
+++ b/app/javascript/mastodon/features/status/components/detailed_status.js
@@ -5,12 +5,12 @@ import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from '../../../components/media_gallery';
-import VideoPlayer from '../../../components/video_player';
import AttachmentList from '../../../components/attachment_list';
import Link from 'react-router-dom/Link';
import { FormattedDate, FormattedNumber } from 'react-intl';
import CardContainer from '../containers/card_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
+import Video from '../../video';
export default class DetailedStatus extends ImmutablePureComponent {
@@ -34,6 +34,10 @@ export default class DetailedStatus extends ImmutablePureComponent {
e.stopPropagation();
}
+ handleOpenVideo = startTime => {
+ this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), startTime);
+ }
+
render () {
const status = this.props.status.get('reblog') ? this.props.status.get('reblog') : this.props.status;
@@ -44,7 +48,18 @@ export default class DetailedStatus extends ImmutablePureComponent {
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
media = ;
} else if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
- media = ;
+ const video = status.getIn(['media_attachments', 0]);
+
+ media = (
+
+ );
} else {
media = ;
}
diff --git a/app/javascript/mastodon/features/ui/components/video_modal.js b/app/javascript/mastodon/features/ui/components/video_modal.js
index 9a9a49dfb..867c73ed5 100644
--- a/app/javascript/mastodon/features/ui/components/video_modal.js
+++ b/app/javascript/mastodon/features/ui/components/video_modal.js
@@ -1,35 +1,29 @@
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
-import ExtendedVideoPlayer from '../../../components/extended_video_player';
-import { defineMessages, injectIntl } from 'react-intl';
-import IconButton from '../../../components/icon_button';
+import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
-const messages = defineMessages({
- close: { id: 'lightbox.close', defaultMessage: 'Close' },
-});
-
-@injectIntl
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
media: ImmutablePropTypes.map.isRequired,
time: PropTypes.number,
onClose: PropTypes.func.isRequired,
- intl: PropTypes.object.isRequired,
};
render () {
- const { media, intl, time, onClose } = this.props;
-
- const url = media.get('url');
+ const { media, time, onClose } = this.props;
return (
);
diff --git a/app/javascript/mastodon/features/ui/util/async-components.js b/app/javascript/mastodon/features/ui/util/async-components.js
index c767f77a7..c0b93a3a1 100644
--- a/app/javascript/mastodon/features/ui/util/async-components.js
+++ b/app/javascript/mastodon/features/ui/util/async-components.js
@@ -98,6 +98,10 @@ export function VideoPlayer () {
return import(/* webpackChunkName: "status/video_player" */'../../../components/video_player');
}
+export function Video () {
+ return import(/* webpackChunkName: "features/video" */'../../video');
+}
+
export function EmbedModal () {
return import(/* webpackChunkName: "modals/embed_modal" */'../components/embed_modal');
}
diff --git a/app/javascript/mastodon/features/video/index.js b/app/javascript/mastodon/features/video/index.js
new file mode 100644
index 000000000..f228e434b
--- /dev/null
+++ b/app/javascript/mastodon/features/video/index.js
@@ -0,0 +1,304 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
+import { throttle } from 'lodash';
+import classNames from 'classnames';
+
+const messages = defineMessages({
+ play: { id: 'video.play', defaultMessage: 'Play' },
+ pause: { id: 'video.pause', defaultMessage: 'Pause' },
+ mute: { id: 'video.mute', defaultMessage: 'Mute sound' },
+ unmute: { id: 'video.unmute', defaultMessage: 'Unmute sound' },
+ hide: { id: 'video.hide', defaultMessage: 'Hide video' },
+ expand: { id: 'video.expand', defaultMessage: 'Expand video' },
+ close: { id: 'video.close', defaultMessage: 'Close video' },
+ fullscreen: { id: 'video.fullscreen', defaultMessage: 'Full screen' },
+ exit_fullscreen: { id: 'video.exit_fullscreen', defaultMessage: 'Exit full screen' },
+});
+
+const findElementPosition = el => {
+ let box;
+
+ if (el.getBoundingClientRect && el.parentNode) {
+ box = el.getBoundingClientRect();
+ }
+
+ if (!box) {
+ return {
+ left: 0,
+ top: 0,
+ };
+ }
+
+ const docEl = document.documentElement;
+ const body = document.body;
+
+ const clientLeft = docEl.clientLeft || body.clientLeft || 0;
+ const scrollLeft = window.pageXOffset || body.scrollLeft;
+ const left = (box.left + scrollLeft) - clientLeft;
+
+ const clientTop = docEl.clientTop || body.clientTop || 0;
+ const scrollTop = window.pageYOffset || body.scrollTop;
+ const top = (box.top + scrollTop) - clientTop;
+
+ return {
+ left: Math.round(left),
+ top: Math.round(top),
+ };
+};
+
+const getPointerPosition = (el, event) => {
+ const position = {};
+ const box = findElementPosition(el);
+ const boxW = el.offsetWidth;
+ const boxH = el.offsetHeight;
+ const boxY = box.top;
+ const boxX = box.left;
+
+ let pageY = event.pageY;
+ let pageX = event.pageX;
+
+ if (event.changedTouches) {
+ pageX = event.changedTouches[0].pageX;
+ pageY = event.changedTouches[0].pageY;
+ }
+
+ position.y = Math.max(0, Math.min(1, ((boxY - pageY) + boxH) / boxH));
+ position.x = Math.max(0, Math.min(1, (pageX - boxX) / boxW));
+
+ return position;
+};
+
+const isFullscreen = () => document.fullscreenElement ||
+ document.webkitFullscreenElement ||
+ document.mozFullScreenElement ||
+ document.msFullscreenElement;
+
+const exitFullscreen = () => {
+ if (document.exitFullscreen) {
+ document.exitFullscreen();
+ } else if (document.webkitExitFullscreen) {
+ document.webkitExitFullscreen();
+ } else if (document.mozCancelFullScreen) {
+ document.mozCancelFullScreen();
+ } else if (document.msExitFullscreen) {
+ document.msExitFullscreen();
+ }
+};
+
+const requestFullscreen = el => {
+ if (el.requestFullscreen) {
+ el.requestFullscreen();
+ } else if (el.webkitRequestFullscreen) {
+ el.webkitRequestFullscreen();
+ } else if (el.mozRequestFullScreen) {
+ el.mozRequestFullScreen();
+ } else if (el.msRequestFullscreen) {
+ el.msRequestFullscreen();
+ }
+};
+
+@injectIntl
+export default class Video extends React.PureComponent {
+
+ static propTypes = {
+ preview: PropTypes.string,
+ src: PropTypes.string.isRequired,
+ width: PropTypes.number,
+ height: PropTypes.number,
+ sensitive: PropTypes.bool,
+ startTime: PropTypes.number,
+ onOpenVideo: PropTypes.func,
+ onCloseVideo: PropTypes.func,
+ intl: PropTypes.object.isRequired,
+ };
+
+ state = {
+ progress: 0,
+ paused: true,
+ dragging: false,
+ fullscreen: false,
+ hovered: false,
+ muted: false,
+ revealed: !this.props.sensitive,
+ };
+
+ setPlayerRef = c => {
+ this.player = c;
+ }
+
+ setVideoRef = c => {
+ this.video = c;
+ }
+
+ setSeekRef = c => {
+ this.seek = c;
+ }
+
+ handlePlay = () => {
+ this.setState({ paused: false });
+ }
+
+ handlePause = () => {
+ this.setState({ paused: true });
+ }
+
+ handleTimeUpdate = () => {
+ this.setState({ progress: 100 * (this.video.currentTime / this.video.duration) });
+ }
+
+ handleMouseDown = e => {
+ document.addEventListener('mousemove', this.handleMouseMove, true);
+ document.addEventListener('mouseup', this.handleMouseUp, true);
+ document.addEventListener('touchmove', this.handleMouseMove, true);
+ document.addEventListener('touchend', this.handleMouseUp, true);
+
+ this.setState({ dragging: true });
+ this.video.pause();
+ this.handleMouseMove(e);
+ }
+
+ handleMouseUp = () => {
+ document.removeEventListener('mousemove', this.handleMouseMove, true);
+ document.removeEventListener('mouseup', this.handleMouseUp, true);
+ document.removeEventListener('touchmove', this.handleMouseMove, true);
+ document.removeEventListener('touchend', this.handleMouseUp, true);
+
+ this.setState({ dragging: false });
+ this.video.play();
+ }
+
+ handleMouseMove = throttle(e => {
+ const { x } = getPointerPosition(this.seek, e);
+ this.video.currentTime = this.video.duration * x;
+ this.setState({ progress: x * 100 });
+ }, 60);
+
+ togglePlay = () => {
+ if (this.state.paused) {
+ this.video.play();
+ } else {
+ this.video.pause();
+ }
+ }
+
+ toggleFullscreen = () => {
+ if (isFullscreen()) {
+ exitFullscreen();
+ } else {
+ requestFullscreen(this.player);
+ }
+ }
+
+ componentDidMount () {
+ document.addEventListener('fullscreenchange', this.handleFullscreenChange, true);
+ document.addEventListener('webkitfullscreenchange', this.handleFullscreenChange, true);
+ document.addEventListener('mozfullscreenchange', this.handleFullscreenChange, true);
+ document.addEventListener('MSFullscreenChange', this.handleFullscreenChange, true);
+ }
+
+ componentWillUnmount () {
+ document.removeEventListener('fullscreenchange', this.handleFullscreenChange, true);
+ document.removeEventListener('webkitfullscreenchange', this.handleFullscreenChange, true);
+ document.removeEventListener('mozfullscreenchange', this.handleFullscreenChange, true);
+ document.removeEventListener('MSFullscreenChange', this.handleFullscreenChange, true);
+ }
+
+ handleFullscreenChange = () => {
+ this.setState({ fullscreen: isFullscreen() });
+ }
+
+ handleMouseEnter = () => {
+ this.setState({ hovered: true });
+ }
+
+ handleMouseLeave = () => {
+ this.setState({ hovered: false });
+ }
+
+ toggleMute = () => {
+ this.video.muted = !this.video.muted;
+ this.setState({ muted: this.video.muted });
+ }
+
+ toggleReveal = () => {
+ if (this.state.revealed) {
+ this.video.pause();
+ }
+
+ this.setState({ revealed: !this.state.revealed });
+ }
+
+ handleLoadedData = () => {
+ if (this.props.startTime) {
+ this.video.currentTime = this.props.startTime;
+ this.video.play();
+ }
+ }
+
+ handleOpenVideo = () => {
+ this.video.pause();
+ this.props.onOpenVideo(this.video.currentTime);
+ }
+
+ handleCloseVideo = () => {
+ this.video.pause();
+ this.props.onCloseVideo();
+ }
+
+ render () {
+ const { preview, src, width, height, startTime, onOpenVideo, onCloseVideo, intl } = this.props;
+ const { progress, dragging, paused, fullscreen, hovered, muted, revealed } = this.state;
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {!onCloseVideo && }
+
+
+
+ {(!fullscreen && onOpenVideo) && }
+ {onCloseVideo && }
+
+
+
+
+ );
+ }
+
+}
diff --git a/app/javascript/mastodon/locales/ar.json b/app/javascript/mastodon/locales/ar.json
index 2ceb6eb9a..3a6fa2874 100644
--- a/app/javascript/mastodon/locales/ar.json
+++ b/app/javascript/mastodon/locales/ar.json
@@ -33,6 +33,7 @@
"column.home": "الرئيسية",
"column.mutes": "الحسابات المكتومة",
"column.notifications": "الإشعارات",
+ "column.pins": "Pinned toot",
"column.public": "الخيط العام الموحد",
"column_back_button.label": "العودة",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "معلومات إضافية",
"navigation_bar.logout": "خروج",
"navigation_bar.mutes": "الحسابات المكتومة",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "التفضيلات",
"navigation_bar.public_timeline": "الخيط العام الموحد",
"notification.favourite": "{name} أعجب بمنشورك",
@@ -193,6 +195,15 @@
"upload_button.label": "إضافة وسائط",
"upload_form.undo": "إلغاء",
"upload_progress.label": "يرفع...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "وسّع الفيديو",
"video_player.toggle_sound": "تبديل الصوت",
"video_player.toggle_visible": "إظهار / إخفاء الفيديو",
diff --git a/app/javascript/mastodon/locales/bg.json b/app/javascript/mastodon/locales/bg.json
index 183ba2673..9afe2d038 100644
--- a/app/javascript/mastodon/locales/bg.json
+++ b/app/javascript/mastodon/locales/bg.json
@@ -33,6 +33,7 @@
"column.home": "Начало",
"column.mutes": "Muted users",
"column.notifications": "Известия",
+ "column.pins": "Pinned toot",
"column.public": "Публичен канал",
"column_back_button.label": "Назад",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Extended information",
"navigation_bar.logout": "Излизане",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Предпочитания",
"navigation_bar.public_timeline": "Публичен канал",
"notification.favourite": "{name} хареса твоята публикация",
@@ -193,6 +195,15 @@
"upload_button.label": "Добави медия",
"upload_form.undo": "Отмяна",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Звук",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/ca.json b/app/javascript/mastodon/locales/ca.json
index 0e3d2bc18..7d45b4d6b 100644
--- a/app/javascript/mastodon/locales/ca.json
+++ b/app/javascript/mastodon/locales/ca.json
@@ -33,6 +33,7 @@
"column.home": "Inici",
"column.mutes": "Usuaris silenciats",
"column.notifications": "Notificacions",
+ "column.pins": "Pinned toot",
"column.public": "Línia de temps federada",
"column_back_button.label": "Enrere",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Informació addicional",
"navigation_bar.logout": "Tancar sessió",
"navigation_bar.mutes": "Usuaris silenciats",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferències",
"navigation_bar.public_timeline": "Línia de temps federada",
"notification.favourite": "{name} ha afavorit el teu estat",
@@ -193,6 +195,15 @@
"upload_button.label": "Afegir multimèdia",
"upload_form.undo": "Desfer",
"upload_progress.label": "Pujant...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Ampliar el vídeo",
"video_player.toggle_sound": "Alternar so",
"video_player.toggle_visible": "Alternar visibilitat",
diff --git a/app/javascript/mastodon/locales/de.json b/app/javascript/mastodon/locales/de.json
index 3133238cd..712c635c8 100644
--- a/app/javascript/mastodon/locales/de.json
+++ b/app/javascript/mastodon/locales/de.json
@@ -33,6 +33,7 @@
"column.home": "Startseite",
"column.mutes": "Stummgeschaltete Profile",
"column.notifications": "Mitteilungen",
+ "column.pins": "Pinned toot",
"column.public": "Gesamtes bekanntes Netz",
"column_back_button.label": "Zurück",
"column_header.hide_settings": "Einstellungen verbergen",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Erweiterte Informationen",
"navigation_bar.logout": "Abmelden",
"navigation_bar.mutes": "Stummgeschaltete Profile",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Einstellungen",
"navigation_bar.public_timeline": "Föderierte Zeitleiste",
"notification.favourite": "{name} favorisierte deinen Status",
@@ -193,6 +195,15 @@
"upload_button.label": "Mediendatei hinzufügen",
"upload_form.undo": "Entfernen",
"upload_progress.label": "Lade hoch…",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Videoanzeige vergrößern",
"video_player.toggle_sound": "Ton umschalten",
"video_player.toggle_visible": "Sichtbarkeit umschalten",
diff --git a/app/javascript/mastodon/locales/defaultMessages.json b/app/javascript/mastodon/locales/defaultMessages.json
index a0cb8f978..42df796a7 100644
--- a/app/javascript/mastodon/locales/defaultMessages.json
+++ b/app/javascript/mastodon/locales/defaultMessages.json
@@ -812,6 +812,10 @@
"defaultMessage": "Extended information",
"id": "navigation_bar.info"
},
+ {
+ "defaultMessage": "Pinned toots",
+ "id": "navigation_bar.pins"
+ },
{
"defaultMessage": "FAQ",
"id": "getting_started.faq"
@@ -992,6 +996,15 @@
],
"path": "app/javascript/mastodon/features/notifications/index.json"
},
+ {
+ "descriptors": [
+ {
+ "defaultMessage": "Pinned toot",
+ "id": "column.pins"
+ }
+ ],
+ "path": "app/javascript/mastodon/features/pinned_statuses/index.json"
+ },
{
"descriptors": [
{
@@ -1326,5 +1339,54 @@
}
],
"path": "app/javascript/mastodon/features/ui/components/video_modal.json"
+ },
+ {
+ "descriptors": [
+ {
+ "defaultMessage": "Play",
+ "id": "video.play"
+ },
+ {
+ "defaultMessage": "Pause",
+ "id": "video.pause"
+ },
+ {
+ "defaultMessage": "Mute sound",
+ "id": "video.mute"
+ },
+ {
+ "defaultMessage": "Unmute sound",
+ "id": "video.unmute"
+ },
+ {
+ "defaultMessage": "Hide video",
+ "id": "video.hide"
+ },
+ {
+ "defaultMessage": "Expand video",
+ "id": "video.expand"
+ },
+ {
+ "defaultMessage": "Close video",
+ "id": "video.close"
+ },
+ {
+ "defaultMessage": "Full screen",
+ "id": "video.fullscreen"
+ },
+ {
+ "defaultMessage": "Exit full screen",
+ "id": "video.exit_fullscreen"
+ },
+ {
+ "defaultMessage": "Sensitive content",
+ "id": "status.sensitive_warning"
+ },
+ {
+ "defaultMessage": "Click to view",
+ "id": "status.sensitive_toggle"
+ }
+ ],
+ "path": "app/javascript/mastodon/features/video/index.json"
}
]
\ No newline at end of file
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index f42851f45..436079aeb 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -33,8 +33,8 @@
"column.home": "Home",
"column.mutes": "Muted users",
"column.notifications": "Notifications",
- "column.public": "Federated timeline",
"column.pins": "Pinned toots",
+ "column.public": "Federated timeline",
"column_back_button.label": "Back",
"column_header.hide_settings": "Hide settings",
"column_header.moveLeft_settings": "Move column to the left",
@@ -110,9 +110,9 @@
"navigation_bar.info": "About this instance",
"navigation_bar.logout": "Logout",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferences",
"navigation_bar.public_timeline": "Federated timeline",
- "navigation_bar.pins": "Pinned toots",
"notification.favourite": "{name} favourited your status",
"notification.follow": "{name} followed you",
"notification.mention": "{name} mentioned you",
@@ -195,6 +195,15 @@
"upload_button.label": "Add media",
"upload_form.undo": "Undo",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Toggle sound",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/eo.json b/app/javascript/mastodon/locales/eo.json
index d828d0858..945fcd8e0 100644
--- a/app/javascript/mastodon/locales/eo.json
+++ b/app/javascript/mastodon/locales/eo.json
@@ -33,6 +33,7 @@
"column.home": "Hejmo",
"column.mutes": "Muted users",
"column.notifications": "Sciigoj",
+ "column.pins": "Pinned toot",
"column.public": "Fratara tempolinio",
"column_back_button.label": "Reveni",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Extended information",
"navigation_bar.logout": "Elsaluti",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferoj",
"navigation_bar.public_timeline": "Fratara tempolinio",
"notification.favourite": "{name} favoris vian mesaĝon",
@@ -193,6 +195,15 @@
"upload_button.label": "Aldoni enhavaĵon",
"upload_form.undo": "Malfari",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Aktivigi sonojn",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/es.json b/app/javascript/mastodon/locales/es.json
index d35eb84e7..7d74d6b46 100644
--- a/app/javascript/mastodon/locales/es.json
+++ b/app/javascript/mastodon/locales/es.json
@@ -33,6 +33,7 @@
"column.home": "Inicio",
"column.mutes": "Usuarios silenciados",
"column.notifications": "Notificaciones",
+ "column.pins": "Pinned toot",
"column.public": "Historia federada",
"column_back_button.label": "Atrás",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Información adicional",
"navigation_bar.logout": "Cerrar sesión",
"navigation_bar.mutes": "Usuarios silenciados",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferencias",
"navigation_bar.public_timeline": "Historia federada",
"notification.favourite": "{name} marcó tu estado como favorito",
@@ -193,6 +195,15 @@
"upload_button.label": "Subir multimedia",
"upload_form.undo": "Deshacer",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Act/Desac. sonido",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/fa.json b/app/javascript/mastodon/locales/fa.json
index 284c5a812..cd7359160 100644
--- a/app/javascript/mastodon/locales/fa.json
+++ b/app/javascript/mastodon/locales/fa.json
@@ -33,8 +33,8 @@
"column.home": "خانه",
"column.mutes": "کاربران بیصداشده",
"column.notifications": "اعلانها",
- "column.public": "نوشتههای همهجا",
"column.pins": "نوشتههای ثابت",
+ "column.public": "نوشتههای همهجا",
"column_back_button.label": "بازگشت",
"column_header.hide_settings": "نهفتن تنظیمات",
"column_header.moveLeft_settings": "انتقال ستون به چپ",
@@ -110,9 +110,9 @@
"navigation_bar.info": "اطلاعات تکمیلی",
"navigation_bar.logout": "خروج",
"navigation_bar.mutes": "کاربران بیصداشده",
+ "navigation_bar.pins": "نوشتههای ثابت",
"navigation_bar.preferences": "ترجیحات",
"navigation_bar.public_timeline": "نوشتههای همهجا",
- "navigation_bar.pins": "نوشتههای ثابت",
"notification.favourite": "{name} نوشتهٔ شما را پسندید",
"notification.follow": "{name} پیگیر شما شد",
"notification.mention": "{name} از شما نام برد",
@@ -195,6 +195,15 @@
"upload_button.label": "افزودن تصویر",
"upload_form.undo": "واگردانی",
"upload_progress.label": "بارگذاری...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "بازکردن ویدیو",
"video_player.toggle_sound": "تغییر صداداری",
"video_player.toggle_visible": "تغییر پیدایی",
diff --git a/app/javascript/mastodon/locales/fi.json b/app/javascript/mastodon/locales/fi.json
index 926a57ff1..fc409a932 100644
--- a/app/javascript/mastodon/locales/fi.json
+++ b/app/javascript/mastodon/locales/fi.json
@@ -33,6 +33,7 @@
"column.home": "Koti",
"column.mutes": "Muted users",
"column.notifications": "Ilmoitukset",
+ "column.pins": "Pinned toot",
"column.public": "Yleinen aikajana",
"column_back_button.label": "Takaisin",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Extended information",
"navigation_bar.logout": "Kirjaudu ulos",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Ominaisuudet",
"navigation_bar.public_timeline": "Yleinen aikajana",
"notification.favourite": "{name} tykkäsi statuksestasi",
@@ -193,6 +195,15 @@
"upload_button.label": "Lisää mediaa",
"upload_form.undo": "Peru",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Äänet päälle/pois",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/fr.json b/app/javascript/mastodon/locales/fr.json
index 8ca632acc..d1b62d1a5 100644
--- a/app/javascript/mastodon/locales/fr.json
+++ b/app/javascript/mastodon/locales/fr.json
@@ -33,8 +33,8 @@
"column.home": "Accueil",
"column.mutes": "Comptes masqués",
"column.notifications": "Notifications",
- "column.public": "Fil public global",
"column.pins": "Pouets épinglés",
+ "column.public": "Fil public global",
"column_back_button.label": "Retour",
"column_header.hide_settings": "Masquer les paramètres",
"column_header.moveLeft_settings": "Déplacer la colonne vers la gauche",
@@ -110,9 +110,9 @@
"navigation_bar.info": "Plus d’informations",
"navigation_bar.logout": "Déconnexion",
"navigation_bar.mutes": "Comptes masqués",
+ "navigation_bar.pins": "Pouets épinglés",
"navigation_bar.preferences": "Préférences",
"navigation_bar.public_timeline": "Fil public global",
- "navigation_bar.pins": "Pouets épinglés",
"notification.favourite": "{name} a ajouté à ses favoris :",
"notification.follow": "{name} vous suit.",
"notification.mention": "{name} vous a mentionné⋅e :",
@@ -195,6 +195,15 @@
"upload_button.label": "Joindre un média",
"upload_form.undo": "Annuler",
"upload_progress.label": "Envoi en cours…",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Agrandir la vidéo",
"video_player.toggle_sound": "Activer/Désactiver le son",
"video_player.toggle_visible": "Afficher/Cacher la vidéo",
diff --git a/app/javascript/mastodon/locales/he.json b/app/javascript/mastodon/locales/he.json
index 9ef933108..06b401d39 100644
--- a/app/javascript/mastodon/locales/he.json
+++ b/app/javascript/mastodon/locales/he.json
@@ -33,6 +33,7 @@
"column.home": "בבית",
"column.mutes": "השתקות",
"column.notifications": "התראות",
+ "column.pins": "Pinned toot",
"column.public": "בפרהסיה",
"column_back_button.label": "חזרה",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "מידע נוסף",
"navigation_bar.logout": "יציאה",
"navigation_bar.mutes": "השתקות",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "העדפות",
"navigation_bar.public_timeline": "ציר זמן בין-קהילתי",
"notification.favourite": "חצרוצך חובב על ידי {name}",
@@ -193,6 +195,15 @@
"upload_button.label": "הוספת מדיה",
"upload_form.undo": "ביטול",
"upload_progress.label": "עולה...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "הרחבת וידאו",
"video_player.toggle_sound": "הפעלת\\ביטול שמע",
"video_player.toggle_visible": "הפעלת\\ביטול תצוגה",
diff --git a/app/javascript/mastodon/locales/hr.json b/app/javascript/mastodon/locales/hr.json
index f301723cf..cb28ce9c1 100644
--- a/app/javascript/mastodon/locales/hr.json
+++ b/app/javascript/mastodon/locales/hr.json
@@ -33,6 +33,7 @@
"column.home": "Dom",
"column.mutes": "Utišani korisnici",
"column.notifications": "Notifikacije",
+ "column.pins": "Pinned toot",
"column.public": "Federalni timeline",
"column_back_button.label": "Natrag",
"column_header.hide_settings": "Hide settings",
@@ -61,7 +62,6 @@
"confirmations.domain_block.message": "Jesi li zaista, zaista siguran da želiš potpuno blokirati {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",
"confirmations.mute.confirm": "Utišaj",
"confirmations.mute.message": "Jesi li siguran da želiš utišati {name}?",
- "confirmations.mute.message": "Jesi li siguran da želiš utišati {name}?",
"confirmations.unfollow.confirm": "Unfollow",
"confirmations.unfollow.message": "Are you sure you want to unfollow {name}?",
"embed.instructions": "Embed this status on your website by copying the code below.",
@@ -110,6 +110,7 @@
"navigation_bar.info": "Više informacija",
"navigation_bar.logout": "Odjavi se",
"navigation_bar.mutes": "Utišani korisnici",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Postavke",
"navigation_bar.public_timeline": "Federalni timeline",
"notification.favourite": "{name} je lajkao tvoj status",
@@ -194,6 +195,15 @@
"upload_button.label": "Dodaj media",
"upload_form.undo": "Poništi",
"upload_progress.label": "Uploadam...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Proširi video",
"video_player.toggle_sound": "Toggle zvuk",
"video_player.toggle_visible": "Preklopi vidljivost",
diff --git a/app/javascript/mastodon/locales/hu.json b/app/javascript/mastodon/locales/hu.json
index a708ec638..a13e4fee2 100644
--- a/app/javascript/mastodon/locales/hu.json
+++ b/app/javascript/mastodon/locales/hu.json
@@ -33,6 +33,7 @@
"column.home": "Kezdőlap",
"column.mutes": "Muted users",
"column.notifications": "Értesítések",
+ "column.pins": "Pinned toot",
"column.public": "Nyilvános",
"column_back_button.label": "Vissza",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Extended information",
"navigation_bar.logout": "Kijelentkezés",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Beállítások",
"navigation_bar.public_timeline": "Nyilvános időfolyam",
"notification.favourite": "{name} kedvencnek jelölte az állapotod",
@@ -193,6 +195,15 @@
"upload_button.label": "Média hozzáadása",
"upload_form.undo": "Mégsem",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Hang kapcsolása",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/id.json b/app/javascript/mastodon/locales/id.json
index d71e293e8..349423cce 100644
--- a/app/javascript/mastodon/locales/id.json
+++ b/app/javascript/mastodon/locales/id.json
@@ -33,6 +33,7 @@
"column.home": "Beranda",
"column.mutes": "Pengguna dibisukan",
"column.notifications": "Notifikasi",
+ "column.pins": "Pinned toot",
"column.public": "Linimasa gabunggan",
"column_back_button.label": "Kembali",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Informasi selengkapnya",
"navigation_bar.logout": "Keluar",
"navigation_bar.mutes": "Pengguna dibisukan",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Pengaturan",
"navigation_bar.public_timeline": "Linimasa gabungan",
"notification.favourite": "{name} menyukai status anda",
@@ -193,6 +195,15 @@
"upload_button.label": "Tambahkan media",
"upload_form.undo": "Undo",
"upload_progress.label": "Mengunggah...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Tampilkan video",
"video_player.toggle_sound": "Suara",
"video_player.toggle_visible": "Tampilan",
diff --git a/app/javascript/mastodon/locales/io.json b/app/javascript/mastodon/locales/io.json
index 5df5c59a1..5f19509e2 100644
--- a/app/javascript/mastodon/locales/io.json
+++ b/app/javascript/mastodon/locales/io.json
@@ -33,6 +33,7 @@
"column.home": "Hemo",
"column.mutes": "Celita uzeri",
"column.notifications": "Savigi",
+ "column.pins": "Pinned toot",
"column.public": "Federata tempolineo",
"column_back_button.label": "Retro",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Detaloza informi",
"navigation_bar.logout": "Ekirar",
"navigation_bar.mutes": "Celita uzeri",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferi",
"navigation_bar.public_timeline": "Federata tempolineo",
"notification.favourite": "{name} favorizis tua mesajo",
@@ -193,6 +195,15 @@
"upload_button.label": "Adjuntar kontenajo",
"upload_form.undo": "Desfacar",
"upload_progress.label": "Kargante...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Extensar video",
"video_player.toggle_sound": "Acendar sono",
"video_player.toggle_visible": "Chanjar videbleso",
diff --git a/app/javascript/mastodon/locales/it.json b/app/javascript/mastodon/locales/it.json
index eec35a70c..cedbb947c 100644
--- a/app/javascript/mastodon/locales/it.json
+++ b/app/javascript/mastodon/locales/it.json
@@ -33,6 +33,7 @@
"column.home": "Home",
"column.mutes": "Utenti silenziati",
"column.notifications": "Notifiche",
+ "column.pins": "Pinned toot",
"column.public": "Timeline federata",
"column_back_button.label": "Indietro",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Informazioni estese",
"navigation_bar.logout": "Logout",
"navigation_bar.mutes": "Utenti silenziati",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Impostazioni",
"navigation_bar.public_timeline": "Timeline federata",
"notification.favourite": "{name} ha apprezzato il tuo post",
@@ -193,6 +195,15 @@
"upload_button.label": "Aggiungi file multimediale",
"upload_form.undo": "Annulla",
"upload_progress.label": "Sto caricando...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Espandi video",
"video_player.toggle_sound": "Attiva suono",
"video_player.toggle_visible": "Attiva visibilità",
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index 65838a3f8..4e3164ec5 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -33,8 +33,8 @@
"column.home": "ホーム",
"column.mutes": "ミュートしたユーザー",
"column.notifications": "通知",
- "column.public": "連合タイムライン",
"column.pins": "固定されたトゥート",
+ "column.public": "連合タイムライン",
"column_back_button.label": "戻る",
"column_header.hide_settings": "設定を隠す",
"column_header.moveLeft_settings": "カラムを左に移動する",
@@ -110,9 +110,9 @@
"navigation_bar.info": "このインスタンスについて",
"navigation_bar.logout": "ログアウト",
"navigation_bar.mutes": "ミュートしたユーザー",
+ "navigation_bar.pins": "固定されたトゥート",
"navigation_bar.preferences": "ユーザー設定",
"navigation_bar.public_timeline": "連合タイムライン",
- "navigation_bar.pins": "固定されたトゥート",
"notification.favourite": "{name}さんがあなたのトゥートをお気に入りに登録しました",
"notification.follow": "{name}さんにフォローされました",
"notification.mention": "{name}さんがあなたに返信しました",
@@ -195,6 +195,15 @@
"upload_button.label": "メディアを追加",
"upload_form.undo": "やり直す",
"upload_progress.label": "アップロード中...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "動画の詳細",
"video_player.toggle_sound": "音の切り替え",
"video_player.toggle_visible": "表示切り替え",
diff --git a/app/javascript/mastodon/locales/ko.json b/app/javascript/mastodon/locales/ko.json
index 8393e82e5..46ed772cf 100644
--- a/app/javascript/mastodon/locales/ko.json
+++ b/app/javascript/mastodon/locales/ko.json
@@ -33,8 +33,8 @@
"column.home": "홈",
"column.mutes": "뮤트 중인 사용자",
"column.notifications": "알림",
- "column.public": "연합 타임라인",
"column.pins": "고정된 Toot",
+ "column.public": "연합 타임라인",
"column_back_button.label": "돌아가기",
"column_header.hide_settings": "Hide settings",
"column_header.moveLeft_settings": "Move column to the left",
@@ -110,9 +110,9 @@
"navigation_bar.info": "이 인스턴스에 대해서",
"navigation_bar.logout": "로그아웃",
"navigation_bar.mutes": "뮤트 중인 사용자",
+ "navigation_bar.pins": "고정된 Toot",
"navigation_bar.preferences": "사용자 설정",
"navigation_bar.public_timeline": "연합 타임라인",
- "navigation_bar.pins": "고정된 Toot",
"notification.favourite": "{name}님이 즐겨찾기 했습니다",
"notification.follow": "{name}님이 나를 팔로우 했습니다",
"notification.mention": "{name}님이 답글을 보냈습니다",
@@ -195,6 +195,15 @@
"upload_button.label": "미디어 추가",
"upload_form.undo": "재시도",
"upload_progress.label": "업로드 중...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "동영상 자세히 보기",
"video_player.toggle_sound": "소리 토글하기",
"video_player.toggle_visible": "표시 전환",
diff --git a/app/javascript/mastodon/locales/nl.json b/app/javascript/mastodon/locales/nl.json
index 2cadc7ac2..b3cdc8db6 100644
--- a/app/javascript/mastodon/locales/nl.json
+++ b/app/javascript/mastodon/locales/nl.json
@@ -33,6 +33,7 @@
"column.home": "Start",
"column.mutes": "Genegeerde gebruikers",
"column.notifications": "Meldingen",
+ "column.pins": "Pinned toot",
"column.public": "Globale tijdlijn",
"column.pins": "Vastgezette toots",
"column_back_button.label": "terug",
@@ -111,6 +112,7 @@
"navigation_bar.info": "Uitgebreide informatie",
"navigation_bar.logout": "Afmelden",
"navigation_bar.mutes": "Genegeerde gebruikers",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Instellingen",
"navigation_bar.public_timeline": "Globale tijdlijn",
"navigation_bar.pins": "Vastgezette toots",
@@ -196,6 +198,15 @@
"upload_button.label": "Media toevoegen",
"upload_form.undo": "Ongedaan maken",
"upload_progress.label": "Uploaden...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Video groter maken",
"video_player.toggle_sound": "Geluid in-/uitschakelen",
"video_player.toggle_visible": "Video wel/niet tonen",
diff --git a/app/javascript/mastodon/locales/no.json b/app/javascript/mastodon/locales/no.json
index f3c24a807..742017c66 100644
--- a/app/javascript/mastodon/locales/no.json
+++ b/app/javascript/mastodon/locales/no.json
@@ -33,6 +33,7 @@
"column.home": "Hjem",
"column.mutes": "Dempede brukere",
"column.notifications": "Varsler",
+ "column.pins": "Pinned toot",
"column.public": "Felles tidslinje",
"column_back_button.label": "Tilbake",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Utvidet informasjon",
"navigation_bar.logout": "Logg ut",
"navigation_bar.mutes": "Dempede brukere",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferanser",
"navigation_bar.public_timeline": "Felles tidslinje",
"notification.favourite": "{name} likte din status",
@@ -193,6 +195,15 @@
"upload_button.label": "Legg til media",
"upload_form.undo": "Angre",
"upload_progress.label": "Laster opp...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Utvid video",
"video_player.toggle_sound": "Veksle lyd",
"video_player.toggle_visible": "Veksle synlighet",
diff --git a/app/javascript/mastodon/locales/oc.json b/app/javascript/mastodon/locales/oc.json
index d2b2dd48f..be290ed32 100644
--- a/app/javascript/mastodon/locales/oc.json
+++ b/app/javascript/mastodon/locales/oc.json
@@ -33,8 +33,8 @@
"column.home": "Acuèlh",
"column.mutes": "Personas en silenci",
"column.notifications": "Notificacions",
- "column.public": "Flux public global",
"column.pins": "Tuts penjats",
+ "column.public": "Flux public global",
"column_back_button.label": "Tornar",
"column_header.hide_settings": "Amagar los paramètres",
"column_header.moveLeft_settings": "Desplaçar la colomna a man drecha",
@@ -110,9 +110,9 @@
"navigation_bar.info": "Mai informacions",
"navigation_bar.logout": "Desconnexion",
"navigation_bar.mutes": "Personas rescondudas",
+ "navigation_bar.pins": "Tuts penjats",
"navigation_bar.preferences": "Preferéncias",
"navigation_bar.public_timeline": "Flux public global",
- "navigation_bar.pins": "Tuts penjats",
"notification.favourite": "{name} a ajustat a sos favorits :",
"notification.follow": "{name} vos sèc",
"notification.mention": "{name} vos a mencionat :",
@@ -195,6 +195,15 @@
"upload_button.label": "Ajustar un mèdia",
"upload_form.undo": "Anullar",
"upload_progress.label": "Mandadís…",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Mostrar la vidèo",
"video_player.toggle_sound": "Activar/Desactivar lo son",
"video_player.toggle_visible": "Mostrar/Rescondre la vidèo",
diff --git a/app/javascript/mastodon/locales/pl.json b/app/javascript/mastodon/locales/pl.json
index daa60128d..7eea05c8c 100644
--- a/app/javascript/mastodon/locales/pl.json
+++ b/app/javascript/mastodon/locales/pl.json
@@ -195,6 +195,15 @@
"upload_button.label": "Dodaj zawartość multimedialną",
"upload_form.undo": "Cofnij",
"upload_progress.label": "Wysyłanie",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Przełącz wideo",
"video_player.toggle_sound": "Przełącz dźwięk",
"video_player.toggle_visible": "Przełącz widoczność",
diff --git a/app/javascript/mastodon/locales/pt-BR.json b/app/javascript/mastodon/locales/pt-BR.json
index 87f8097aa..59076d3e4 100644
--- a/app/javascript/mastodon/locales/pt-BR.json
+++ b/app/javascript/mastodon/locales/pt-BR.json
@@ -33,8 +33,8 @@
"column.home": "Página inicial",
"column.mutes": "Usuários silenciados",
"column.notifications": "Notificações",
- "column.public": "Global",
"column.pins": "Postagens fixadas",
+ "column.public": "Global",
"column_back_button.label": "Voltar",
"column_header.hide_settings": "Esconder configurações",
"column_header.moveLeft_settings": "Mover coluna para a esquerda",
@@ -110,9 +110,9 @@
"navigation_bar.info": "Mais informações",
"navigation_bar.logout": "Sair",
"navigation_bar.mutes": "Usuários silenciados",
+ "navigation_bar.pins": "Postagens fixadas",
"navigation_bar.preferences": "Preferências",
"navigation_bar.public_timeline": "Global",
- "navigation_bar.pins": "Postagens fixadas",
"notification.favourite": "{name} adicionou a sua postagem aos favoritos",
"notification.follow": "{name} te seguiu",
"notification.mention": "{name} te mencionou",
@@ -195,6 +195,15 @@
"upload_button.label": "Adicionar mídia",
"upload_form.undo": "Anular",
"upload_progress.label": "Salvando...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expandir vídeo",
"video_player.toggle_sound": "Ligar/Desligar som",
"video_player.toggle_visible": "Ligar/Desligar vídeo",
diff --git a/app/javascript/mastodon/locales/pt.json b/app/javascript/mastodon/locales/pt.json
index f9e686411..cff528f83 100644
--- a/app/javascript/mastodon/locales/pt.json
+++ b/app/javascript/mastodon/locales/pt.json
@@ -33,6 +33,7 @@
"column.home": "Home",
"column.mutes": "Utilizadores silenciados",
"column.notifications": "Notificações",
+ "column.pins": "Pinned toot",
"column.public": "Global",
"column_back_button.label": "Voltar",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Mais informações",
"navigation_bar.logout": "Sair",
"navigation_bar.mutes": "Utilizadores silenciados",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferências",
"navigation_bar.public_timeline": "Global",
"notification.favourite": "{name} adicionou o teu post aos favoritos",
@@ -193,6 +195,15 @@
"upload_button.label": "Adicionar media",
"upload_form.undo": "Anular",
"upload_progress.label": "A gravar...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expandir vídeo",
"video_player.toggle_sound": "Ligar/Desligar som",
"video_player.toggle_visible": "Ligar/Desligar vídeo",
diff --git a/app/javascript/mastodon/locales/ru.json b/app/javascript/mastodon/locales/ru.json
index 0f78f4b17..fcc147c87 100644
--- a/app/javascript/mastodon/locales/ru.json
+++ b/app/javascript/mastodon/locales/ru.json
@@ -33,6 +33,7 @@
"column.home": "Главная",
"column.mutes": "Список глушения",
"column.notifications": "Уведомления",
+ "column.pins": "Pinned toot",
"column.public": "Глобальная лента",
"column_back_button.label": "Назад",
"column_header.hide_settings": "Скрыть настройки",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Об узле",
"navigation_bar.logout": "Выйти",
"navigation_bar.mutes": "Список глушения",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Опции",
"navigation_bar.public_timeline": "Глобальная лента",
"notification.favourite": "{name} понравился Ваш статус",
@@ -193,6 +195,15 @@
"upload_button.label": "Добавить медиаконтент",
"upload_form.undo": "Отменить",
"upload_progress.label": "Загрузка...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Развернуть видео",
"video_player.toggle_sound": "Вкл./выкл. звук",
"video_player.toggle_visible": "Показать/скрыть",
diff --git a/app/javascript/mastodon/locales/th.json b/app/javascript/mastodon/locales/th.json
index 069fdf7c3..f2752f5e0 100644
--- a/app/javascript/mastodon/locales/th.json
+++ b/app/javascript/mastodon/locales/th.json
@@ -33,6 +33,7 @@
"column.home": "Home",
"column.mutes": "Muted users",
"column.notifications": "Notifications",
+ "column.pins": "Pinned toot",
"column.public": "Federated timeline",
"column_back_button.label": "Back",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "About this instance",
"navigation_bar.logout": "Logout",
"navigation_bar.mutes": "Muted users",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Preferences",
"navigation_bar.public_timeline": "Federated timeline",
"notification.favourite": "{name} favourited your status",
@@ -193,6 +195,15 @@
"upload_button.label": "Add media",
"upload_form.undo": "Undo",
"upload_progress.label": "Uploading...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Expand video",
"video_player.toggle_sound": "Toggle sound",
"video_player.toggle_visible": "Toggle visibility",
diff --git a/app/javascript/mastodon/locales/tr.json b/app/javascript/mastodon/locales/tr.json
index 8a36bd207..2676b851c 100644
--- a/app/javascript/mastodon/locales/tr.json
+++ b/app/javascript/mastodon/locales/tr.json
@@ -33,6 +33,7 @@
"column.home": "Anasayfa",
"column.mutes": "Susturulmuş kullanıcılar",
"column.notifications": "Bildirimler",
+ "column.pins": "Pinned toot",
"column.public": "Federe zaman tüneli",
"column_back_button.label": "Geri",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Genişletilmiş bilgi",
"navigation_bar.logout": "Çıkış",
"navigation_bar.mutes": "Sessize alınmış kullanıcılar",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Tercihler",
"navigation_bar.public_timeline": "Federe zaman tüneli",
"notification.favourite": "{name} senin durumunu favorilere ekledi",
@@ -193,6 +195,15 @@
"upload_button.label": "Görsel ekle",
"upload_form.undo": "Geri al",
"upload_progress.label": "Yükleniyor...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Videoyu genişlet",
"video_player.toggle_sound": "Sesi aç/kapa",
"video_player.toggle_visible": "Göster/gizle",
diff --git a/app/javascript/mastodon/locales/uk.json b/app/javascript/mastodon/locales/uk.json
index 1d06218e6..6b5ab64ef 100644
--- a/app/javascript/mastodon/locales/uk.json
+++ b/app/javascript/mastodon/locales/uk.json
@@ -33,6 +33,7 @@
"column.home": "Головна",
"column.mutes": "Заглушені користувачі",
"column.notifications": "Сповіщення",
+ "column.pins": "Pinned toot",
"column.public": "Глобальна стрічка",
"column_back_button.label": "Назад",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "Про інстанцію",
"navigation_bar.logout": "Вийти",
"navigation_bar.mutes": "Заглушені користувачі",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "Налаштування",
"navigation_bar.public_timeline": "Глобальна стрічка",
"notification.favourite": "{name} сподобався ваш допис",
@@ -193,6 +195,15 @@
"upload_button.label": "Додати медіаконтент",
"upload_form.undo": "Відмінити",
"upload_progress.label": "Завантаження...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "Розгорнути ",
"video_player.toggle_sound": "Увімкнути/вимкнути звук",
"video_player.toggle_visible": "Показати/приховати",
diff --git a/app/javascript/mastodon/locales/zh-CN.json b/app/javascript/mastodon/locales/zh-CN.json
index 93faf8876..65d67c128 100644
--- a/app/javascript/mastodon/locales/zh-CN.json
+++ b/app/javascript/mastodon/locales/zh-CN.json
@@ -33,6 +33,7 @@
"column.home": "主页",
"column.mutes": "被静音的用户",
"column.notifications": "通知",
+ "column.pins": "Pinned toot",
"column.public": "跨站公共时间轴",
"column_back_button.label": "返回",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "关于本站",
"navigation_bar.logout": "注销",
"navigation_bar.mutes": "被静音的用户",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "首选项",
"navigation_bar.public_timeline": "跨站公共时间轴",
"notification.favourite": "{name} 赞了你的嘟文",
@@ -193,6 +195,15 @@
"upload_button.label": "上传媒体文件",
"upload_form.undo": "还原",
"upload_progress.label": "上传中……",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "展开影片",
"video_player.toggle_sound": "开关音效",
"video_player.toggle_visible": "打开或关上",
diff --git a/app/javascript/mastodon/locales/zh-HK.json b/app/javascript/mastodon/locales/zh-HK.json
index d689cd5ae..91bd91636 100644
--- a/app/javascript/mastodon/locales/zh-HK.json
+++ b/app/javascript/mastodon/locales/zh-HK.json
@@ -33,6 +33,7 @@
"column.home": "主頁",
"column.mutes": "靜音名單",
"column.notifications": "通知",
+ "column.pins": "Pinned toot",
"column.public": "跨站時間軸",
"column_back_button.label": "返回",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "關於本服務站",
"navigation_bar.logout": "登出",
"navigation_bar.mutes": "被你靜音的用戶",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "偏好設定",
"navigation_bar.public_timeline": "跨站時間軸",
"notification.favourite": "{name} 喜歡你的文章",
@@ -193,6 +195,15 @@
"upload_button.label": "上載媒體檔案",
"upload_form.undo": "還原",
"upload_progress.label": "上載中……",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "展開影片",
"video_player.toggle_sound": "開關音效",
"video_player.toggle_visible": "打開或關上",
diff --git a/app/javascript/mastodon/locales/zh-TW.json b/app/javascript/mastodon/locales/zh-TW.json
index dcb9d7f3c..cfe7ccf91 100644
--- a/app/javascript/mastodon/locales/zh-TW.json
+++ b/app/javascript/mastodon/locales/zh-TW.json
@@ -33,6 +33,7 @@
"column.home": "家",
"column.mutes": "消音的使用者",
"column.notifications": "通知",
+ "column.pins": "Pinned toot",
"column.public": "聯盟時間軸",
"column_back_button.label": "上一頁",
"column_header.hide_settings": "Hide settings",
@@ -109,6 +110,7 @@
"navigation_bar.info": "關於本站",
"navigation_bar.logout": "登出",
"navigation_bar.mutes": "消音的使用者",
+ "navigation_bar.pins": "Pinned toots",
"navigation_bar.preferences": "偏好設定",
"navigation_bar.public_timeline": "聯盟時間軸",
"notification.favourite": "{name}喜歡你的狀態",
@@ -193,6 +195,15 @@
"upload_button.label": "增加媒體",
"upload_form.undo": "復原",
"upload_progress.label": "上傳中...",
+ "video.close": "Close video",
+ "video.exit_fullscreen": "Exit full screen",
+ "video.expand": "Expand video",
+ "video.fullscreen": "Full screen",
+ "video.hide": "Hide video",
+ "video.mute": "Mute sound",
+ "video.pause": "Pause",
+ "video.play": "Play",
+ "video.unmute": "Unmute sound",
"video_player.expand": "展開影片",
"video_player.toggle_sound": "切換音效",
"video_player.toggle_visible": "切換可見性",
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index ca6f9eac6..6f72a8050 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -24,6 +24,11 @@ function main() {
const emojify = require('../mastodon/emoji').default;
const { getLocale } = require('../mastodon/locales');
const { localeData } = getLocale();
+ const VideoContainer = require('../mastodon/containers/video_container').default;
+ const MediaGalleryContainer = require('../mastodon/containers/media_gallery_container').default;
+ const CardContainer = require('../mastodon/containers/card_container').default;
+ const React = require('react');
+ const ReactDOM = require('react-dom');
localeData.forEach(IntlRelativeFormat.__addLocaleData);
@@ -65,22 +70,21 @@ function main() {
window.open(e.target.href, 'mastodon-intent', 'width=400,height=400,resizable=no,menubar=no,status=no,scrollbars=yes');
});
});
- });
- delegate(document, '.video-player video', 'click', ({ target }) => {
- if (target.paused) {
- target.play();
- } else {
- target.pause();
- }
- });
+ [].forEach.call(document.querySelectorAll('[data-component="Video"]'), (content) => {
+ const props = JSON.parse(content.getAttribute('data-props'));
+ ReactDOM.render( , content);
+ });
- delegate(document, '.activity-stream .media-spoiler-wrapper .media-spoiler', 'click', function() {
- this.parentNode.classList.add('media-spoiler-wrapper__visible');
- });
+ [].forEach.call(document.querySelectorAll('[data-component="MediaGallery"]'), (content) => {
+ const props = JSON.parse(content.getAttribute('data-props'));
+ ReactDOM.render( , content);
+ });
- delegate(document, '.activity-stream .media-spoiler-wrapper .spoiler-button', 'click', function() {
- this.parentNode.classList.remove('media-spoiler-wrapper__visible');
+ [].forEach.call(document.querySelectorAll('[data-component="Card"]'), (content) => {
+ const props = JSON.parse(content.getAttribute('data-props'));
+ ReactDOM.render( , content);
+ });
});
delegate(document, '.webapp-btn', 'click', ({ target, button }) => {
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index 75485d6b6..3039e3b8e 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -566,6 +566,10 @@
opacity: 1;
animation: fade 150ms linear;
+ .video-player {
+ margin-top: 8px;
+ }
+
&.status-direct {
background: lighten($ui-base-color, 8%);
@@ -734,6 +738,10 @@
height: 22px;
}
}
+
+ .video-player {
+ margin-top: 8px;
+ }
}
.detailed-status__meta {
@@ -1404,9 +1412,6 @@
.drawer {
flex: 1 1 100%;
overflow: hidden;
- @supports(display: grid) { // hack to fix Chrome <57
- contain: strict;
- }
}
@media screen and (min-width: 360px) {
@@ -1582,9 +1587,6 @@
overflow-x: hidden;
flex: 1 1 auto;
-webkit-overflow-scrolling: touch;
- @supports(display: grid) { // hack to fix Chrome <57
- contain: strict;
- }
&.optionally-scrollable {
overflow-y: auto;
@@ -2341,10 +2343,16 @@ button.icon-button.active i.fa-retweet {
.media-spoiler {
background: $base-overlay-background;
- color: $primary-text-color;
+ color: $ui-primary-color;
border: 0;
width: 100%;
height: 100%;
+
+ &:hover,
+ &:active,
+ &:focus {
+ color: lighten($ui-primary-color, 8%);
+ }
}
.media-spoiler__warning {
@@ -3798,6 +3806,181 @@ button.icon-button.active i.fa-retweet {
z-index: 5;
}
+.video-player {
+ overflow: hidden;
+ position: relative;
+ background: $base-shadow-color;
+
+ video {
+ height: 100%;
+ width: 100%;
+ z-index: 1;
+ }
+
+ &.fullscreen {
+ width: 100% !important;
+ height: 100% !important;
+ margin: 0;
+
+ video {
+ max-width: 100% !important;
+ max-height: 100% !important;
+ }
+ }
+
+ &.inline {
+ video {
+ object-fit: cover;
+ position: relative;
+ top: 50%;
+ transform: translateY(-50%);
+ }
+ }
+
+ &__controls {
+ position: absolute;
+ z-index: 2;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ box-sizing: border-box;
+ background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 60%, transparent);
+ padding: 0 10px;
+ opacity: 0;
+ transition: opacity .1s ease;
+
+ &.active {
+ opacity: 1;
+ }
+ }
+
+ &.inactive {
+ video,
+ .video-player__controls {
+ visibility: hidden;
+ }
+ }
+
+ &__spoiler {
+ display: none;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 4;
+ border: 0;
+ background: $base-shadow-color;
+ color: $ui-primary-color;
+ transition: none;
+ pointer-events: none;
+
+ &.active {
+ display: block;
+ pointer-events: auto;
+
+ &:hover,
+ &:active,
+ &:focus {
+ color: lighten($ui-primary-color, 8%);
+ }
+ }
+
+ &__title {
+ display: block;
+ font-size: 14px;
+ }
+
+ &__subtitle {
+ display: block;
+ font-size: 11px;
+ font-weight: 500;
+ }
+ }
+
+ &__buttons {
+ padding-bottom: 10px;
+ font-size: 16px;
+
+ &.left {
+ float: left;
+
+ button {
+ padding-right: 10px;
+ }
+ }
+
+ &.right {
+ float: right;
+
+ button {
+ padding-left: 10px;
+ }
+ }
+
+ button {
+ background: transparent;
+ padding: 0;
+ border: 0;
+ color: $white;
+
+ &:active,
+ &:hover,
+ &:focus {
+ color: $ui-highlight-color;
+ }
+ }
+ }
+
+ &__seek {
+ cursor: pointer;
+ height: 24px;
+ position: relative;
+
+ &::before {
+ content: "";
+ width: 100%;
+ background: rgba($white, 0.35);
+ display: block;
+ position: absolute;
+ height: 4px;
+ top: 10px;
+ }
+
+ &__progress {
+ display: block;
+ position: absolute;
+ height: 4px;
+ top: 10px;
+ background: $ui-highlight-color;
+ }
+
+ &__handle {
+ position: absolute;
+ z-index: 3;
+ opacity: 0;
+ border-radius: 50%;
+ width: 12px;
+ height: 12px;
+ top: 6px;
+ margin-left: -6px;
+ transition: opacity .1s ease;
+ background: $ui-highlight-color;
+ pointer-events: none;
+
+ &.active {
+ opacity: 1;
+ }
+ }
+
+ &:hover {
+ .video-player__seek__handle {
+ opacity: 1;
+ }
+ }
+ }
+}
+
.media-spoiler-video {
background-size: cover;
background-repeat: no-repeat;
diff --git a/app/javascript/styles/stream_entries.scss b/app/javascript/styles/stream_entries.scss
index 8ed4c0b25..ba6d89107 100644
--- a/app/javascript/styles/stream_entries.scss
+++ b/app/javascript/styles/stream_entries.scss
@@ -143,19 +143,6 @@
}
}
}
-
- .status__attachments {
- margin-top: 8px;
- overflow: hidden;
- width: 100%;
- box-sizing: border-box;
- position: relative;
-
- .status__attachments__inner {
- display: flex;
- height: 214px;
- }
- }
}
.detailed-status.light {
@@ -237,139 +224,22 @@
}
}
- .detailed-status__attachments {
- margin-top: 8px;
- overflow: hidden;
- width: 100%;
- box-sizing: border-box;
- position: relative;
+ .status-card {
+ border-color: lighten($ui-secondary-color, 4%);
+ color: darken($ui-primary-color, 4%);
- .status__attachments__inner {
- display: flex;
- height: 360px;
- }
- }
-
- .video-player {
- margin-top: 8px;
- height: 300px;
- overflow: hidden;
- position: relative;
-
- video {
- position: relative;
- z-index: 1;
- width: 100%;
- height: 100%;
- object-fit: cover;
- top: 50%;
- transform: translateY(-50%);
+ &:hover {
+ background: lighten($ui-secondary-color, 4%);
}
}
- }
- .media-item,
- .video-item {
- box-sizing: border-box;
- position: relative;
- left: auto;
- top: auto;
- right: auto;
- bottom: auto;
- float: left;
- border: medium none;
- display: block;
- flex: 1 1 auto;
- width: 100%;
- height: 100%;
- overflow: hidden;
- margin-right: 2px;
-
- &:last-child {
- margin-right: 0;
- }
-
- a {
- display: block;
- width: 100%;
- height: 100%;
- background: no-repeat scroll center center / cover;
- text-decoration: none;
- cursor: zoom-in;
- }
-
- video {
- position: relative;
- z-index: 1;
- width: 100%;
- height: 100%;
- object-fit: cover;
- top: 50%;
- transform: translateY(-50%);
- }
- }
-
- .video-item {
- a {
- cursor: pointer;
- }
-
- .video-item__play {
- position: absolute;
- top: 50%;
- left: 50%;
- font-size: 36px;
- transform: translate(-50%, -50%);
- padding: 5px;
- border-radius: 100px;
- color: rgba($primary-text-color, 0.8);
- z-index: 1;
- }
- }
-
- .media-spoiler {
- background: $ui-primary-color;
- width: 100%;
- height: 100%;
- cursor: pointer;
- position: absolute;
- top: 0;
- left: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- text-align: center;
- transition: all 100ms linear;
- z-index: 2;
-
- &:hover {
- background: darken($ui-primary-color, 5%);
- }
-
- span {
- display: block;
-
- &:first-child {
- font-size: 14px;
- }
-
- &:last-child {
- font-size: 11px;
- font-weight: 500;
- }
+ .status-card__title,
+ .status-card__description {
+ color: $ui-base-color;
}
- }
-
- .media-spoiler-wrapper {
- &.media-spoiler-wrapper__visible {
- .media-spoiler {
- display: none;
- }
- .spoiler-button {
- display: block;
- }
+ .status-card__image {
+ background: $ui-secondary-color;
}
}
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index 466087b6a..dd9456260 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -19,17 +19,14 @@
%a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more')
.e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
- - unless status.media_attachments.empty?
+ - if !status.media_attachments.empty?
- if status.media_attachments.first.video?
- .video-player
- = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
- %video.u-video{ src: status.media_attachments.first.file.url(:original), loop: true }
+ - video = status.media_attachments.first
+ %div{ data: { component: 'Video', props: Oj.dump(src: video.file.url(:original), preview: video.file.url(:small), sensitive: status.sensitive?, width: 670, height: 380) }}
- else
- .detailed-status__attachments
- = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
- .status__attachments__inner
- - status.media_attachments.each do |media|
- = render partial: 'stream_entries/media', locals: { media: media }
+ %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 380, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
+ - elsif status.preview_cards.first
+ %div{ data: { component: 'Card', props: Oj.dump('maxDescription': 160, card: ActiveModelSerializers::SerializableResource.new(status.preview_cards.first, serializer: REST::PreviewCardSerializer).as_json) }}
.detailed-status__meta
%data.dt-published{ value: status.created_at.to_time.iso8601 }
diff --git a/app/views/stream_entries/_simple_status.html.haml b/app/views/stream_entries/_simple_status.html.haml
index 2df0cc850..55aa97f32 100644
--- a/app/views/stream_entries/_simple_status.html.haml
+++ b/app/views/stream_entries/_simple_status.html.haml
@@ -21,15 +21,8 @@
.e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
- unless status.media_attachments.empty?
- .status__attachments
- = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
- - if status.media_attachments.first.video?
- .status__attachments__inner
- .video-item
- = link_to (status.media_attachments.first.remote_url.blank? ? status.media_attachments.first.file.url(:original) : status.media_attachments.first.remote_url), style: "background-image: url(#{status.media_attachments.first.file.url(:small)})", target: '_blank', rel: 'noopener', class: 'u-video' do
- .video-item__play
- = fa_icon('play')
- - else
- .status__attachments__inner
- - status.media_attachments.each do |media|
- = render partial: 'stream_entries/media', locals: { media: media }
+ - if status.media_attachments.first.video?
+ - video = status.media_attachments.first
+ %div{ data: { component: 'Video', props: Oj.dump(src: video.file.url(:original), preview: video.file.url(:small), sensitive: status.sensitive?, width: 610, height: 343) }}
+ - else
+ %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 343, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
--
cgit
From 4f0597d5793cd1c425369d2a5649f3d5cb3446ae Mon Sep 17 00:00:00 2001
From: Eugen Rochko
Date: Thu, 14 Sep 2017 04:03:00 +0200
Subject: Give video player fluid max-width (#4935)
---
app/javascript/styles/components.scss | 1 +
1 file changed, 1 insertion(+)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index 3039e3b8e..d323c2ff0 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -3810,6 +3810,7 @@ button.icon-button.active i.fa-retweet {
overflow: hidden;
position: relative;
background: $base-shadow-color;
+ max-width: 100%;
video {
height: 100%;
--
cgit
From aad3df6afca4e0d7bae73dcfe16c88837ffe0292 Mon Sep 17 00:00:00 2001
From: Quent-in
Date: Thu, 14 Sep 2017 09:32:14 +0200
Subject: l10n update OC/FR video redesign (#4938)
* l10n update for Redesign video player (#4911)
* Update videp
* Update
I hope this time format works well.
* One missing string
* Update time format
I'd like the complete name of the month in the Long format and the short one in the short format.
I hope it works now
---
app/javascript/mastodon/locales/fr.json | 18 +++++++++---------
app/javascript/mastodon/locales/oc.json | 20 ++++++++++----------
config/locales/doorkeeper.oc.yml | 4 ++--
config/locales/oc.yml | 4 ++--
config/locales/simple_form.oc.yml | 1 +
5 files changed, 24 insertions(+), 23 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/fr.json b/app/javascript/mastodon/locales/fr.json
index d1b62d1a5..5a436891b 100644
--- a/app/javascript/mastodon/locales/fr.json
+++ b/app/javascript/mastodon/locales/fr.json
@@ -166,7 +166,7 @@
"standalone.public_title": "Jeter un coup d’œil…",
"status.cannot_reblog": "Cette publication ne peut être boostée",
"status.delete": "Effacer",
- "status.embed": "Embed",
+ "status.embed": "Intégrer",
"status.favourite": "Ajouter aux favoris",
"status.load_more": "Charger plus",
"status.media_hidden": "Média caché",
@@ -195,15 +195,15 @@
"upload_button.label": "Joindre un média",
"upload_form.undo": "Annuler",
"upload_progress.label": "Envoi en cours…",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
+ "video.close": "Fermer la vidéo",
+ "video.exit_fullscreen": "Quitter plein écran",
+ "video.expand": "Agrandir la vidéo",
+ "video.fullscreen": "Plein écran",
+ "video.hide": "Masquer la vidéo",
+ "video.mute": "Couper le son",
"video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.play": "Lecture",
+ "video.unmute": "Rétablir le son",
"video_player.expand": "Agrandir la vidéo",
"video_player.toggle_sound": "Activer/Désactiver le son",
"video_player.toggle_visible": "Afficher/Cacher la vidéo",
diff --git a/app/javascript/mastodon/locales/oc.json b/app/javascript/mastodon/locales/oc.json
index be290ed32..512e4120d 100644
--- a/app/javascript/mastodon/locales/oc.json
+++ b/app/javascript/mastodon/locales/oc.json
@@ -64,7 +64,7 @@
"confirmations.mute.message": "Sètz segur de voler metre en silenci {name} ?",
"confirmations.unfollow.confirm": "Quitar de sègre",
"confirmations.unfollow.message": "Volètz vertadièrament quitar de sègre {name} ?",
- "embed.instructions": "Embarcar aqueste estatut per o far veire sus un site Internet en copiar lo còdi çai-jos.",
+ "embed.instructions": "Embarcar aqueste estatut per lo far veire sus un site Internet en copiar lo còdi çai-jos.",
"embed.preview": "Semblarà aquò : ",
"emoji_button.activity": "Activitats",
"emoji_button.flags": "Drapèus",
@@ -195,15 +195,15 @@
"upload_button.label": "Ajustar un mèdia",
"upload_form.undo": "Anullar",
"upload_progress.label": "Mandadís…",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "Tampar la vidèo",
+ "video.exit_fullscreen": "Sortir plen ecran",
+ "video.expand": "Agrandir la vidèo",
+ "video.fullscreen": "Ecran complet",
+ "video.hide": "Amagar la vidèo",
+ "video.mute": "Copar lo son",
+ "video.pause": "Pausa",
+ "video.play": "Lectura",
+ "video.unmute": "Restablir lo son",
"video_player.expand": "Mostrar la vidèo",
"video_player.toggle_sound": "Activar/Desactivar lo son",
"video_player.toggle_visible": "Mostrar/Rescondre la vidèo",
diff --git a/config/locales/doorkeeper.oc.yml b/config/locales/doorkeeper.oc.yml
index b6aebea48..8ebfe2137 100644
--- a/config/locales/doorkeeper.oc.yml
+++ b/config/locales/doorkeeper.oc.yml
@@ -71,8 +71,8 @@ oc:
revoke: Ne sètz segur ?
index:
application: Aplicacion
- created_at: Creada lo
- date_format: "%d-%m-%Y %Ho%M %S"
+ created_at: Creacion
+ date_format: "%-d %b. de %Y %Ho%M %S"
scopes: Encastres
title: Las vòstras aplicacions autorizadas
errors:
diff --git a/config/locales/oc.yml b/config/locales/oc.yml
index c3807428b..5d9506132 100644
--- a/config/locales/oc.yml
+++ b/config/locales/oc.yml
@@ -291,8 +291,8 @@ oc:
- dissabte
formats:
default: "%e/%m/%Y"
- long: Lo %e %B de %Y
- short: "%e %b"
+ long: Lo %-d %b de %Y
+ short: "%e %B"
month_names:
-
- de genièr
diff --git a/config/locales/simple_form.oc.yml b/config/locales/simple_form.oc.yml
index 43cb52201..442a7d4b6 100644
--- a/config/locales/simple_form.oc.yml
+++ b/config/locales/simple_form.oc.yml
@@ -12,6 +12,7 @@ oc:
note:
one: Demòra encara 1 caractèr
other: Demòran encara %{count} caractèrs
+ setting_noindex: Aquò es destinat a vòstre perfil public e vòstra pagina d’estatuts
imports:
data: Fichièr CSV exportat d’una autra instància Mastodon
sessions:
--
cgit
From 45b595cdcac58dc462a27b8fa3e19967ac9b55f0 Mon Sep 17 00:00:00 2001
From: Naf
Date: Thu, 14 Sep 2017 18:20:04 +0900
Subject: Add Japanese translate for #4911 (#4943)
---
app/javascript/mastodon/locales/ja.json | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index 4e3164ec5..d48020fcd 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -195,15 +195,15 @@
"upload_button.label": "メディアを追加",
"upload_form.undo": "やり直す",
"upload_progress.label": "アップロード中...",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "動画を閉じる",
+ "video.exit_fullscreen": "全画面を終了する",
+ "video.expand": "動画を拡大する",
+ "video.fullscreen": "全画面",
+ "video.hide": "動画を閉じる",
+ "video.mute": "ミュート",
+ "video.pause": "一時停止",
+ "video.play": "再生",
+ "video.unmute": "ミュートを解除する",
"video_player.expand": "動画の詳細",
"video_player.toggle_sound": "音の切り替え",
"video_player.toggle_visible": "表示切り替え",
--
cgit
From 721460a59b60dad783bc4801b9346e85d22a2efa Mon Sep 17 00:00:00 2001
From: Jeroen
Date: Thu, 14 Sep 2017 14:52:47 +0200
Subject: Another Dutch language update (#4944)
* Update nl.json
* Update nl.yml
* Update nl.json
---
app/javascript/mastodon/locales/nl.json | 14 +++++++-------
config/locales/nl.yml | 3 +++
2 files changed, 10 insertions(+), 7 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/nl.json b/app/javascript/mastodon/locales/nl.json
index b3cdc8db6..b696bccfd 100644
--- a/app/javascript/mastodon/locales/nl.json
+++ b/app/javascript/mastodon/locales/nl.json
@@ -200,13 +200,13 @@
"upload_progress.label": "Uploaden...",
"video.close": "Close video",
"video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.expand": "Video groter maken",
+ "video.fullscreen": "Volledig scherm",
+ "video.hide": "Video verbergen",
+ "video.mute": "Geluid uitschakelen",
+ "video.pause": "Pauze",
+ "video.play": "Afspelen",
+ "video.unmute": "Geluid inschakelen",
"video_player.expand": "Video groter maken",
"video_player.toggle_sound": "Geluid in-/uitschakelen",
"video_player.toggle_visible": "Video wel/niet tonen",
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index c2b4b6da6..a8bea6141 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -192,6 +192,9 @@ nl:
desc_html: Je kan hier jouw eigen privacybeleid, gebruikersvoorwaarden en ander juridisch jargon kwijt. Je kan HTML gebruiken.
title: Aangepaste gebruikersvoorwaarden
site_title: Naam Mastodon-server
+ thumbnail:
+ desc_html: Gebruikt als voorvertoning voor OpenGraph en de API. 1200x630px aanbevolen.
+ title: Thumbnail Mastodon-server
timeline_preview:
desc_html: Toon de openbare tijdlijn op de startpagina
title: Voorbeeld tijdlijn
--
cgit
From 94fba44eecf21f5554fc62112aa4b6daff396ff5 Mon Sep 17 00:00:00 2001
From: m4sk1n
Date: Thu, 14 Sep 2017 14:58:48 +0200
Subject: i18n: Update Polish translation (#4942)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* i18n: Update Polish translation
Signed-off-by: Marcin Mikołajczak
* i18n: Update Polish translation
Signed-off-by: Marcin Mikołajczak
* Update pl.yml
---
app/javascript/mastodon/locales/pl.json | 20 ++++++++++----------
config/locales/pl.yml | 3 +++
2 files changed, 13 insertions(+), 10 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/pl.json b/app/javascript/mastodon/locales/pl.json
index 7eea05c8c..1d2443690 100644
--- a/app/javascript/mastodon/locales/pl.json
+++ b/app/javascript/mastodon/locales/pl.json
@@ -195,16 +195,16 @@
"upload_button.label": "Dodaj zawartość multimedialną",
"upload_form.undo": "Cofnij",
"upload_progress.label": "Wysyłanie",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
- "video_player.expand": "Przełącz wideo",
+ "video.close": "Zamknij film",
+ "video.exit_fullscreen": "Opuść tryb pełnoekranowy",
+ "video.expand": "Rozszerz film",
+ "video.fullscreen": "Pełny ekran",
+ "video.hide": "Ukryj film",
+ "video.mute": "Wycisz",
+ "video.pause": "Pauzuj",
+ "video.play": "Odtwórz",
+ "video.unmute": "Cofnij wyciszenie",
+ "video_player.expand": "Rozszerz film",
"video_player.toggle_sound": "Przełącz dźwięk",
"video_player.toggle_visible": "Przełącz widoczność",
"video_player.video_error": "Nie można odtworzyć pliku wideo"
diff --git a/config/locales/pl.yml b/config/locales/pl.yml
index da0451d56..4dbbd7cb1 100644
--- a/config/locales/pl.yml
+++ b/config/locales/pl.yml
@@ -193,6 +193,9 @@ pl:
desc_html: Miejsce na własną politykę prywatności, zasady użytkowania i inne unormowania prawne. Możesz korzystać z tagów HTML
title: Niestandardowe zasady użytkowania
site_title: Nazwa instancji
+ thumbnail:
+ desc_html: 'Używana w podglądzie przez OpenGraph i API. Zalecany rozmiar: 1200x630 pikseli.'
+ title: Miniatura instancji
timeline_preview:
desc_html: Wyświetlaj publiczną oś czasu na stronie widocznej dla niezalogowanych
title: Podgląd osi czasu
--
cgit
From b39d512ade9f556ae29d60239102faf67ff6a89f Mon Sep 17 00:00:00 2001
From: Masoud Abkenar
Date: Thu, 14 Sep 2017 17:13:38 +0200
Subject: l10n: update Persian translation (#4946)
---
app/javascript/mastodon/locales/fa.json | 18 +++++++++---------
config/locales/fa.yml | 6 ++++++
2 files changed, 15 insertions(+), 9 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/fa.json b/app/javascript/mastodon/locales/fa.json
index cd7359160..23f4a41d6 100644
--- a/app/javascript/mastodon/locales/fa.json
+++ b/app/javascript/mastodon/locales/fa.json
@@ -195,15 +195,15 @@
"upload_button.label": "افزودن تصویر",
"upload_form.undo": "واگردانی",
"upload_progress.label": "بارگذاری...",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "بستن ویدیو",
+ "video.exit_fullscreen": "خروج از حالت تمام صفحه",
+ "video.expand": "بزرگکردن ویدیو",
+ "video.fullscreen": "تمام صفحه",
+ "video.hide": "نهفتن ویدیو",
+ "video.mute": "قطع صدا",
+ "video.pause": "توقف",
+ "video.play": "پخش",
+ "video.unmute": "پخش صدا",
"video_player.expand": "بازکردن ویدیو",
"video_player.toggle_sound": "تغییر صداداری",
"video_player.toggle_visible": "تغییر پیدایی",
diff --git a/config/locales/fa.yml b/config/locales/fa.yml
index 56fc7213b..f7921b1cf 100644
--- a/config/locales/fa.yml
+++ b/config/locales/fa.yml
@@ -60,6 +60,7 @@ fa:
email: ایمیل
feed_url: نشانی فید
followers: پیگیران
+ followers_url: نشانی پیگیران
follows: پی میگیرد
inbox_url: نشانی صندوق ورودی
ip: IP
@@ -93,6 +94,7 @@ fa:
resubscribe: اشتراک دوباره
salmon_url: نشانی Salmon
search: جستجو
+ shared_inbox_url: نشانی صندوق ورودی مشترک
show:
created_reports: گزارشها از طرف این حساب
report: گزارش
@@ -193,6 +195,9 @@ fa:
desc_html: میتوانید سیاست رازداری، شرایط استفاده، یا سایر مسائل قانونی را به دلخواه خود بنویسید. تگهای HTML هم مجاز است
title: شرایط استفادهٔ سفارشی
site_title: نام سرور
+ thumbnail:
+ desc_html: برای دیدن با OpenGraph و رابط برنامهنویسی. وضوح پیشنهادی ۱۲۰۰×۶۳۰ پیکسل
+ title: تصویر کوچک فوری
timeline_preview:
desc_html: نوشتههای عمومی این سرور را در صفحهٔ آغازین نشان دهید
title: پیشنمایش نوشتهها
@@ -446,6 +451,7 @@ fa:
open_in_web: بازکردن در وب
over_character_limit: از حد مجاز %{max} حرف فراتر رفتید
pin_errors:
+ limit: نوشتههای ثابت بیش از حد
ownership: نوشتههای دیگران را نمیتوان ثابت کرد
private: نوشتههای غیرعمومی را نمیتوان ثابت کرد
reblog: بازبوقها را نمیتوان ثابت کرد
--
cgit
From bdcc9e2ceb3a359e43775de9b2afd5b1e64eef4a Mon Sep 17 00:00:00 2001
From: Yamagishi Kazutoshi
Date: Fri, 15 Sep 2017 01:03:34 +0900
Subject: Add missing Japanese translations (#4947)
---
app/javascript/mastodon/locales/ja.json | 4 ++--
config/locales/en.yml | 2 ++
config/locales/ja.yml | 5 +++++
3 files changed, 9 insertions(+), 2 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index d48020fcd..e78ac4c26 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -97,8 +97,8 @@
"home.column_settings.show_replies": "返信表示",
"home.settings": "カラム設定",
"lightbox.close": "閉じる",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "次",
+ "lightbox.previous": "前",
"loading_indicator.label": "読み込み中...",
"media_gallery.toggle_visible": "表示切り替え",
"missing_indicator.label": "見つかりません",
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 8b5f52b02..0f6bac9e1 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -143,6 +143,8 @@ en:
instances:
account_count: Known accounts
domain_name: Domain
+ reset: Reset
+ search: Search
title: Known Instances
reports:
action_taken_by: Action taken by
diff --git a/config/locales/ja.yml b/config/locales/ja.yml
index 65605fc3b..f7170f6a3 100644
--- a/config/locales/ja.yml
+++ b/config/locales/ja.yml
@@ -60,6 +60,7 @@ ja:
email: E-mail
feed_url: フィードURL
followers: フォロワー数
+ followers_url: Followers URL
follows: フォロー数
inbox_url: Inbox URL
ip: IP
@@ -93,6 +94,7 @@ ja:
resubscribe: 再講読
salmon_url: Salmon URL
search: 検索
+ shared_inbox_url: Shared Inbox URL
show:
created_reports: このアカウントで作られたレポート
report: レポート
@@ -141,6 +143,8 @@ ja:
instances:
account_count: 既知のアカウント数
domain_name: ドメイン名
+ reset: リセット
+ search: 検索
title: 既知のインスタンス
reports:
action_taken_by: レポート処理者
@@ -448,6 +452,7 @@ ja:
open_in_web: Webで開く
over_character_limit: 上限は %{max}文字までです
pin_errors:
+ limit: 固定されているトゥートが多すぎます
ownership: 他人のトゥートを固定することはできません
private: 非公開のトゥートを固定することはできません
reblog: ブーストされたトゥートを固定することはできません
--
cgit
From e77cc032c21b47c4152833f011ddbacf69b1cfa4 Mon Sep 17 00:00:00 2001
From: Anna e só
Date: Thu, 14 Sep 2017 19:02:38 -0300
Subject: l10n: PT-BR translation updated (#4953)
* devise.pt-BR.yml now fully translated
* pt-BR.json now fully translated
* pt-BR.yml partially translated; 46 lines left
* pt-BR.yml now fully translated
* simple_form.pt-BR.yml fully translated
* doorkeeper.pt-BR.yml now fully translated
* E-mail instructions on app/views/user_mailer added and fully translated
* PT-BR translation for #4871
* Deleted an unwanted caracter on pt-BR.yml
* Fixing typos on pt-BR.yml
* Added translation for Pinned toots tab on pt-BR.json
* Added missing translation for navigation_bar.pins
* Fixed spelling on pt-BR.yml
* Update pt-BR.json
---
app/javascript/mastodon/locales/pt-BR.json | 22 +++++++++++++---------
config/locales/pt-BR.yml | 2 +-
2 files changed, 14 insertions(+), 10 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/pt-BR.json b/app/javascript/mastodon/locales/pt-BR.json
index 59076d3e4..a5def0ad0 100644
--- a/app/javascript/mastodon/locales/pt-BR.json
+++ b/app/javascript/mastodon/locales/pt-BR.json
@@ -35,6 +35,7 @@
"column.notifications": "Notificações",
"column.pins": "Postagens fixadas",
"column.public": "Global",
+ "column.pins": "Postagens fixadas",
"column_back_button.label": "Voltar",
"column_header.hide_settings": "Esconder configurações",
"column_header.moveLeft_settings": "Mover coluna para a esquerda",
@@ -113,6 +114,9 @@
"navigation_bar.pins": "Postagens fixadas",
"navigation_bar.preferences": "Preferências",
"navigation_bar.public_timeline": "Global",
+ "navigation_bar.preferences": "Preferências",
+ "navigation_bar.public_timeline": "Global",
+ "navigation_bar.pins": "Postagens fixadas",
"notification.favourite": "{name} adicionou a sua postagem aos favoritos",
"notification.follow": "{name} te seguiu",
"notification.mention": "{name} te mencionou",
@@ -195,15 +199,15 @@
"upload_button.label": "Adicionar mídia",
"upload_form.undo": "Anular",
"upload_progress.label": "Salvando...",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "Fechar vídeo",
+ "video.exit_fullscreen": "Sair da tela cheia",
+ "video.expand": "Expandir vídeo",
+ "video.fullscreen": "Tela cheia",
+ "video.hide": "Esconder vídeo",
+ "video.mute": "Silenciar vídeo",
+ "video.pause": "Parar",
+ "video.play": "Reproduzir",
+ "video.unmute": "Retirar silêncio",
"video_player.expand": "Expandir vídeo",
"video_player.toggle_sound": "Ligar/Desligar som",
"video_player.toggle_visible": "Ligar/Desligar vídeo",
diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml
index 00941d215..e0bf06c08 100644
--- a/config/locales/pt-BR.yml
+++ b/config/locales/pt-BR.yml
@@ -325,7 +325,7 @@ pt-BR:
following: Pessoas que você segue
muting: Lista de silêncio
upload: Enviar
- landing_strip_html: "%{name} é um usuário no %{link_to_root_path}. Você pode seguí-lo ou interagir com ele se você tiver uma conta em qualquer lugar no fediverso."
+ landing_strip_html: "%{name} é um usuário no %{link_to_root_path}. Você pode segui-lo ou interagir com ele se você tiver uma conta em qualquer lugar no fediverso."
landing_strip_signup_html: Se não, você pode se cadastrar aqui .
media_attachments:
validations:
--
cgit
From 0d1215e82f42cd5a7b7bb992e4423d69acb813ed Mon Sep 17 00:00:00 2001
From: Eugen Rochko
Date: Fri, 15 Sep 2017 00:51:00 +0200
Subject: Remove redundant width/height values from SVGs to fix Safari bug
(#4956)
---
app/javascript/images/logo.svg | 2 +-
app/javascript/images/logo_alt.svg | 2 +-
app/javascript/images/logo_full.svg | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/images/logo.svg b/app/javascript/images/logo.svg
index 4b72b3ac8..034a9c221 100644
--- a/app/javascript/images/logo.svg
+++ b/app/javascript/images/logo.svg
@@ -1 +1 @@
-
+
diff --git a/app/javascript/images/logo_alt.svg b/app/javascript/images/logo_alt.svg
index e88ca7418..102d4c787 100644
--- a/app/javascript/images/logo_alt.svg
+++ b/app/javascript/images/logo_alt.svg
@@ -1 +1 @@
-
+
diff --git a/app/javascript/images/logo_full.svg b/app/javascript/images/logo_full.svg
index 8b1328e8c..c33883342 100644
--- a/app/javascript/images/logo_full.svg
+++ b/app/javascript/images/logo_full.svg
@@ -1 +1 @@
-
+
--
cgit
From 6c81f9d6e553d2e9346514d1b1c8c214c317fed4 Mon Sep 17 00:00:00 2001
From: unarist
Date: Sat, 16 Sep 2017 07:32:43 +0900
Subject: Fix invisible load more button (#4962)
* Fix behavior while the button is invisible
e.g. pointer cursor, couldn't open contextmenu
* Avoid rendering the button to remove blank space if no more items are available or no items are rendered
---
app/javascript/mastodon/components/load_more.js | 2 +-
app/javascript/mastodon/components/scrollable_list.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/components/load_more.js b/app/javascript/mastodon/components/load_more.js
index e2fe1fed7..c4c8c94a2 100644
--- a/app/javascript/mastodon/components/load_more.js
+++ b/app/javascript/mastodon/components/load_more.js
@@ -17,7 +17,7 @@ export default class LoadMore extends React.PureComponent {
const { visible } = this.props;
return (
-
+
);
diff --git a/app/javascript/mastodon/components/scrollable_list.js b/app/javascript/mastodon/components/scrollable_list.js
index 3d78b3ffa..ff0540e5d 100644
--- a/app/javascript/mastodon/components/scrollable_list.js
+++ b/app/javascript/mastodon/components/scrollable_list.js
@@ -167,7 +167,7 @@ export default class ScrollableList extends PureComponent {
const { children, scrollKey, trackScroll, shouldUpdateScroll, isLoading, hasMore, prepend, emptyMessage } = this.props;
const childrenCount = React.Children.count(children);
- const loadMore = 0 && hasMore} onClick={this.handleLoadMore} />;
+ const loadMore = (hasMore && childrenCount > 0) ? : null;
let scrollableArea = null;
if (isLoading || childrenCount > 0 || !emptyMessage) {
--
cgit
From cea5597722bc7565e9d8dd21787492ba1570fbf4 Mon Sep 17 00:00:00 2001
From: Naoki Kosaka
Date: Sat, 16 Sep 2017 22:00:01 +0900
Subject: Fix hasSize condition in secSet and sizes. (#4969)
---
app/javascript/mastodon/components/media_gallery.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js
index 068220f8f..78a2f5dc4 100644
--- a/app/javascript/mastodon/components/media_gallery.js
+++ b/app/javascript/mastodon/components/media_gallery.js
@@ -119,8 +119,8 @@ class Item extends React.PureComponent {
const hasSize = typeof originalWidth === 'number' && typeof previewWidth === 'number';
- const srcSet = hasSize && `${originalUrl} ${originalWidth}w, ${previewUrl} ${previewWidth}w`;
- const sizes = hasSize && `(min-width: 1025px) ${320 * (width / 100)}px, ${width}vw`;
+ const srcSet = hasSize ? `${originalUrl} ${originalWidth}w, ${previewUrl} ${previewWidth}w` : null;
+ const sizes = hasSize ? `(min-width: 1025px) ${320 * (width / 100)}px, ${width}vw` : null;
thumbnail = (
Date: Sat, 16 Sep 2017 22:01:15 +0900
Subject: correct URL pattern used in text length counter in WebUI (#4968)
---
.../mastodon/features/compose/util/counter.js | 4 +-
.../mastodon/features/compose/util/url_regex.js | 196 +++++++++++++++++++++
2 files changed, 199 insertions(+), 1 deletion(-)
create mode 100644 app/javascript/mastodon/features/compose/util/url_regex.js
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/features/compose/util/counter.js b/app/javascript/mastodon/features/compose/util/counter.js
index f0fea1a0e..588a372c6 100644
--- a/app/javascript/mastodon/features/compose/util/counter.js
+++ b/app/javascript/mastodon/features/compose/util/counter.js
@@ -1,7 +1,9 @@
+import { urlRegex } from './url_regex';
+
const urlPlaceholder = 'xxxxxxxxxxxxxxxxxxxxxxx';
export function countableText(inputText) {
return inputText
- .replace(/https?:\/\/\S+/g, urlPlaceholder)
+ .replace(urlRegex, urlPlaceholder)
.replace(/(?:^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+)/ig, '@$2');
};
diff --git a/app/javascript/mastodon/features/compose/util/url_regex.js b/app/javascript/mastodon/features/compose/util/url_regex.js
new file mode 100644
index 000000000..c15b9696a
--- /dev/null
+++ b/app/javascript/mastodon/features/compose/util/url_regex.js
@@ -0,0 +1,196 @@
+const regexen = {};
+
+const regexSupplant = function(regex, flags) {
+ flags = flags || '';
+ if (typeof regex !== 'string') {
+ if (regex.global && flags.indexOf('g') < 0) {
+ flags += 'g';
+ }
+ if (regex.ignoreCase && flags.indexOf('i') < 0) {
+ flags += 'i';
+ }
+ if (regex.multiline && flags.indexOf('m') < 0) {
+ flags += 'm';
+ }
+
+ regex = regex.source;
+ }
+ return new RegExp(regex.replace(/#\{(\w+)\}/g, function(match, name) {
+ var newRegex = regexen[name] || '';
+ if (typeof newRegex !== 'string') {
+ newRegex = newRegex.source;
+ }
+ return newRegex;
+ }), flags);
+};
+
+const stringSupplant = function(str, values) {
+ return str.replace(/#\{(\w+)\}/g, function(match, name) {
+ return values[name] || '';
+ });
+};
+
+export const urlRegex = (function() {
+ regexen.spaces_group = /\x09-\x0D\x20\x85\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000/;
+ regexen.invalid_chars_group = /\uFFFE\uFEFF\uFFFF\u202A-\u202E/;
+ regexen.punct = /\!'#%&'\(\)*\+,\\\-\.\/:;<=>\?@\[\]\^_{|}~\$/;
+ regexen.validUrlPrecedingChars = regexSupplant(/(?:[^A-Za-z0-9@@$###{invalid_chars_group}]|^)/);
+ regexen.invalidDomainChars = stringSupplant('#{punct}#{spaces_group}#{invalid_chars_group}', regexen);
+ regexen.validDomainChars = regexSupplant(/[^#{invalidDomainChars}]/);
+ regexen.validSubdomain = regexSupplant(/(?:(?:#{validDomainChars}(?:[_-]|#{validDomainChars})*)?#{validDomainChars}\.)/);
+ regexen.validDomainName = regexSupplant(/(?:(?:#{validDomainChars}(?:-|#{validDomainChars})*)?#{validDomainChars}\.)/);
+ regexen.validGTLD = regexSupplant(RegExp(
+ '(?:(?:' +
+ '삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|' +
+ '政务|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|' +
+ 'ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|عرب|شبكة|' +
+ 'بيتك|بازار|العليان|ارامكو|اتصالات|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|' +
+ 'zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|' +
+ 'yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|' +
+ 'wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|' +
+ 'website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|' +
+ 'wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|' +
+ 'vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|' +
+ 'vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|' +
+ 'university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|' +
+ 'travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|' +
+ 'toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|' +
+ 'tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|' +
+ 'tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|' +
+ 'swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|' +
+ 'stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|' +
+ 'stada|srt|srl|spreadbetting|spot|spiegel|space|soy|sony|song|solutions|solar|sohu|software|' +
+ 'softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|' +
+ 'showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|' +
+ 'sew|seven|ses|services|sener|select|seek|security|secure|seat|search|scot|scor|scjohnson|' +
+ 'science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|' +
+ 'sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|' +
+ 'saarland|ryukyu|rwe|run|ruhr|rugby|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|' +
+ 'rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|' +
+ 'repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|' +
+ 'realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|' +
+ 'protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|' +
+ 'pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|' +
+ 'pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|phd|' +
+ 'pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|' +
+ 'pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|' +
+ 'onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|' +
+ 'obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|' +
+ 'nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|' +
+ 'net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|' +
+ 'msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|' +
+ 'monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|' +
+ 'miami|metlife|merckmsd|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|' +
+ 'mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|map|mango|management|man|' +
+ 'makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|' +
+ 'lotte|london|lol|loft|locus|locker|loans|loan|lixil|living|live|lipsy|link|linde|lincoln|limo|' +
+ 'limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|' +
+ 'lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|' +
+ 'lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|' +
+ 'komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|' +
+ 'kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|' +
+ 'jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|' +
+ 'investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|' +
+ 'industries|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|' +
+ 'hughes|htc|hsbc|how|house|hotmail|hotels|hoteles|hot|hosting|host|hospital|horse|honeywell|' +
+ 'honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|' +
+ 'hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|' +
+ 'hair|guru|guitars|guide|guge|gucci|guardian|group|grocery|gripe|green|gratis|graphics|grainger|' +
+ 'gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|' +
+ 'globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|' +
+ 'garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|' +
+ 'ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|' +
+ 'football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|' +
+ 'fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|' +
+ 'ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|' +
+ 'extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|etisalat|esurance|' +
+ 'estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|' +
+ 'email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|' +
+ 'download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|' +
+ 'direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|' +
+ 'delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|' +
+ 'cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|courses|' +
+ 'coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|' +
+ 'construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|' +
+ 'college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|' +
+ 'cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|' +
+ 'chintai|cheap|chat|chase|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|' +
+ 'catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|' +
+ 'capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|' +
+ 'bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|' +
+ 'bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|' +
+ 'boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|' +
+ 'black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|' +
+ 'beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|' +
+ 'barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|' +
+ 'autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|' +
+ 'art|arpa|army|archi|aramco|arab|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|' +
+ 'amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|' +
+ 'alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|africa|afl|' +
+ 'afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|' +
+ 'academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion' +
+ ')(?=[^0-9a-zA-Z@]|$))'));
+ regexen.validCCTLD = regexSupplant(RegExp(
+ '(?:(?:' +
+ '한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|' +
+ 'ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|' +
+ 'بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ελ|' +
+ 'zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|' +
+ 'tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|' +
+ 're|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|' +
+ 'mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|' +
+ 'ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|' +
+ 'gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|' +
+ 'do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|' +
+ 'bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac' +
+ ')(?=[^0-9a-zA-Z@]|$))'));
+ regexen.validPunycode = /(?:xn--[0-9a-z]+)/;
+ regexen.validSpecialCCTLD = /(?:(?:co|tv)(?=[^0-9a-zA-Z@]|$))/;
+ regexen.validDomain = regexSupplant(/(?:#{validSubdomain}*#{validDomainName}(?:#{validGTLD}|#{validCCTLD}|#{validPunycode}))/);
+ regexen.validPortNumber = /[0-9]+/;
+ regexen.pd = /\u002d\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e40\u301c\u3030\u30a0\ufe31\ufe58\ufe63\uff0d/;
+ regexen.validGeneralUrlPathChars = regexSupplant(/[^#{spaces_group}\(\)\?]/i);
+ // Allow URL paths to contain up to two nested levels of balanced parens
+ // 1. Used in Wikipedia URLs like /Primer_(film)
+ // 2. Used in IIS sessions like /S(dfd346)/
+ // 3. Used in Rdio URLs like /track/We_Up_(Album_Version_(Edited))/
+ regexen.validUrlBalancedParens = regexSupplant(
+ '\\(' +
+ '(?:' +
+ '#{validGeneralUrlPathChars}+' +
+ '|' +
+ // allow one nested level of balanced parentheses
+ '(?:' +
+ '#{validGeneralUrlPathChars}*' +
+ '\\(' +
+ '#{validGeneralUrlPathChars}+' +
+ '\\)' +
+ '#{validGeneralUrlPathChars}*' +
+ ')' +
+ ')' +
+ '\\)'
+ , 'i');
+ // Valid end-of-path chracters (so /foo. does not gobble the period).
+ // 1. Allow = for empty URL parameters and other URL-join artifacts
+ regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}_~&\|@]|(?:#{validUrlBalancedParens})/i);
+ // Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
+ regexen.validUrlPath = regexSupplant('(?:' +
+ '(?:' +
+ '#{validGeneralUrlPathChars}*' +
+ '(?:#{validUrlBalancedParens}#{validGeneralUrlPathChars}*)*' +
+ '#{validUrlPathEndingChars}'+
+ ')|(?:@#{validGeneralUrlPathChars}+\/)'+
+ ')', 'i');
+ regexen.validUrlQueryChars = /[a-z0-9!?\*'@\(\);:&=\+\$\/%#\[\]\-_\.,~|]/i;
+ regexen.validUrlQueryEndingChars = /[a-z0-9_&=#\/]/i;
+ regexen.validUrl = regexSupplant(
+ '(' + // $1 URL
+ '(https?:\\/\\/)' + // $2 Protocol
+ '(#{validDomain})' + // $3 Domain(s)
+ '(?::(#{validPortNumber}))?' + // $4 Port number (optional)
+ '(\\/#{validUrlPath}*)?' + // $5 URL Path
+ '(\\?#{validUrlQueryChars}*#{validUrlQueryEndingChars})?' + // $6 Query String
+ ')'
+ , 'gi');
+ return regexen.validUrl;
+}());
--
cgit
From 1e3b1d721124b666c6625bedcba3f78e716a85dc Mon Sep 17 00:00:00 2001
From: Lynx Kotoura
Date: Sun, 17 Sep 2017 01:39:12 +0900
Subject: Adjust landing pages 2 (#4967)
* Adjust landing pages 2
Fix styles of terms page
Remove action buttons from timeline in about page
Adjust styles of short description
Adjust form inputs
Set autocomplete off for username and email box in registration form. Remove line breakings.
* Revert removing action buttons
---
app/javascript/styles/about.scss | 9 ++++++---
app/views/about/_registration.html.haml | 21 ++++-----------------
app/views/auth/registrations/new.html.haml | 4 ++--
app/views/auth/sessions/two_factor.html.haml | 4 +---
4 files changed, 13 insertions(+), 25 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/about.scss b/app/javascript/styles/about.scss
index 28924738a..343de1590 100644
--- a/app/javascript/styles/about.scss
+++ b/app/javascript/styles/about.scss
@@ -137,7 +137,7 @@
padding-bottom: 15px;
.hero .heading {
- padding-bottom: 30px;
+ padding-bottom: 20px;
font-family: 'mastodon-font-sans-serif', sans-serif;
font-size: 16px;
font-weight: 400;
@@ -327,7 +327,7 @@
.about-short {
background: darken($ui-base-color, 4%);
- padding: 50px 0;
+ padding: 50px 0 30px;
font-family: 'mastodon-font-sans-serif', sans-serif;
font-size: 16px;
font-weight: 400;
@@ -640,8 +640,11 @@
.header-wrapper {
padding-top: 0;
+ &.compact {
+ padding-bottom: 0;
+ }
+
&.compact .hero .heading {
- padding-bottom: 20px;
text-align: initial;
}
}
diff --git a/app/views/about/_registration.html.haml b/app/views/about/_registration.html.haml
index f1c6e6b9d..7a28f9738 100644
--- a/app/views/about/_registration.html.haml
+++ b/app/views/about/_registration.html.haml
@@ -1,26 +1,13 @@
= simple_form_for(new_user, url: user_registration_path) do |f|
= f.simple_fields_for :account do |account_fields|
.input-with-append
- = account_fields.input :username,
- autofocus: true,
- placeholder: t('simple_form.labels.defaults.username'),
- required: true,
- input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
+ = account_fields.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off' }
.append
= "@#{site_hostname}"
- = f.input :email,
- placeholder: t('simple_form.labels.defaults.email'),
- required: true,
- input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
- = f.input :password,
- placeholder: t('simple_form.labels.defaults.password'),
- required: true,
- input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }
- = f.input :password_confirmation,
- placeholder: t('simple_form.labels.defaults.confirm_password'),
- required: true,
- input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }
+ = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }
+ = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }
+ = f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }
.actions
= f.button :button, t('auth.register'), type: :submit, class: 'button button-alternative'
diff --git a/app/views/auth/registrations/new.html.haml b/app/views/auth/registrations/new.html.haml
index d0529a20c..807020310 100644
--- a/app/views/auth/registrations/new.html.haml
+++ b/app/views/auth/registrations/new.html.haml
@@ -6,11 +6,11 @@
= f.simple_fields_for :account do |ff|
.input-with-append
- = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username') }
+ = ff.input :username, autofocus: true, placeholder: t('simple_form.labels.defaults.username'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off' }
.append
= "@#{site_hostname}"
- = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
+ = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }
= f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }
= f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_password'), :autocomplete => 'off' }
diff --git a/app/views/auth/sessions/two_factor.html.haml b/app/views/auth/sessions/two_factor.html.haml
index cb5e32f3e..2b07c923b 100644
--- a/app/views/auth/sessions/two_factor.html.haml
+++ b/app/views/auth/sessions/two_factor.html.haml
@@ -2,9 +2,7 @@
= t('auth.login')
= simple_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
- = f.input :otp_attempt, type: :number, placeholder: t('simple_form.labels.defaults.otp_attempt'),
- input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'off' }, required: true, autofocus: true,
- hint: t('simple_form.hints.sessions.otp')
+ = f.input :otp_attempt, type: :number, placeholder: t('simple_form.labels.defaults.otp_attempt'), input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'off' }, required: true, autofocus: true, hint: t('simple_form.hints.sessions.otp')
.actions
= f.button :button, t('auth.login'), type: :submit
--
cgit
From c8969dca3581cb82c5787f37bb4022f7af74cd15 Mon Sep 17 00:00:00 2001
From: Mingye Wang
Date: Sat, 16 Sep 2017 12:48:38 -0400
Subject: Minor Chinese check & jsx addition (#4973)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* zh-*: transition from "like" back to "fav"
This commit reverts the translation for the yellow-star "fav" button
back to "fav" in Chinese. Some ambuiguity between "like" and "fav" is
deliberately used in zh-TW/HK by using the existing phrase "最爱"
(favorite (adj.), lit. love-most) instead of "收藏" (favourite (v.),
"collect") in some instances.
Fixes #3511.
* zh-*: apply suggestions for PR #4557
* zh-cn: de-monetize ya account
In Chinese two separate characters, 账 and 帐, can be used to spell the
word for account (账/帐户). However, the one with a 贝 on the left is
evolved from the latter specifically for monetary purposes. Since
people usually can't figure out which one to use, it might be a good
idea to use the original not-so-money one.
* zh-*: complete jsx translation
---
app/javascript/mastodon/locales/zh-CN.json | 104 +++++++++----------
app/javascript/mastodon/locales/zh-HK.json | 110 ++++++++++-----------
app/javascript/mastodon/locales/zh-TW.json | 98 +++++++++---------
.../confirmation_instructions.zh-cn.html.erb | 2 +-
.../confirmation_instructions.zh-cn.text.erb | 2 +-
.../reset_password_instructions.zh-cn.html.erb | 2 +-
.../reset_password_instructions.zh-cn.text.erb | 2 +-
config/locales/zh-CN.yml | 30 +++---
config/locales/zh-HK.yml | 4 +-
config/locales/zh-TW.yml | 4 +-
10 files changed, 179 insertions(+), 179 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/zh-CN.json b/app/javascript/mastodon/locales/zh-CN.json
index 65d67c128..6037e7581 100644
--- a/app/javascript/mastodon/locales/zh-CN.json
+++ b/app/javascript/mastodon/locales/zh-CN.json
@@ -1,13 +1,13 @@
{
"account.block": "屏蔽 @{name}",
- "account.block_domain": "Hide everything from {domain}",
- "account.disclaimer_full": "Information below may reflect the user's profile incompletely.",
+ "account.block_domain": "隐藏一切来自 {domain} 的嘟文",
+ "account.disclaimer_full": "下列资料不一定完整。",
"account.edit_profile": "修改个人资料",
"account.follow": "关注",
"account.followers": "关注者",
- "account.follows": "正在关注",
+ "account.follows": "正关注",
"account.follows_you": "关注你",
- "account.media": "Media",
+ "account.media": "媒体",
"account.mention": "提及 @{name}",
"account.mute": "将 @{name} 静音",
"account.posts": "嘟文",
@@ -15,20 +15,20 @@
"account.requested": "等待审批",
"account.share": "分享 @{name}的个人资料",
"account.unblock": "解除对 @{name} 的屏蔽",
- "account.unblock_domain": "解除封锁 {domain}",
+ "account.unblock_domain": "不再隐藏 {domain}",
"account.unfollow": "取消关注",
"account.unmute": "取消 @{name} 的静音",
"account.view_full_profile": "查看完整资料",
"boost_modal.combo": "如你想在下次路过时显示,请按{combo},",
"bundle_column_error.body": "载入组件出错。",
- "bundle_column_error.retry": "再次尝试",
+ "bundle_column_error.retry": "重试",
"bundle_column_error.title": "网络错误",
"bundle_modal_error.close": "关闭",
"bundle_modal_error.message": "载入组件出错。",
- "bundle_modal_error.retry": "再次尝试",
+ "bundle_modal_error.retry": "重试",
"column.blocks": "屏蔽用户",
"column.community": "本站时间轴",
- "column.favourites": "赞过的嘟文",
+ "column.favourites": "收藏过的嘟文",
"column.follow_requests": "关注请求",
"column.home": "主页",
"column.mutes": "被静音的用户",
@@ -36,20 +36,20 @@
"column.pins": "Pinned toot",
"column.public": "跨站公共时间轴",
"column_back_button.label": "返回",
- "column_header.hide_settings": "Hide settings",
- "column_header.moveLeft_settings": "Move column to the left",
- "column_header.moveRight_settings": "Move column to the right",
- "column_header.pin": "Pin",
- "column_header.show_settings": "Show settings",
- "column_header.unpin": "Unpin",
+ "column_header.hide_settings": "隐藏设置",
+ "column_header.moveLeft_settings": "将栏左移",
+ "column_header.moveRight_settings": "将栏右移",
+ "column_header.pin": "置顶",
+ "column_header.show_settings": "显示设置",
+ "column_header.unpin": "撤顶",
"column_subheading.navigation": "导航",
"column_subheading.settings": "设置",
- "compose_form.lock_disclaimer": "你的账户没 {locked}. 任何人可以通过关注你来查看只有关注者可见的嘟文.",
+ "compose_form.lock_disclaimer": "你的帐户没 {locked}. 任何人可以通过关注你来查看只有关注者可见的嘟文.",
"compose_form.lock_disclaimer.lock": "被保护",
"compose_form.placeholder": "在想啥?",
"compose_form.privacy_disclaimer": "你的私人嘟文,将被发送至你所提及的 {domains} 用户。你是否信任{domainsCount, plural, one {这个网站} other {这些网站}}?请留意,嘟文隐私设置只适用于各 Mastodon 服务器实例,如果 {domains} {domainsCount, plural, one {不是 Mastodon 服务器实例} other {之中有些不是 Mastodon 服务器实例}},对方将无法收到这篇嘟文的隐私设置,然后可能被转嘟给不能预知的用户阅读。",
"compose_form.publish": "嘟嘟",
- "compose_form.publish_loud": "{publish}!",
+ "compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "将媒体文件标示为“敏感内容”",
"compose_form.spoiler": "将部分文本藏于警告消息之后",
"compose_form.spoiler_placeholder": "敏感内容的警告消息",
@@ -58,14 +58,14 @@
"confirmations.block.message": "想好了,真的要屏蔽 {name}?",
"confirmations.delete.confirm": "删除",
"confirmations.delete.message": "想好了,真的要删除这条嘟文?",
- "confirmations.domain_block.confirm": "Hide entire domain",
- "confirmations.domain_block.message": "Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",
+ "confirmations.domain_block.confirm": "隐藏整个网站",
+ "confirmations.domain_block.message": "你真的真的确定要隐藏整个 {domain} ?多数情况下,封锁或静音几个特定目标就好。",
"confirmations.mute.confirm": "静音",
"confirmations.mute.message": "想好了,真的要静音 {name}?",
"confirmations.unfollow.confirm": "取消关注",
"confirmations.unfollow.message": "确定要取消关注 {name}吗?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
+ "embed.instructions": "要内嵌此嘟文,请将以下代码贴进你的网站。",
+ "embed.preview": "到时大概长这样:",
"emoji_button.activity": "活动",
"emoji_button.flags": "旗帜",
"emoji_button.food": "食物和饮料",
@@ -73,13 +73,13 @@
"emoji_button.nature": "自然",
"emoji_button.objects": "物体",
"emoji_button.people": "人物",
- "emoji_button.search": "搜索...",
+ "emoji_button.search": "搜索…",
"emoji_button.symbols": "符号",
"emoji_button.travel": "旅途和地点",
- "empty_column.community": "本站时间轴暂时未有内容,快贴文来抢头香啊!",
+ "empty_column.community": "本站时间轴暂时未有内容,快嘟几个来抢头香啊!",
"empty_column.hashtag": "这个标签暂时未有内容。",
"empty_column.home": "你还没有关注任何用户。快看看{public},向其他用户搭讪吧。",
- "empty_column.home.inactivity": "Your home feed is empty. If you have been inactive for a while, it will be regenerated for you soon.",
+ "empty_column.home.inactivity": "你的主页暂时没有内容。也许你太久没有来了?如果是这样,文章会慢慢出来,请稍后再看。",
"empty_column.home.public_timeline": "公共时间轴",
"empty_column.notifications": "你没有任何通知纪录,快向其他用户搭讪吧。",
"empty_column.public": "跨站公共时间轴暂时没有内容!快写一些公共的嘟文,或者关注另一些服务器实例的用户吧!你和本站、友站的交流,将决定这里出现的内容。",
@@ -97,34 +97,34 @@
"home.column_settings.show_replies": "显示回应嘟文",
"home.settings": "字段设置",
"lightbox.close": "关闭",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "下一步",
+ "lightbox.previous": "上一步",
"loading_indicator.label": "加载中……",
"media_gallery.toggle_visible": "打开或关上",
"missing_indicator.label": "找不到内容",
"navigation_bar.blocks": "被屏蔽的用户",
"navigation_bar.community_timeline": "本站时间轴",
"navigation_bar.edit_profile": "修改个人资料",
- "navigation_bar.favourites": "赞的内容",
+ "navigation_bar.favourites": "收藏的内容",
"navigation_bar.follow_requests": "关注请求",
"navigation_bar.info": "关于本站",
"navigation_bar.logout": "注销",
"navigation_bar.mutes": "被静音的用户",
- "navigation_bar.pins": "Pinned toots",
+ "navigation_bar.pins": "置顶嘟文",
"navigation_bar.preferences": "首选项",
"navigation_bar.public_timeline": "跨站公共时间轴",
- "notification.favourite": "{name} 赞了你的嘟文",
+ "notification.favourite": "{name} 收藏了你的嘟文",
"notification.follow": "{name} 开始关注你",
"notification.mention": "{name} 提及你",
"notification.reblog": "{name} 转嘟了你的嘟文",
"notifications.clear": "清空通知纪录",
"notifications.clear_confirmation": "你确定要清空通知纪录吗?",
"notifications.column_settings.alert": "显示桌面通知",
- "notifications.column_settings.favourite": "你的嘟文被赞:",
+ "notifications.column_settings.favourite": "你的嘟文被收藏:",
"notifications.column_settings.follow": "关注你:",
"notifications.column_settings.mention": "提及你:",
- "notifications.column_settings.push": "Push notifications",
- "notifications.column_settings.push_meta": "This device",
+ "notifications.column_settings.push": "推送通知",
+ "notifications.column_settings.push_meta": "此设备",
"notifications.column_settings.reblog": "你的嘟文被转嘟:",
"notifications.column_settings.show": "在通知栏显示",
"notifications.column_settings.sound": "播放音效",
@@ -134,18 +134,18 @@
"onboarding.page_four.home": "你的主时间轴上是你关注的用户的嘟文.",
"onboarding.page_four.notifications": "如果你和他人产生了互动,便会出现在通知列上啦~",
"onboarding.page_one.federation": "Mastodon是由一系列独立的服务器共同打造的强大的社交网络,我们将这些独立但又相互连接的服务器叫做服务器实例。",
- "onboarding.page_one.handle": "你在 {domain}, {handle} 就是你的完整账户名称。",
+ "onboarding.page_one.handle": "你在 {domain}, {handle} 就是你的完整帐户名称。",
"onboarding.page_one.welcome": "欢迎来到 Mastodon!",
"onboarding.page_six.admin": "{admin} 是你所在服务器实例的管理员.",
- "onboarding.page_six.almost_done": "快完成了...",
+ "onboarding.page_six.almost_done": "差不多了…",
"onboarding.page_six.appetoot": "嗷呜~",
"onboarding.page_six.apps_available": "也有适用于 iOS, Android 和其它平台的 {apps} 咯~",
"onboarding.page_six.github": "Mastodon 是自由的开放源代码软件。欢迎来 {github} 报告问题,提交功能请求,或者贡献代码 :-)",
"onboarding.page_six.guidelines": "社区指南",
- "onboarding.page_six.read_guidelines": "别忘了看看 {domain} 的 {guidelines}!",
+ "onboarding.page_six.read_guidelines": "别忘了看看 {domain} 的 {guidelines}!",
"onboarding.page_six.various_app": "移动应用程序",
"onboarding.page_three.profile": "修改你的个人资料,比如头像、简介、和昵称等等。在那还可以找到其它首选项。",
- "onboarding.page_three.search": "用搜索来找人和标签吧,比如 {illustration} 或者 {introductions}。想找其它服务器实例上的人,用完整账户名称(用户名@域名)啦。",
+ "onboarding.page_three.search": "用搜索来找人和标签吧,比如 {illustration} 或者 {introductions}。想找其它服务器实例上的人,用完整帐户名称(用户名@域名)啦。",
"onboarding.page_two.compose": "从这里开始嘟!上面的按钮提供了上传图片,修改隐私设置和提示敏感内容等多种功能。.",
"onboarding.skip": "好啦好啦我知道啦",
"privacy.change": "调整隐私设置",
@@ -163,29 +163,29 @@
"report.target": "Reporting",
"search.placeholder": "搜索",
"search_results.total": "{count, number} {count, plural, one {result} other {results}}",
- "standalone.public_title": "A look inside...",
+ "standalone.public_title": "大家都在干啥?",
"status.cannot_reblog": "没法转嘟这条嘟文啦……",
"status.delete": "删除",
- "status.embed": "Embed",
- "status.favourite": "赞",
+ "status.embed": "嵌入",
+ "status.favourite": "收藏",
"status.load_more": "加载更多",
"status.media_hidden": "隐藏媒体内容",
"status.mention": "提及 @{name}",
- "status.mute_conversation": "Mute conversation",
+ "status.mute_conversation": "静音对话",
"status.open": "展开嘟文",
- "status.pin": "Pin on profile",
+ "status.pin": "置顶到资料",
"status.reblog": "转嘟",
"status.reblogged_by": "{name} 转嘟",
"status.reply": "回应",
- "status.replyAll": "Reply to thread",
+ "status.replyAll": "回应整串",
"status.report": "举报 @{name}",
"status.sensitive_toggle": "点击显示",
"status.sensitive_warning": "敏感内容",
"status.share": "Share",
"status.show_less": "减少显示",
"status.show_more": "显示更多",
- "status.unmute_conversation": "Unmute conversation",
- "status.unpin": "Unpin from profile",
+ "status.unmute_conversation": "解禁对话",
+ "status.unpin": "解除置顶",
"tabs_bar.compose": "撰写",
"tabs_bar.federated_timeline": "跨站",
"tabs_bar.home": "主页",
@@ -195,15 +195,15 @@
"upload_button.label": "上传媒体文件",
"upload_form.undo": "还原",
"upload_progress.label": "上传中……",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "关闭影片",
+ "video.exit_fullscreen": "退出全荧幕",
+ "video.expand": "展开影片",
+ "video.fullscreen": "全荧幕",
+ "video.hide": "隐藏影片",
+ "video.mute": "静音",
+ "video.pause": "暂停",
+ "video.play": "播放",
+ "video.unmute": "解除静音",
"video_player.expand": "展开影片",
"video_player.toggle_sound": "开关音效",
"video_player.toggle_visible": "打开或关上",
diff --git a/app/javascript/mastodon/locales/zh-HK.json b/app/javascript/mastodon/locales/zh-HK.json
index 91bd91636..66d32fb7e 100644
--- a/app/javascript/mastodon/locales/zh-HK.json
+++ b/app/javascript/mastodon/locales/zh-HK.json
@@ -1,34 +1,34 @@
{
"account.block": "封鎖 @{name}",
- "account.block_domain": "Hide everything from {domain}",
- "account.disclaimer_full": "Information below may reflect the user's profile incompletely.",
+ "account.block_domain": "隱藏來自 {domain} 的一切文章",
+ "account.disclaimer_full": "下列資料不一定完整。",
"account.edit_profile": "修改個人資料",
"account.follow": "關注",
"account.followers": "關注的人",
- "account.follows": "正在關注",
+ "account.follows": "正關注",
"account.follows_you": "關注你",
- "account.media": "Media",
+ "account.media": "媒體",
"account.mention": "提及 @{name}",
"account.mute": "將 @{name} 靜音",
"account.posts": "文章",
"account.report": "舉報 @{name}",
"account.requested": "等候審批",
- "account.share": "Share @{name}'s profile",
+ "account.share": "分享 @{name} 的個人資料",
"account.unblock": "解除對 @{name} 的封鎖",
- "account.unblock_domain": "Unhide {domain}",
+ "account.unblock_domain": "不再隱藏 {domain}",
"account.unfollow": "取消關注",
"account.unmute": "取消 @{name} 的靜音",
- "account.view_full_profile": "View full profile",
+ "account.view_full_profile": "查看完整資料",
"boost_modal.combo": "如你想在下次路過這顯示,請按{combo},",
- "bundle_column_error.body": "Something went wrong while loading this component.",
- "bundle_column_error.retry": "Try again",
- "bundle_column_error.title": "Network error",
- "bundle_modal_error.close": "Close",
- "bundle_modal_error.message": "Something went wrong while loading this component.",
- "bundle_modal_error.retry": "Try again",
+ "bundle_column_error.body": "加載本組件出錯。",
+ "bundle_column_error.retry": "重試",
+ "bundle_column_error.title": "網絡錯誤",
+ "bundle_modal_error.close": "關閉",
+ "bundle_modal_error.message": "加載本組件出錯。",
+ "bundle_modal_error.retry": "重試",
"column.blocks": "封鎖用戶",
"column.community": "本站時間軸",
- "column.favourites": "喜歡的文章",
+ "column.favourites": "最愛的文章",
"column.follow_requests": "關注請求",
"column.home": "主頁",
"column.mutes": "靜音名單",
@@ -36,12 +36,12 @@
"column.pins": "Pinned toot",
"column.public": "跨站時間軸",
"column_back_button.label": "返回",
- "column_header.hide_settings": "Hide settings",
- "column_header.moveLeft_settings": "Move column to the left",
- "column_header.moveRight_settings": "Move column to the right",
- "column_header.pin": "Pin",
- "column_header.show_settings": "Show settings",
- "column_header.unpin": "Unpin",
+ "column_header.hide_settings": "隱藏設定",
+ "column_header.moveLeft_settings": "將欄左移",
+ "column_header.moveRight_settings": "將欄右移",
+ "column_header.pin": "置頂",
+ "column_header.show_settings": "顯示設定",
+ "column_header.unpin": "撤頂",
"column_subheading.navigation": "瀏覽",
"column_subheading.settings": "設定",
"compose_form.lock_disclaimer": "你的用戶狀態為「{locked}」,任何人都能立即關注你,然後看到「只有關注者能看」的文章。",
@@ -49,7 +49,7 @@
"compose_form.placeholder": "你在想甚麼?",
"compose_form.privacy_disclaimer": "你的私人文章,將被遞送至 {domains}。你是否信任{domainsCount, plural, one {這個網站} other {這些網站}}?請留意,文章私隱設定只適用於 Mastodon 服務站,如果 {domains} {domainsCount, plural, one {不是 Mastodon 服務站} other {之中有些不是 Mastodon 服務站}},對方將可無視文章的私隱設定,轉推文章給其他用戶閱讀。",
"compose_form.publish": "發文",
- "compose_form.publish_loud": "{publish}!",
+ "compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "將媒體檔案標示為「敏感內容」",
"compose_form.spoiler": "將部份文字藏於警告訊息之後",
"compose_form.spoiler_placeholder": "敏感警告訊息",
@@ -58,14 +58,14 @@
"confirmations.block.message": "你確定要封鎖{name}嗎?",
"confirmations.delete.confirm": "刪除",
"confirmations.delete.message": "你確定要刪除{name}嗎?",
- "confirmations.domain_block.confirm": "Hide entire domain",
- "confirmations.domain_block.message": "Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",
+ "confirmations.domain_block.confirm": "隱藏整個網站",
+ "confirmations.domain_block.message": "你真的真的確定要隱藏整個 {domain} ?多數情況下,比較推薦封鎖或靜音幾個特定目標就好。",
"confirmations.mute.confirm": "靜音",
"confirmations.mute.message": "你確定要將{name}靜音嗎?",
- "confirmations.unfollow.confirm": "Unfollow",
- "confirmations.unfollow.message": "Are you sure you want to unfollow {name}?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
+ "confirmations.unfollow.confirm": "取消關注",
+ "confirmations.unfollow.message": "真的不要繼續關注 {name} 了嗎?",
+ "embed.instructions": "要內嵌此文章,請將以下代碼貼進你的網站。",
+ "embed.preview": "看上去會是這樣:",
"emoji_button.activity": "活動",
"emoji_button.flags": "旗幟",
"emoji_button.food": "飲飲食食",
@@ -76,7 +76,7 @@
"emoji_button.search": "搜尋…",
"emoji_button.symbols": "符號",
"emoji_button.travel": "旅遊景物",
- "empty_column.community": "本站時間軸暫時未有內容,快貼文來搶頭香啊!",
+ "empty_column.community": "本站時間軸暫時未有內容,快文章來搶頭香啊!",
"empty_column.hashtag": "這個標籤暫時未有內容。",
"empty_column.home": "你還沒有關注任何用戶。快看看{public},向其他用戶搭訕吧。",
"empty_column.home.inactivity": "你的主頁暫時沒有內容。也許你太久沒有來?如果是這樣,文章會慢慢出來,請稍後再看。",
@@ -97,35 +97,35 @@
"home.column_settings.show_replies": "顯示回應文章",
"home.settings": "欄位設定",
"lightbox.close": "關閉",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "繼續",
+ "lightbox.previous": "回退",
"loading_indicator.label": "載入中...",
"media_gallery.toggle_visible": "打開或關上",
"missing_indicator.label": "找不到內容",
"navigation_bar.blocks": "被你封鎖的用戶",
"navigation_bar.community_timeline": "本站時間軸",
"navigation_bar.edit_profile": "修改個人資料",
- "navigation_bar.favourites": "喜歡的內容",
+ "navigation_bar.favourites": "最愛的內容",
"navigation_bar.follow_requests": "關注請求",
"navigation_bar.info": "關於本服務站",
"navigation_bar.logout": "登出",
"navigation_bar.mutes": "被你靜音的用戶",
- "navigation_bar.pins": "Pinned toots",
+ "navigation_bar.pins": "置頂文章",
"navigation_bar.preferences": "偏好設定",
"navigation_bar.public_timeline": "跨站時間軸",
- "notification.favourite": "{name} 喜歡你的文章",
+ "notification.favourite": "{name} 收藏了你的文章",
"notification.follow": "{name} 開始關注你",
"notification.mention": "{name} 提及你",
"notification.reblog": "{name} 轉推你的文章",
"notifications.clear": "清空通知紀錄",
"notifications.clear_confirmation": "你確定要清空通知紀錄嗎?",
"notifications.column_settings.alert": "顯示桌面通知",
- "notifications.column_settings.favourite": "喜歡你的文章:",
- "notifications.column_settings.follow": "關注你:",
- "notifications.column_settings.mention": "提及你:",
- "notifications.column_settings.push": "Push notifications",
- "notifications.column_settings.push_meta": "This device",
- "notifications.column_settings.reblog": "轉推你的文章:",
+ "notifications.column_settings.favourite": "收藏了你的文章:",
+ "notifications.column_settings.follow": "關注你:",
+ "notifications.column_settings.mention": "提及你:",
+ "notifications.column_settings.push": "推送通知",
+ "notifications.column_settings.push_meta": "這臺設備",
+ "notifications.column_settings.reblog": "轉推你的文章:",
"notifications.column_settings.show": "在通知欄顯示",
"notifications.column_settings.sound": "播放音效",
"onboarding.done": "開始使用",
@@ -163,17 +163,17 @@
"report.target": "舉報",
"search.placeholder": "搜尋",
"search_results.total": "{count, number} 項結果",
- "standalone.public_title": "A look inside...",
+ "standalone.public_title": "站點一瞥…",
"status.cannot_reblog": "這篇文章無法被轉推",
"status.delete": "刪除",
- "status.embed": "Embed",
- "status.favourite": "喜歡",
+ "status.embed": "鑲嵌",
+ "status.favourite": "收藏",
"status.load_more": "載入更多",
"status.media_hidden": "隱藏媒體內容",
"status.mention": "提及 @{name}",
- "status.mute_conversation": "Mute conversation",
+ "status.mute_conversation": "靜音對話",
"status.open": "展開文章",
- "status.pin": "Pin on profile",
+ "status.pin": "置頂到資料頁",
"status.reblog": "轉推",
"status.reblogged_by": "{name} 轉推",
"status.reply": "回應",
@@ -184,8 +184,8 @@
"status.share": "Share",
"status.show_less": "減少顯示",
"status.show_more": "顯示更多",
- "status.unmute_conversation": "Unmute conversation",
- "status.unpin": "Unpin from profile",
+ "status.unmute_conversation": "解禁對話",
+ "status.unpin": "解除置頂",
"tabs_bar.compose": "撰寫",
"tabs_bar.federated_timeline": "跨站",
"tabs_bar.home": "主頁",
@@ -195,15 +195,15 @@
"upload_button.label": "上載媒體檔案",
"upload_form.undo": "還原",
"upload_progress.label": "上載中……",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "關閉影片",
+ "video.exit_fullscreen": "退出全熒幕",
+ "video.expand": "展開影片",
+ "video.fullscreen": "全熒幕",
+ "video.hide": "隱藏影片",
+ "video.mute": "靜音",
+ "video.pause": "暫停",
+ "video.play": "播放",
+ "video.unmute": "解除靜音",
"video_player.expand": "展開影片",
"video_player.toggle_sound": "開關音效",
"video_player.toggle_visible": "打開或關上",
diff --git a/app/javascript/mastodon/locales/zh-TW.json b/app/javascript/mastodon/locales/zh-TW.json
index cfe7ccf91..b3cc6add7 100644
--- a/app/javascript/mastodon/locales/zh-TW.json
+++ b/app/javascript/mastodon/locales/zh-TW.json
@@ -1,11 +1,11 @@
{
"account.block": "封鎖 @{name}",
- "account.block_domain": "隱藏來自 {domain} 的一切",
- "account.disclaimer_full": "Information below may reflect the user's profile incompletely.",
- "account.edit_profile": "編輯用戶資訊",
+ "account.block_domain": "隱藏來自 {domain} 的一切貼文",
+ "account.disclaimer_full": "下列資料不一定完整。",
+ "account.edit_profile": "編輯用者資訊",
"account.follow": "關注",
"account.followers": "專注者",
- "account.follows": "正在關注",
+ "account.follows": "正關注",
"account.follows_you": "關注你",
"account.media": "媒體",
"account.mention": "提到 @{name}",
@@ -13,19 +13,19 @@
"account.posts": "貼文",
"account.report": "檢舉 @{name}",
"account.requested": "正在等待許可",
- "account.share": "Share @{name}'s profile",
+ "account.share": "分享 @{name} 的用者資訊",
"account.unblock": "取消封鎖 @{name}",
"account.unblock_domain": "不再隱藏 {domain}",
"account.unfollow": "取消關注",
"account.unmute": "不再消音 @{name}",
- "account.view_full_profile": "View full profile",
+ "account.view_full_profile": "查看完整資訊",
"boost_modal.combo": "下次你可以按 {combo} 來跳過",
- "bundle_column_error.body": "Something went wrong while loading this component.",
- "bundle_column_error.retry": "Try again",
- "bundle_column_error.title": "Network error",
- "bundle_modal_error.close": "Close",
- "bundle_modal_error.message": "Something went wrong while loading this component.",
- "bundle_modal_error.retry": "Try again",
+ "bundle_column_error.body": "加載本組件出錯。",
+ "bundle_column_error.retry": "重試",
+ "bundle_column_error.title": "網路錯誤",
+ "bundle_modal_error.close": "關閉",
+ "bundle_modal_error.message": "加載本組件出錯。",
+ "bundle_modal_error.retry": "重試",
"column.blocks": "封鎖的使用者",
"column.community": "本地時間軸",
"column.favourites": "最愛",
@@ -33,22 +33,22 @@
"column.home": "家",
"column.mutes": "消音的使用者",
"column.notifications": "通知",
- "column.pins": "Pinned toot",
+ "column.pins": "置頂貼文",
"column.public": "聯盟時間軸",
"column_back_button.label": "上一頁",
- "column_header.hide_settings": "Hide settings",
- "column_header.moveLeft_settings": "Move column to the left",
- "column_header.moveRight_settings": "Move column to the right",
- "column_header.pin": "Pin",
- "column_header.show_settings": "Show settings",
- "column_header.unpin": "Unpin",
+ "column_header.hide_settings": "隱藏設定",
+ "column_header.moveLeft_settings": "將欄左移",
+ "column_header.moveRight_settings": "將欄右移",
+ "column_header.pin": "置頂",
+ "column_header.show_settings": "顯示設定",
+ "column_header.unpin": "撤頂",
"column_subheading.navigation": "瀏覽",
"column_subheading.settings": "設定",
"compose_form.lock_disclaimer": "你的帳號沒有{locked}。任何人都可以關注你,看到發給關注者的貼文。",
"compose_form.lock_disclaimer.lock": "上鎖",
"compose_form.placeholder": "在想些什麼?",
"compose_form.privacy_disclaimer": "你的貼文會被傳到 {domains} 上被提到的使用者。你信任 {domainsCount, plural, one {這個伺服器} other {這些伺服器}}嗎?貼文的隱私設定只會在 Mastodon 副本上生效。如果 {domains} {domainsCount, plural, one {不是一個 Mastodon 副本} other {都不是 Mastodon 副本}},就不會被標記為非公開貼文,而且可能會被轉推或是讓不預期的人看見。",
- "compose_form.publish": "推",
+ "compose_form.publish": "貼掉",
"compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "將此媒體標為敏感",
"compose_form.spoiler": "將訊息隱藏在警告訊息之後",
@@ -59,13 +59,13 @@
"confirmations.delete.confirm": "刪除",
"confirmations.delete.message": "你確定要刪除這個狀態?",
"confirmations.domain_block.confirm": "隱藏整個網域",
- "confirmations.domain_block.message": "你真的真的確定要封鎖整個 {domain} ?多數情況下,比較推薦封鎖或消音幾個特定目標就好。",
+ "confirmations.domain_block.message": "你真的真的確定要隱藏整個 {domain} ?多數情況下,比較推薦封鎖或消音幾個特定目標就好。",
"confirmations.mute.confirm": "消音",
"confirmations.mute.message": "你確定要消音 {name} ?",
- "confirmations.unfollow.confirm": "Unfollow",
- "confirmations.unfollow.message": "Are you sure you want to unfollow {name}?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
+ "confirmations.unfollow.confirm": "取消關注",
+ "confirmations.unfollow.message": "真的不要繼續關注 {name} 了嗎?",
+ "embed.instructions": "要內嵌此貼文,請將以下代碼貼進你的網站。",
+ "embed.preview": "看上去會變成這樣:",
"emoji_button.activity": "活動",
"emoji_button.flags": "旗幟",
"emoji_button.food": "食物與飲料",
@@ -73,12 +73,12 @@
"emoji_button.nature": "自然",
"emoji_button.objects": "物件",
"emoji_button.people": "人",
- "emoji_button.search": "搜尋...",
+ "emoji_button.search": "搜尋…",
"emoji_button.symbols": "符號",
"emoji_button.travel": "旅遊與地點",
"empty_column.community": "本地時間軸是空的。公開寫點什麼吧!",
"empty_column.hashtag": "這個主題標籤下什麼都沒有。",
- "empty_column.home": "你還沒關注任何人。造訪{public}或利用搜尋功能找到其他用戶。",
+ "empty_column.home": "你還沒關注任何人。造訪{public}或利用搜尋功能找到其他用者。",
"empty_column.home.inactivity": "你家的訊息摘要是空的。如果你很久沒活動了,很快它就會重新產生。",
"empty_column.home.public_timeline": "公開時間軸",
"empty_column.notifications": "還沒有任何通知。和別的使用者互動來開始對話。",
@@ -97,23 +97,23 @@
"home.column_settings.show_replies": "顯示回應",
"home.settings": "欄位設定",
"lightbox.close": "關閉",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "繼續",
+ "lightbox.previous": "回退",
"loading_indicator.label": "讀取中...",
"media_gallery.toggle_visible": "切換可見性",
"missing_indicator.label": "找不到",
"navigation_bar.blocks": "封鎖的使用者",
"navigation_bar.community_timeline": "本地時間軸",
- "navigation_bar.edit_profile": "編輯用戶資訊",
+ "navigation_bar.edit_profile": "編輯用者資訊",
"navigation_bar.favourites": "最愛",
"navigation_bar.follow_requests": "關注請求",
"navigation_bar.info": "關於本站",
"navigation_bar.logout": "登出",
"navigation_bar.mutes": "消音的使用者",
- "navigation_bar.pins": "Pinned toots",
+ "navigation_bar.pins": "置頂貼文",
"navigation_bar.preferences": "偏好設定",
"navigation_bar.public_timeline": "聯盟時間軸",
- "notification.favourite": "{name}喜歡你的狀態",
+ "notification.favourite": "{name}收藏了你的狀態",
"notification.follow": "{name}關注了你",
"notification.mention": "{name}提到了你",
"notification.reblog": "{name}推了你的狀態",
@@ -123,8 +123,8 @@
"notifications.column_settings.favourite": "最愛:",
"notifications.column_settings.follow": "新的關注者:",
"notifications.column_settings.mention": "提到:",
- "notifications.column_settings.push": "Push notifications",
- "notifications.column_settings.push_meta": "This device",
+ "notifications.column_settings.push": "推送通知",
+ "notifications.column_settings.push_meta": "這臺設備",
"notifications.column_settings.reblog": "轉推:",
"notifications.column_settings.show": "顯示在欄位中",
"notifications.column_settings.sound": "播放音效",
@@ -137,8 +137,8 @@
"onboarding.page_one.handle": "你在 {domain} 上,所以你的帳號全名是 {handle}",
"onboarding.page_one.welcome": "歡迎來到 Mastodon !",
"onboarding.page_six.admin": "你的副本的管理員是 {admin} 。",
- "onboarding.page_six.almost_done": "快好了...",
- "onboarding.page_six.appetoot": "推口大開!",
+ "onboarding.page_six.almost_done": "快好了…",
+ "onboarding.page_six.appetoot": "貼口大開!",
"onboarding.page_six.apps_available": "在 iOS 、 Android 和其他平台上有這些 {apps} 可以用。",
"onboarding.page_six.github": "Mastodon 是自由的開源軟體。你可以在 {github} 上回報臭蟲、請求新功能或是做出貢獻。",
"onboarding.page_six.guidelines": "社群指南",
@@ -163,17 +163,17 @@
"report.target": "通報中",
"search.placeholder": "搜尋",
"search_results.total": "{count, number} 項結果",
- "standalone.public_title": "A look inside...",
+ "standalone.public_title": "站點一瞥…",
"status.cannot_reblog": "此貼文無法轉推",
"status.delete": "刪除",
"status.embed": "Embed",
- "status.favourite": "喜愛",
+ "status.favourite": "收藏",
"status.load_more": "載入更多",
"status.media_hidden": "媒體已隱藏",
"status.mention": "提到 @{name}",
"status.mute_conversation": "消音對話",
"status.open": "展開這個狀態",
- "status.pin": "Pin on profile",
+ "status.pin": "置頂到個人資訊頁",
"status.reblog": "轉推",
"status.reblogged_by": "{name} 轉推了",
"status.reply": "回應",
@@ -185,7 +185,7 @@
"status.show_less": "看少點",
"status.show_more": "看更多",
"status.unmute_conversation": "不消音對話",
- "status.unpin": "Unpin from profile",
+ "status.unpin": "解除置頂",
"tabs_bar.compose": "編輯",
"tabs_bar.federated_timeline": "聯盟",
"tabs_bar.home": "家",
@@ -195,15 +195,15 @@
"upload_button.label": "增加媒體",
"upload_form.undo": "復原",
"upload_progress.label": "上傳中...",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
+ "video.close": "關閉影片",
+ "video.exit_fullscreen": "退出全熒幕",
+ "video.expand": "展開影片",
+ "video.fullscreen": "全熒幕",
+ "video.hide": "隱藏影片",
+ "video.mute": "消音",
+ "video.pause": "暫停",
+ "video.play": "播放",
+ "video.unmute": "解除消音",
"video_player.expand": "展開影片",
"video_player.toggle_sound": "切換音效",
"video_player.toggle_visible": "切換可見性",
diff --git a/app/views/user_mailer/confirmation_instructions.zh-cn.html.erb b/app/views/user_mailer/confirmation_instructions.zh-cn.html.erb
index 575b2ff9e..de2f8b6e0 100644
--- a/app/views/user_mailer/confirmation_instructions.zh-cn.html.erb
+++ b/app/views/user_mailer/confirmation_instructions.zh-cn.html.erb
@@ -3,7 +3,7 @@
你刚刚在 <%= @instance %> 创建了帐号。
点击下面的链接来完成注册啦 :
-<%= link_to '确认账户', confirmation_url(@resource, confirmation_token: @token) %>
+<%= link_to '确认帐户', confirmation_url(@resource, confirmation_token: @token) %>
别忘了看看 <%= link_to '使用条款', terms_url %>。
diff --git a/app/views/user_mailer/confirmation_instructions.zh-cn.text.erb b/app/views/user_mailer/confirmation_instructions.zh-cn.text.erb
index ce237a32d..d7d4b4b23 100644
--- a/app/views/user_mailer/confirmation_instructions.zh-cn.text.erb
+++ b/app/views/user_mailer/confirmation_instructions.zh-cn.text.erb
@@ -3,7 +3,7 @@
你刚刚在 <%= @instance %> 创建了帐号。
点击下面的链接来完成注册啦 :
-<%= link_to '确认账户', confirmation_url(@resource, confirmation_token: @token) %>
+<%= link_to '确认帐户', confirmation_url(@resource, confirmation_token: @token) %>
别忘了看看 <%= link_to 'terms and conditions', terms_url %>。
diff --git a/app/views/user_mailer/reset_password_instructions.zh-cn.html.erb b/app/views/user_mailer/reset_password_instructions.zh-cn.html.erb
index 245382b2c..51e3073f1 100644
--- a/app/views/user_mailer/reset_password_instructions.zh-cn.html.erb
+++ b/app/views/user_mailer/reset_password_instructions.zh-cn.html.erb
@@ -1,6 +1,6 @@
<%= @resource.email %> ,嗨呀!!
-有人(但愿是你)请求更改你Mastodon账户的密码。如果是你的话,请点击下面的链接:
+有人(但愿是你)请求更改你Mastodon帐户的密码。如果是你的话,请点击下面的链接:
<%= link_to '更改密码', edit_password_url(@resource, reset_password_token: @token) %>
diff --git a/app/views/user_mailer/reset_password_instructions.zh-cn.text.erb b/app/views/user_mailer/reset_password_instructions.zh-cn.text.erb
index 574a0bb2e..7df590f78 100644
--- a/app/views/user_mailer/reset_password_instructions.zh-cn.text.erb
+++ b/app/views/user_mailer/reset_password_instructions.zh-cn.text.erb
@@ -1,6 +1,6 @@
<%= @resource.email %> ,嗨呀!!
-有人(但愿是你)请求更改你Mastodon账户的密码。如果是你的话,请点击下面的链接:
+有人(但愿是你)请求更改你Mastodon帐户的密码。如果是你的话,请点击下面的链接:
<%= link_to '更改密码', edit_password_url(@resource, reset_password_token: @token) %>
diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml
index 95c24d0bc..44d0f3803 100644
--- a/config/locales/zh-CN.yml
+++ b/config/locales/zh-CN.yml
@@ -65,9 +65,9 @@ zh-CN:
salmon_url: Salmon 反馈 URL
search: 搜索
show:
- created_reports: 这个账户创建的报告
+ created_reports: 这个帐户创建的报告
report: 报告
- targeted_reports: 关于这个账户的报告
+ targeted_reports: 关于这个帐户的报告
silence: 静音
statuses: 嘟文
title: 用户
@@ -82,7 +82,7 @@ zh-CN:
domain: 域名阻隔
new:
create: 添加域名阻隔
- hint: "「域名阻隔」不会隔绝该域名用户的嘟账户入本站数据库,但会嘟文抵达后,自动套用特定的审批操作。"
+ hint: "「域名阻隔」不会隔绝该域名用户的嘟帐户入本站数据库,但会嘟文抵达后,自动套用特定的审批操作。"
severity:
desc_html: "「自动静音 」令该域名用户的嘟文,设为只对关注者显示,没有关注的人会看不到。 「自动除名 」会自动将该域名用户的嘟文、媒体文件、个人资料从本服务器实例删除。"
silence: 自动静音
@@ -96,11 +96,11 @@ zh-CN:
severity: 阻隔程度
show:
affected_accounts:
- one: 数据库中有1个账户受影响
- other: 数据库中有%{count}个账户受影响
+ one: 数据库中有1个帐户受影响
+ other: 数据库中有%{count}个帐户受影响
retroactive:
- silence: 对此域名的所有账户取消静音
- suspend: 对此域名的所有账户取消除名
+ silence: 对此域名的所有帐户取消静音
+ suspend: 对此域名的所有帐户取消除名
title: 撤销 %{domain} 的域名阻隔
undo: 撤销
title: 域名阻隔
@@ -209,12 +209,12 @@ zh-CN:
domain: 域名
explanation_html: 想要保护你的嘟文的话,请慎重考虑关注你的人。你的受保护的嘟文会发送到有你的关注者的所有实例上 。你也许想要复查一下关注者列表来移除那些你无法信任的关注者。
followers_count: 关注者数量
- lock_link: 保护你的账户
+ lock_link: 保护你的帐户
purge: 从关注者中移除
success: 从 %{count} 个域名中移除了关注者。
true_privacy_html: "真正的隐私只能靠端到端加密来实现 !"
unlocked_warning_html: 任何人都可以关注你然后查看被保护的嘟文, %{lock_link} 可以复核和拒绝关注请求。
- unlocked_warning_title: 你的账户没被保护
+ unlocked_warning_title: 你的帐户没被保护
generic:
changes_saved_msg: 更改已被保存。
powered_by: 基于 %{link} 构建
@@ -231,7 +231,7 @@ zh-CN:
muting: 静音名单
upload: 上载
landing_strip_html: "%{name} 是一个在 %{link_to_root_path} 的用户。只要你是象毛世界里(Mastodon、GNU social)任一服务器实例的用户,便可以跨站关注此站用户并与其沟通。"
- landing_strip_signup_html: 如果你没有这类账户,欢迎在此处登记 。
+ landing_strip_signup_html: 如果你没有这类帐户,欢迎在此处登记 。
media_attachments:
validations:
images_and_video: 无法添加视频到一个已经包含图片的嘟文中
@@ -247,8 +247,8 @@ zh-CN:
one: "你有一个新通知 \U0001F418"
other: "%{count} 个通知太多,赶快去看看 \U0001F418"
favourite:
- body: "%{name} 赞你"
- subject: "%{name} 对你点赞"
+ body: "%{name} 收藏了你"
+ subject: "%{name} 给你点了收藏"
follow:
body: "%{name} 关注了你"
subject: "%{name} 关注了你"
@@ -278,7 +278,7 @@ zh-CN:
truncate: "……"
remote_follow:
acct: 请输入你的︰用户名称@实例域名
- missing_resource: 无法找到您的账户转接网址
+ missing_resource: 无法找到您的帐户转接网址
proceed: 下一步
prompt: 你正准备关注︰
settings:
@@ -317,10 +317,10 @@ zh-CN:
enabled_success: 已成功启用两步认证
generate_recovery_codes: 生成恢复代码
instructions_html: "请用你手机的认证器应用(如 Google Authenticator、Authy),扫描这里的 QR 二维码 。在两步认证启用后,你登录时将需要使用此应用程序产生的认证码。"
- lost_recovery_codes: 如果你丢了手机,你可以用恢复代码重新访问你的账户。如果你丢了恢复代码,也可以在这里重新生成一个,不过以前的恢复代码就失效了。(废话)
+ lost_recovery_codes: 如果你丢了手机,你可以用恢复代码重新访问你的帐户。如果你丢了恢复代码,也可以在这里重新生成一个,不过以前的恢复代码就失效了。(废话)
manual_instructions: 如果你无法扫描 QR 二维码,请手动输入这个文本密码︰
recovery_codes_regenerated: 已成功重新生成恢复代码
- recovery_instructions_html: 如果你的手机无法使用,你可以使用下面的任何恢复代码来恢复你的账号。请保管好你的恢复代码以防泄漏(例如你可以打印好它们并和重要文档一起保存)。
+ recovery_instructions_html: 如果你的手机无法使用,你可以使用下面的任何恢复代码来恢复你的帐号。请保管好你的恢复代码以防泄漏(例如你可以打印好它们并和重要文档一起保存)。
setup: 设置
wrong_code: 你输入的认证码并不正确!可能服务器时间和你手机不一致,请检查你手机的时钟,或与本站管理员联系。
users:
diff --git a/config/locales/zh-HK.yml b/config/locales/zh-HK.yml
index aa6b1ea6a..8ff6d1bf8 100644
--- a/config/locales/zh-HK.yml
+++ b/config/locales/zh-HK.yml
@@ -242,8 +242,8 @@ zh-HK:
one: "自從上次登入以來,你收到 1 則新的通知 \U0001F418"
other: "自從上次登入以來,你收到 %{count} 則新的通知 \U0001F418"
favourite:
- body: 你的文章獲得 %{name} 的喜愛
- subject: "%{name} 喜歡你的文章"
+ body: 你的文章是 %{name} 的最愛!
+ subject: "%{name} 收藏了你的文章"
follow:
body: "%{name} 開始關注你!"
subject: "%{name} 現正關注你"
diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml
index 299a92da7..7a66a64ca 100644
--- a/config/locales/zh-TW.yml
+++ b/config/locales/zh-TW.yml
@@ -197,8 +197,8 @@ zh-TW:
one: "自從上次登入以來,您收到 1 則新的通知 \U0001F418"
other: "自從上次登入以來,您收到 %{count} 則新的通知 \U0001F418"
favourite:
- body: 您的文章被 %{name} 喜歡
- subject: "%{name} 喜歡您的文章"
+ body: 您的文章被 %{name} 收藏
+ subject: "%{name} 將您的文章加入了最愛"
follow:
body: "%{name} 開始關注您!"
subject: "%{name} 開始關注您"
--
cgit
From 7be3131240ba0371f028ccf1ca93dac87678b27d Mon Sep 17 00:00:00 2001
From: BruWalfas
Date: Sun, 17 Sep 2017 06:16:43 -0300
Subject: So Spanish. Much changes. Wow. (#4976)
---
app/javascript/mastodon/locales/es.json | 250 ++++++++++++++++----------------
1 file changed, 125 insertions(+), 125 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/es.json b/app/javascript/mastodon/locales/es.json
index 7d74d6b46..5c3314504 100644
--- a/app/javascript/mastodon/locales/es.json
+++ b/app/javascript/mastodon/locales/es.json
@@ -1,7 +1,7 @@
{
"account.block": "Bloquear",
- "account.block_domain": "Hide everything from {domain}",
- "account.disclaimer_full": "Information below may reflect the user's profile incompletely.",
+ "account.block_domain": "Ocultar todo de {domain}",
+ "account.disclaimer_full": "La información siguiente del usuario puede estar incompleta.",
"account.edit_profile": "Editar perfil",
"account.follow": "Seguir",
"account.followers": "Seguidores",
@@ -11,21 +11,21 @@
"account.mention": "Mencionar",
"account.mute": "Silenciar",
"account.posts": "Publicaciones",
- "account.report": "Report @{name}",
+ "account.report": "Reportar a @{name}",
"account.requested": "Esperando aprobación",
- "account.share": "Share @{name}'s profile",
+ "account.share": "Compartir el perfil de @{name}",
"account.unblock": "Desbloquear",
- "account.unblock_domain": "Unhide {domain}",
+ "account.unblock_domain": "Mostrar a {domain}",
"account.unfollow": "Dejar de seguir",
- "account.unmute": "Unmute @{name}",
- "account.view_full_profile": "View full profile",
- "boost_modal.combo": "You can press {combo} to skip this next time",
- "bundle_column_error.body": "Something went wrong while loading this component.",
- "bundle_column_error.retry": "Try again",
- "bundle_column_error.title": "Network error",
- "bundle_modal_error.close": "Close",
- "bundle_modal_error.message": "Something went wrong while loading this component.",
- "bundle_modal_error.retry": "Try again",
+ "account.unmute": "Des-silenciar a @{name}",
+ "account.view_full_profile": "Ver perfil completo",
+ "boost_modal.combo": "Puedes presionar {combo} para saltearte esto la próxima",
+ "bundle_column_error.body": "Algo salió mal al cargar este componente.",
+ "bundle_column_error.retry": "Inténtalo de nuevo",
+ "bundle_column_error.title": "Error de red",
+ "bundle_modal_error.close": "Cerrar",
+ "bundle_modal_error.message": "Algo salió mal al cargar este componente.",
+ "bundle_modal_error.retry": "Inténtalo de nuevo",
"column.blocks": "Usuarios bloqueados",
"column.community": "Historia local",
"column.favourites": "Favoritos",
@@ -33,75 +33,75 @@
"column.home": "Inicio",
"column.mutes": "Usuarios silenciados",
"column.notifications": "Notificaciones",
- "column.pins": "Pinned toot",
+ "column.pins": "Toot fijado",
"column.public": "Historia federada",
"column_back_button.label": "Atrás",
- "column_header.hide_settings": "Hide settings",
- "column_header.moveLeft_settings": "Move column to the left",
- "column_header.moveRight_settings": "Move column to the right",
- "column_header.pin": "Pin",
- "column_header.show_settings": "Show settings",
- "column_header.unpin": "Unpin",
- "column_subheading.navigation": "Navigation",
- "column_subheading.settings": "Settings",
- "compose_form.lock_disclaimer": "Your account is not {locked}. Anyone can follow you to view your follower-only posts.",
- "compose_form.lock_disclaimer.lock": "locked",
+ "column_header.hide_settings": "Ocultar ajustes",
+ "column_header.moveLeft_settings": "Mover columna a la izquierda",
+ "column_header.moveRight_settings": "Mover columna a la derecha",
+ "column_header.pin": "Fijar",
+ "column_header.show_settings": "Mostrar ajustes",
+ "column_header.unpin": "Des-fijar",
+ "column_subheading.navigation": "Navegación",
+ "column_subheading.settings": "Ajustes",
+ "compose_form.lock_disclaimer": "Tu cuenta no está bloqueada. Todos pueden seguirte para ver tus toots de solo-seguidores.",
+ "compose_form.lock_disclaimer.lock": "bloqueado",
"compose_form.placeholder": "¿En qué estás pensando?",
- "compose_form.privacy_disclaimer": "Your private status will be delivered to mentioned users on {domains}. Do you trust {domainsCount, plural, one {that server} other {those servers}}? Post privacy only works on Mastodon instances. If {domains} {domainsCount, plural, one {is not a Mastodon instance} other {are not Mastodon instances}}, there will be no indication that your post is private, and it may be boosted or otherwise made visible to unintended recipients.",
+ "compose_form.privacy_disclaimer": "Tu toot privado será enviado a usuario/s de {domains}. ¿Confías en {domainsCount, plural, one {ese servidor} other {esos servidores}}? La privacidad del toot funcionará solamente en instancias de Mastodon. Si {domains} {domainsCount, plural, one {no es una instancia de Mastodon} other {no son instancias de Mastodon}}, no habrá indicación de que tu toot es privado, y puede hacerse visible a remitentes inesperados.",
"compose_form.publish": "Tootear",
"compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "Marcar contenido como sensible",
"compose_form.spoiler": "Ocultar texto tras advertencia",
"compose_form.spoiler_placeholder": "Advertencia de contenido",
- "confirmation_modal.cancel": "Cancel",
- "confirmations.block.confirm": "Block",
- "confirmations.block.message": "Are you sure you want to block {name}?",
- "confirmations.delete.confirm": "Delete",
- "confirmations.delete.message": "Are you sure you want to delete this status?",
- "confirmations.domain_block.confirm": "Hide entire domain",
- "confirmations.domain_block.message": "Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",
- "confirmations.mute.confirm": "Mute",
- "confirmations.mute.message": "Are you sure you want to mute {name}?",
- "confirmations.unfollow.confirm": "Unfollow",
- "confirmations.unfollow.message": "Are you sure you want to unfollow {name}?",
- "embed.instructions": "Embed this status on your website by copying the code below.",
- "embed.preview": "Here is what it will look like:",
- "emoji_button.activity": "Activity",
- "emoji_button.flags": "Flags",
- "emoji_button.food": "Food & Drink",
+ "confirmation_modal.cancel": "Cancelar",
+ "confirmations.block.confirm": "Bloquear",
+ "confirmations.block.message": "¿Estás seguro de que quieres bloquear a {name}?",
+ "confirmations.delete.confirm": "Eliminar",
+ "confirmations.delete.message": "¿Estás seguro de que quieres borrar este toot?",
+ "confirmations.domain_block.confirm": "Ocultar dominio entero",
+ "confirmations.domain_block.message": "¿Seguro de que quieres bloquear al dominio entero? En algunos casos es más preferible bloquear/silenciar objetivos determinados.",
+ "confirmations.mute.confirm": "Silenciar",
+ "confirmations.mute.message": "¿Estás seguro de que quieres silenciar a {name}?",
+ "confirmations.unfollow.confirm": "Dejar de seguir",
+ "confirmations.unfollow.message": "¿Estás seguro de que quieres dejar de seguir a {name}?",
+ "embed.instructions": "Pon este toot en tu sitio web con el siguiente código.",
+ "embed.preview": "Así es como se verá:",
+ "emoji_button.activity": "Actividad",
+ "emoji_button.flags": "Marcas",
+ "emoji_button.food": "Comida y Bebida",
"emoji_button.label": "Insertar emoji",
- "emoji_button.nature": "Nature",
- "emoji_button.objects": "Objects",
- "emoji_button.people": "People",
- "emoji_button.search": "Search...",
- "emoji_button.symbols": "Symbols",
- "emoji_button.travel": "Travel & Places",
- "empty_column.community": "The local timeline is empty. Write something publicly to get the ball rolling!",
- "empty_column.hashtag": "There is nothing in this hashtag yet.",
- "empty_column.home": "You aren't following anyone yet. Visit {public} or use search to get started and meet other users.",
- "empty_column.home.inactivity": "Your home feed is empty. If you have been inactive for a while, it will be regenerated for you soon.",
- "empty_column.home.public_timeline": "the public timeline",
- "empty_column.notifications": "You don't have any notifications yet. Interact with others to start the conversation.",
- "empty_column.public": "There is nothing here! Write something publicly, or manually follow users from other instances to fill it up",
- "follow_request.authorize": "Authorize",
- "follow_request.reject": "Reject",
- "getting_started.appsshort": "Apps",
+ "emoji_button.nature": "Naturaleza",
+ "emoji_button.objects": "Objetos",
+ "emoji_button.people": "Gente",
+ "emoji_button.search": "Buscar...",
+ "emoji_button.symbols": "Símbolos",
+ "emoji_button.travel": "Viajes y Lugares",
+ "empty_column.community": "La línea de tiempo local está vacía. ¡Escribe algo para empezar la fiesta!",
+ "empty_column.hashtag": "No hay nada en este hashtag aún.",
+ "empty_column.home": "No estás siguiendo a nadie aún. Visita {public} o haz búsquedas para empezar y conocer gente nueva.",
+ "empty_column.home.inactivity": "Tus notificaciones están vacías. Si has estado inactivo por un tiempo, se regenerará para ti pronto.",
+ "empty_column.home.public_timeline": "la línea de tiempo pública",
+ "empty_column.notifications": "No tienes ninguna notificación aún. Interactúa con otros para empezar una conversación.",
+ "empty_column.public": "¡No hay nada aquí! Escribe algo públicamente, o sigue usuarios de otras instancias manualmente para llenarlo.",
+ "follow_request.authorize": "Autorizar",
+ "follow_request.reject": "Rechazar",
+ "getting_started.appsshort": "Aplicaciones",
"getting_started.faq": "FAQ",
"getting_started.heading": "Primeros pasos",
"getting_started.open_source_notice": "Mastodon es software libre. Puedes contribuir o reportar errores en {github}.",
- "getting_started.userguide": "User Guide",
- "home.column_settings.advanced": "Advanced",
- "home.column_settings.basic": "Basic",
- "home.column_settings.filter_regex": "Filter out by regular expressions",
- "home.column_settings.show_reblogs": "Show boosts",
- "home.column_settings.show_replies": "Show replies",
- "home.settings": "Column settings",
+ "getting_started.userguide": "Guía del Usuario",
+ "home.column_settings.advanced": "Avanzado",
+ "home.column_settings.basic": "Básico",
+ "home.column_settings.filter_regex": "Filtrar con expresiones regulares",
+ "home.column_settings.show_reblogs": "Mostrar retoots",
+ "home.column_settings.show_replies": "Mostrar respuestas",
+ "home.settings": "Ajustes de columna",
"lightbox.close": "Cerrar",
- "lightbox.next": "Next",
- "lightbox.previous": "Previous",
+ "lightbox.next": "Siguiente",
+ "lightbox.previous": "Anterior",
"loading_indicator.label": "Cargando...",
- "media_gallery.toggle_visible": "Toggle visibility",
- "missing_indicator.label": "Not found",
+ "media_gallery.toggle_visible": "Cambiar visibilidad",
+ "missing_indicator.label": "No encontrado",
"navigation_bar.blocks": "Usuarios bloqueados",
"navigation_bar.community_timeline": "Historia local",
"navigation_bar.edit_profile": "Editar perfil",
@@ -110,44 +110,44 @@
"navigation_bar.info": "Información adicional",
"navigation_bar.logout": "Cerrar sesión",
"navigation_bar.mutes": "Usuarios silenciados",
- "navigation_bar.pins": "Pinned toots",
+ "navigation_bar.pins": "Toots fijados",
"navigation_bar.preferences": "Preferencias",
"navigation_bar.public_timeline": "Historia federada",
"notification.favourite": "{name} marcó tu estado como favorito",
"notification.follow": "{name} te empezó a seguir",
"notification.mention": "{name} te ha mencionado",
"notification.reblog": "{name} ha retooteado tu estado",
- "notifications.clear": "Clear notifications",
- "notifications.clear_confirmation": "Are you sure you want to permanently clear all your notifications?",
+ "notifications.clear": "Limpiar notificaciones",
+ "notifications.clear_confirmation": "¿Seguro que quieres limpiar permanentemente todas tus notificaciones?",
"notifications.column_settings.alert": "Notificaciones de escritorio",
"notifications.column_settings.favourite": "Favoritos:",
"notifications.column_settings.follow": "Nuevos seguidores:",
"notifications.column_settings.mention": "Menciones:",
- "notifications.column_settings.push": "Push notifications",
- "notifications.column_settings.push_meta": "This device",
+ "notifications.column_settings.push": "Notificaciones push:",
+ "notifications.column_settings.push_meta": "Este dispositivo:",
"notifications.column_settings.reblog": "Retoots:",
"notifications.column_settings.show": "Mostrar en columna",
- "notifications.column_settings.sound": "Play sound",
- "onboarding.done": "Done",
- "onboarding.next": "Next",
- "onboarding.page_five.public_timelines": "The local timeline shows public posts from everyone on {domain}. The federated timeline shows public posts from everyone who people on {domain} follow. These are the Public Timelines, a great way to discover new people.",
- "onboarding.page_four.home": "The home timeline shows posts from people you follow.",
- "onboarding.page_four.notifications": "The notifications column shows when someone interacts with you.",
- "onboarding.page_one.federation": "Mastodon is a network of independent servers joining up to make one larger social network. We call these servers instances.",
- "onboarding.page_one.handle": "You are on {domain}, so your full handle is {handle}",
- "onboarding.page_one.welcome": "Welcome to Mastodon!",
- "onboarding.page_six.admin": "Your instance's admin is {admin}.",
- "onboarding.page_six.almost_done": "Almost done...",
- "onboarding.page_six.appetoot": "Bon Appetoot!",
- "onboarding.page_six.apps_available": "There are {apps} available for iOS, Android and other platforms.",
- "onboarding.page_six.github": "Mastodon is free open-source software. You can report bugs, request features, or contribute to the code on {github}.",
- "onboarding.page_six.guidelines": "community guidelines",
- "onboarding.page_six.read_guidelines": "Please read {domain}'s {guidelines}!",
- "onboarding.page_six.various_app": "mobile apps",
- "onboarding.page_three.profile": "Edit your profile to change your avatar, bio, and display name. There, you will also find other preferences.",
- "onboarding.page_three.search": "Use the search bar to find people and look at hashtags, such as {illustration} and {introductions}. To look for a person who is not on this instance, use their full handle.",
- "onboarding.page_two.compose": "Write posts from the compose column. You can upload images, change privacy settings, and add content warnings with the icons below.",
- "onboarding.skip": "Skip",
+ "notifications.column_settings.sound": "Reproducir sonido",
+ "onboarding.done": "Listo",
+ "onboarding.next": "Siguiente",
+ "onboarding.page_five.public_timelines": "La línea de tiempo local muestra toots públicos de todos en {domain}. La línea de tiempo federada muestra toots públicos de la gente que sigue la gente de {domain}. Estas son las Líneas de Tiempo Públicas, una gran manera de conocer gente nueva.",
+ "onboarding.page_four.home": "La línea de tiempo principal muestra toots de gente que sigues.",
+ "onboarding.page_four.notifications": "Las notificaciones muestran cuando alguien interactúa contigo.",
+ "onboarding.page_one.federation": "Mastodon es una red de servidores tratando de hacer una red social más grande. Llamamos a estos servidores instancias.",
+ "onboarding.page_one.handle": "Estás en {domain}, así que tu nombre de usuario completo es {handle}",
+ "onboarding.page_one.welcome": "¡Bienvenido a Mastodon!",
+ "onboarding.page_six.admin": "El administrador de tu instancia es {admin}.",
+ "onboarding.page_six.almost_done": "Ya casi...",
+ "onboarding.page_six.appetoot": "¡Bon Appetoot!",
+ "onboarding.page_six.apps_available": "Hay {apps} disponibles para iOS, Android y otras plataformas.",
+ "onboarding.page_six.github": "Mastodon es software libre. Puedes reportar errores, pedir funciones nuevas, o contribuir al código en {github}.",
+ "onboarding.page_six.guidelines": "guías de la comunidad",
+ "onboarding.page_six.read_guidelines": "¡Por favor lee las {guidelines} de {domain}!",
+ "onboarding.page_six.various_app": "aplicaciones móviles",
+ "onboarding.page_three.profile": "Edita tu perfil para cambiar tu avatar, biografía, y nombre de cabecera. Ahí, también encontrarás otros ajustes.",
+ "onboarding.page_three.search": "Usa la barra de búsqueda y revisa hashtags, como {illustration} y {introductions}. Para ver a alguien que no es de tu propia instancia, usa su nombre de usuario completo.",
+ "onboarding.page_two.compose": "Escribe toots en la columna de redacción. Puedes subir imágenes, cambiar ajustes de privacidad, y añadir advertencias de contenido con los siguientes íconos.",
+ "onboarding.skip": "Saltar",
"privacy.change": "Ajustar privacidad",
"privacy.direct.long": "Sólo mostrar a los usuarios mencionados",
"privacy.direct.short": "Directo",
@@ -158,54 +158,54 @@
"privacy.unlisted.long": "No mostrar en la historia federada",
"privacy.unlisted.short": "Sin federar",
"reply_indicator.cancel": "Cancelar",
- "report.placeholder": "Additional comments",
- "report.submit": "Submit",
- "report.target": "Reporting",
+ "report.placeholder": "Comentarios adicionales",
+ "report.submit": "Publicar",
+ "report.target": "Reportando",
"search.placeholder": "Buscar",
- "search_results.total": "{count, number} {count, plural, one {result} other {results}}",
- "standalone.public_title": "A look inside...",
- "status.cannot_reblog": "This post cannot be boosted",
+ "search_results.total": "{count, number} {count, plural, one {resultado} other {resultados}}",
+ "standalone.public_title": "Un pequeño vistazo...",
+ "status.cannot_reblog": "Este toot no puede retootearse",
"status.delete": "Borrar",
"status.embed": "Embed",
"status.favourite": "Favorito",
- "status.load_more": "Load more",
- "status.media_hidden": "Media hidden",
+ "status.load_more": "Cargar más",
+ "status.media_hidden": "Media oculta",
"status.mention": "Mencionar",
- "status.mute_conversation": "Mute conversation",
+ "status.mute_conversation": "Silenciar conversación",
"status.open": "Expandir estado",
- "status.pin": "Pin on profile",
- "status.reblog": "Retoot",
+ "status.pin": "Fijar",
+ "status.reblog": "Retootear",
"status.reblogged_by": "Retooteado por {name}",
"status.reply": "Responder",
- "status.replyAll": "Reply to thread",
+ "status.replyAll": "Responder al hilo",
"status.report": "Reportar",
"status.sensitive_toggle": "Click para ver",
"status.sensitive_warning": "Contenido sensible",
- "status.share": "Share",
+ "status.share": "Compartir",
"status.show_less": "Mostrar menos",
"status.show_more": "Mostrar más",
- "status.unmute_conversation": "Unmute conversation",
- "status.unpin": "Unpin from profile",
+ "status.unmute_conversation": "Des-silenciar conversación",
+ "status.unpin": "Des-fijar",
"tabs_bar.compose": "Redactar",
- "tabs_bar.federated_timeline": "Federated",
+ "tabs_bar.federated_timeline": "Federado",
"tabs_bar.home": "Inicio",
"tabs_bar.local_timeline": "Local",
"tabs_bar.notifications": "Notificaciones",
- "upload_area.title": "Drag & drop to upload",
+ "upload_area.title": "Arrastra y suelta para subir",
"upload_button.label": "Subir multimedia",
"upload_form.undo": "Deshacer",
- "upload_progress.label": "Uploading...",
- "video.close": "Close video",
- "video.exit_fullscreen": "Exit full screen",
- "video.expand": "Expand video",
- "video.fullscreen": "Full screen",
- "video.hide": "Hide video",
- "video.mute": "Mute sound",
- "video.pause": "Pause",
- "video.play": "Play",
- "video.unmute": "Unmute sound",
- "video_player.expand": "Expand video",
+ "upload_progress.label": "Subiendo...",
+ "video.close": "Cerrar video",
+ "video.exit_fullscreen": "Salir de pantalla completa",
+ "video.expand": "Expandir video",
+ "video.fullscreen": "Pantalla completa",
+ "video.hide": "Ocultar video",
+ "video.mute": "Silenciar sonido",
+ "video.pause": "Pausar",
+ "video.play": "Reproducir",
+ "video.unmute": "Des-silenciar sonido",
+ "video_player.expand": "Expandir video",
"video_player.toggle_sound": "Act/Desac. sonido",
- "video_player.toggle_visible": "Toggle visibility",
- "video_player.video_error": "Video could not be played"
+ "video_player.toggle_visible": "Cambiar visibilidad",
+ "video_player.video_error": "No se pudo reproducir el video"
}
--
cgit
From 44245926f105e653cfe4fd3397b796df345023b5 Mon Sep 17 00:00:00 2001
From: abcang
Date: Sun, 17 Sep 2017 18:59:23 +0900
Subject: Fix cancellation of scroll to the right (#4978)
---
app/javascript/mastodon/features/ui/components/columns_area.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js
index 539af8ce3..5610095b9 100644
--- a/app/javascript/mastodon/features/ui/components/columns_area.js
+++ b/app/javascript/mastodon/features/ui/components/columns_area.js
@@ -78,7 +78,7 @@ export default class ColumnsArea extends ImmutablePureComponent {
handleChildrenContentChange() {
if (!this.props.singleColumn) {
- scrollRight(this.node, this.node.scrollWidth - window.innerWidth);
+ this._interruptScrollAnimation = scrollRight(this.node, this.node.scrollWidth - window.innerWidth);
}
}
--
cgit
From 4c14ff659b8a03c69123ef7b78f4db5c137deeb0 Mon Sep 17 00:00:00 2001
From: Lynx Kotoura
Date: Sun, 17 Sep 2017 22:23:44 +0900
Subject: Oauth code in input form and add description message (#4986)
* Oauth code in a input form and add description
* New authcode description
---
app/javascript/styles/forms.scss | 37 +++++++++++++++++++++++++++
app/views/oauth/authorizations/show.html.haml | 3 ++-
config/locales/doorkeeper.ar.yml | 2 +-
config/locales/doorkeeper.bg.yml | 2 +-
config/locales/doorkeeper.ca.yml | 2 +-
config/locales/doorkeeper.de.yml | 2 +-
config/locales/doorkeeper.en.yml | 2 +-
config/locales/doorkeeper.eo.yml | 2 +-
config/locales/doorkeeper.es.yml | 2 +-
config/locales/doorkeeper.fa.yml | 2 +-
config/locales/doorkeeper.fi.yml | 2 +-
config/locales/doorkeeper.fr.yml | 2 +-
config/locales/doorkeeper.he.yml | 2 +-
config/locales/doorkeeper.hr.yml | 2 +-
config/locales/doorkeeper.hu.yml | 2 +-
config/locales/doorkeeper.id.yml | 2 +-
config/locales/doorkeeper.io.yml | 2 +-
config/locales/doorkeeper.it.yml | 2 +-
config/locales/doorkeeper.ja.yml | 2 +-
config/locales/doorkeeper.nl.yml | 2 +-
config/locales/doorkeeper.no.yml | 2 +-
config/locales/doorkeeper.oc.yml | 2 +-
config/locales/doorkeeper.pl.yml | 2 +-
config/locales/doorkeeper.pt-BR.yml | 2 +-
config/locales/doorkeeper.pt.yml | 2 +-
config/locales/doorkeeper.ru.yml | 2 +-
config/locales/doorkeeper.th.yml | 2 +-
config/locales/doorkeeper.uk.yml | 2 +-
config/locales/doorkeeper.zh-CN.yml | 2 +-
config/locales/doorkeeper.zh-HK.yml | 2 +-
config/locales/doorkeeper.zh-TW.yml | 2 +-
31 files changed, 68 insertions(+), 30 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/forms.scss b/app/javascript/styles/forms.scss
index 747610237..0526f174c 100644
--- a/app/javascript/styles/forms.scss
+++ b/app/javascript/styles/forms.scss
@@ -349,9 +349,46 @@ code {
box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
text-align: center;
+ p {
+ margin-bottom: 15px;
+ }
+
+ .oauth-code {
+ color: $ui-secondary-color;
+ outline: 0;
+ box-sizing: border-box;
+ display: block;
+ width: 100%;
+ border: none;
+ padding: 10px;
+ font-family: 'mastodon-font-monospace', monospace;
+ background: $ui-base-color;
+ color: $ui-primary-color;
+ font-size: 14px;
+ margin: 0;
+
+ &::-moz-focus-inner {
+ border: 0;
+ }
+
+ &::-moz-focus-inner,
+ &:focus,
+ &:active {
+ outline: 0 !important;
+ }
+
+ &:focus {
+ background: lighten($ui-base-color, 4%);
+ }
+ }
+
strong {
font-weight: 500;
}
+
+ @media screen and (max-width: 740px) and (min-width: 441px) {
+ margin-top: 40px;
+ }
}
.form-footer {
diff --git a/app/views/oauth/authorizations/show.html.haml b/app/views/oauth/authorizations/show.html.haml
index b56667f35..ad5236007 100644
--- a/app/views/oauth/authorizations/show.html.haml
+++ b/app/views/oauth/authorizations/show.html.haml
@@ -1,3 +1,4 @@
.form-container
.flash-message
- %code= params[:code]
+ %p= t('doorkeeper.authorizations.show.title')
+ %input{ type: 'text', class: 'oauth-code', readonly: true, value: params[:code], onClick: 'select()' }
diff --git a/config/locales/doorkeeper.ar.yml b/config/locales/doorkeeper.ar.yml
index cd4a9cb50..7980e107a 100644
--- a/config/locales/doorkeeper.ar.yml
+++ b/config/locales/doorkeeper.ar.yml
@@ -57,7 +57,7 @@ ar:
prompt: طلبَ تطبيق %{client_name} تصريحا لاستعمال حسابك.
title: إذن بالتصريح
show:
- title: رمز الترخيص
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: إبطال التصريح
diff --git a/config/locales/doorkeeper.bg.yml b/config/locales/doorkeeper.bg.yml
index 6fafdfc55..24de4aee0 100644
--- a/config/locales/doorkeeper.bg.yml
+++ b/config/locales/doorkeeper.bg.yml
@@ -57,7 +57,7 @@ bg:
prompt: Приложението %{client_name} заявява достъп до твоя акаунт
title: Изисква се упълномощаване
show:
- title: Код за упълномощаване
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Отмяна
diff --git a/config/locales/doorkeeper.ca.yml b/config/locales/doorkeeper.ca.yml
index ef937c4e6..38dbbdde9 100644
--- a/config/locales/doorkeeper.ca.yml
+++ b/config/locales/doorkeeper.ca.yml
@@ -57,7 +57,7 @@ ca:
prompt: La aplicació %{client_name} sol⋅licita tenir accés al teu compte
title: Es requereix autorizació
show:
- title: Codi de autorització
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revocar
diff --git a/config/locales/doorkeeper.de.yml b/config/locales/doorkeeper.de.yml
index b0ba2fb98..1588e4f9e 100644
--- a/config/locales/doorkeeper.de.yml
+++ b/config/locales/doorkeeper.de.yml
@@ -57,7 +57,7 @@ de:
prompt: Soll %{client_name} für die Benutzung dieses Accounts autorisiert werden?
title: Autorisierung erforderlich
show:
- title: Autorisierungscode
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Ungültig machen
diff --git a/config/locales/doorkeeper.en.yml b/config/locales/doorkeeper.en.yml
index efbd81d43..33d544bed 100644
--- a/config/locales/doorkeeper.en.yml
+++ b/config/locales/doorkeeper.en.yml
@@ -63,7 +63,7 @@ en:
prompt: Application %{client_name} requests access to your account
title: Authorization required
show:
- title: Authorization code
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revoke
diff --git a/config/locales/doorkeeper.eo.yml b/config/locales/doorkeeper.eo.yml
index 33cc7cc19..ce39f3bd1 100644
--- a/config/locales/doorkeeper.eo.yml
+++ b/config/locales/doorkeeper.eo.yml
@@ -57,7 +57,7 @@ eo:
prompt: La aplikaĵo %{client_name} petas aliron al via konto
title: Rajtigo bezonata
show:
- title: Rajtiga kodo
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Malrajtigi
diff --git a/config/locales/doorkeeper.es.yml b/config/locales/doorkeeper.es.yml
index f3efb2301..2c3bc724c 100644
--- a/config/locales/doorkeeper.es.yml
+++ b/config/locales/doorkeeper.es.yml
@@ -57,7 +57,7 @@ es:
prompt: La aplicación %{client_name} solicita tener acceso a su cuenta
title: Se requiere autorización
show:
- title: Código de autorización
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revocar
diff --git a/config/locales/doorkeeper.fa.yml b/config/locales/doorkeeper.fa.yml
index 343580530..6a4be575e 100644
--- a/config/locales/doorkeeper.fa.yml
+++ b/config/locales/doorkeeper.fa.yml
@@ -63,7 +63,7 @@ fa:
prompt: Application %{client_name} requests access to your account
title: Authorization required
show:
- title: Authorization code
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revoke
diff --git a/config/locales/doorkeeper.fi.yml b/config/locales/doorkeeper.fi.yml
index cd1a9d058..44aceec4c 100644
--- a/config/locales/doorkeeper.fi.yml
+++ b/config/locales/doorkeeper.fi.yml
@@ -57,7 +57,7 @@ fi:
prompt: Applikaatio %{client_name} pyytää lupaa tilillesi
title: Valtuutus vaaditaan
show:
- title: Valtuutus koodi
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Evää
diff --git a/config/locales/doorkeeper.fr.yml b/config/locales/doorkeeper.fr.yml
index 487018209..3398b248d 100644
--- a/config/locales/doorkeeper.fr.yml
+++ b/config/locales/doorkeeper.fr.yml
@@ -59,7 +59,7 @@ fr:
prompt: Autoriser %{client_name} à utiliser votre compte ?
title: Autorisation requise
show:
- title: Code d’autorisation
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Annuler
diff --git a/config/locales/doorkeeper.he.yml b/config/locales/doorkeeper.he.yml
index 778902788..1d366b179 100644
--- a/config/locales/doorkeeper.he.yml
+++ b/config/locales/doorkeeper.he.yml
@@ -57,7 +57,7 @@ he :
prompt: ישום %{client_name} מבקש גישה לחשבונך
title: נדרשת הרשאה
show:
- title: קוד הרשאה
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: ביטול
diff --git a/config/locales/doorkeeper.hr.yml b/config/locales/doorkeeper.hr.yml
index 26d21c10d..e0240938e 100644
--- a/config/locales/doorkeeper.hr.yml
+++ b/config/locales/doorkeeper.hr.yml
@@ -57,7 +57,7 @@ hr:
prompt: Aplikacija %{client_name} je zatražila pristup tvom računu
title: Traži se autorizacija
show:
- title: Autorizacijski kod
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Odbij
diff --git a/config/locales/doorkeeper.hu.yml b/config/locales/doorkeeper.hu.yml
index b1c6dd6c9..583e0ad9f 100644
--- a/config/locales/doorkeeper.hu.yml
+++ b/config/locales/doorkeeper.hu.yml
@@ -57,7 +57,7 @@ hu:
prompt: "%{client_name} nevű alkalmazás engedélyt kér a fiókodhoz való hozzáféréshez."
title: Engedély szükséges
show:
- title: Engedély kódja
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Visszavonás
diff --git a/config/locales/doorkeeper.id.yml b/config/locales/doorkeeper.id.yml
index 4ae97c5df..95560ecf9 100644
--- a/config/locales/doorkeeper.id.yml
+++ b/config/locales/doorkeeper.id.yml
@@ -57,7 +57,7 @@ id:
prompt: Aplikasi %{client_name} meminta akses pada akun anda
title: Izin diperlukan
show:
- title: Kode izin
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Cabut izin
diff --git a/config/locales/doorkeeper.io.yml b/config/locales/doorkeeper.io.yml
index 8c093a9d8..28466d3ae 100644
--- a/config/locales/doorkeeper.io.yml
+++ b/config/locales/doorkeeper.io.yml
@@ -57,7 +57,7 @@ io:
prompt: Application %{client_name} requests access to your account
title: Authorization required
show:
- title: Authorization code
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revoke
diff --git a/config/locales/doorkeeper.it.yml b/config/locales/doorkeeper.it.yml
index 4b5e463b0..e5a2d3f6e 100644
--- a/config/locales/doorkeeper.it.yml
+++ b/config/locales/doorkeeper.it.yml
@@ -57,7 +57,7 @@ it:
prompt: L'applicazione %{client_name} richiede l'accesso al tuo account
title: Autorizzazione richiesta
show:
- title: Codice autorizzazione
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Disabilita
diff --git a/config/locales/doorkeeper.ja.yml b/config/locales/doorkeeper.ja.yml
index 9e3b72761..0b670fda4 100644
--- a/config/locales/doorkeeper.ja.yml
+++ b/config/locales/doorkeeper.ja.yml
@@ -63,7 +63,7 @@ ja:
prompt: アプリ %{client_name} があなたのアカウントへのアクセスを要求しています。
title: 認証が必要です。
show:
- title: 認証コード
+ title: 認証コードをコピーしてアプリに貼り付けて下さい。
authorized_applications:
buttons:
revoke: 取消
diff --git a/config/locales/doorkeeper.nl.yml b/config/locales/doorkeeper.nl.yml
index ae1f8bc52..66936d381 100644
--- a/config/locales/doorkeeper.nl.yml
+++ b/config/locales/doorkeeper.nl.yml
@@ -63,7 +63,7 @@ nl:
prompt: "%{client_name} autoriseren om uw account te gebruiken?"
title: Autorisatie vereist
show:
- title: Autorisatie-code
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Intrekken
diff --git a/config/locales/doorkeeper.no.yml b/config/locales/doorkeeper.no.yml
index 23ca61d4d..ba061e0ca 100644
--- a/config/locales/doorkeeper.no.yml
+++ b/config/locales/doorkeeper.no.yml
@@ -57,7 +57,7 @@
prompt: Applikasjon %{client_name} spør om tilgang til din konto
title: Autorisasjon påkrevd
show:
- title: Autoriserings kode
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Opphev
diff --git a/config/locales/doorkeeper.oc.yml b/config/locales/doorkeeper.oc.yml
index 8ebfe2137..1606b92c4 100644
--- a/config/locales/doorkeeper.oc.yml
+++ b/config/locales/doorkeeper.oc.yml
@@ -63,7 +63,7 @@ oc:
prompt: L’aplicacion %{client_name} demanda l’accès al vòstre compte.
title: Cal l’autorizacion
show:
- title: Còdi d’autorizacion
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revocar
diff --git a/config/locales/doorkeeper.pl.yml b/config/locales/doorkeeper.pl.yml
index ee3f4cad8..824a6be90 100644
--- a/config/locales/doorkeeper.pl.yml
+++ b/config/locales/doorkeeper.pl.yml
@@ -63,7 +63,7 @@ pl:
prompt: Aplikacja %{client_name} prosi o dostęp do Twojego konta
title: Wymagana jest autoryzacja
show:
- title: Kod autoryzacji
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Unieważnij
diff --git a/config/locales/doorkeeper.pt-BR.yml b/config/locales/doorkeeper.pt-BR.yml
index f0f3c6893..53cadec38 100644
--- a/config/locales/doorkeeper.pt-BR.yml
+++ b/config/locales/doorkeeper.pt-BR.yml
@@ -63,7 +63,7 @@ pt-BR:
prompt: O aplicativo %{client_name} solicita acesso à sua conta
title: Autorização necessária
show:
- title: Código de autorização
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revogar
diff --git a/config/locales/doorkeeper.pt.yml b/config/locales/doorkeeper.pt.yml
index 87e01ba94..30d9f7f5a 100644
--- a/config/locales/doorkeeper.pt.yml
+++ b/config/locales/doorkeeper.pt.yml
@@ -57,7 +57,7 @@ pt:
prompt: Aplicação %{client_name} pede acesso à tua conta
title: Autorização é necessária
show:
- title: Código de autorização
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Revogar
diff --git a/config/locales/doorkeeper.ru.yml b/config/locales/doorkeeper.ru.yml
index 8862936dc..2234a9bbe 100644
--- a/config/locales/doorkeeper.ru.yml
+++ b/config/locales/doorkeeper.ru.yml
@@ -57,7 +57,7 @@ ru:
prompt: Приложение %{client_name} запрашивает доступ к Вашему аккаунту
title: Требуется авторизация
show:
- title: Код авторизации
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Отозвать авторизацию
diff --git a/config/locales/doorkeeper.th.yml b/config/locales/doorkeeper.th.yml
index 29673971b..60edae1e4 100644
--- a/config/locales/doorkeeper.th.yml
+++ b/config/locales/doorkeeper.th.yml
@@ -57,7 +57,7 @@ th:
prompt: Application %{client_name} requests access to your account
title: Authorization required
show:
- title: Authorization code
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: ยกเลิกการอนุญาติ
diff --git a/config/locales/doorkeeper.uk.yml b/config/locales/doorkeeper.uk.yml
index a5289541b..d80abf01a 100644
--- a/config/locales/doorkeeper.uk.yml
+++ b/config/locales/doorkeeper.uk.yml
@@ -57,7 +57,7 @@ uk:
prompt: Податок %{client_name} просить доступу до вашого акаунту
title: Необхідна авторизація
show:
- title: Код авторизації
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: Відкликати авторизацію
diff --git a/config/locales/doorkeeper.zh-CN.yml b/config/locales/doorkeeper.zh-CN.yml
index 6db8697b8..12b38b81f 100644
--- a/config/locales/doorkeeper.zh-CN.yml
+++ b/config/locales/doorkeeper.zh-CN.yml
@@ -58,7 +58,7 @@ zh-CN:
prompt: 授权 %{client_name} 使用你的帐号?
title: 需要你授权
show:
- title: 授权码
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: 注销
diff --git a/config/locales/doorkeeper.zh-HK.yml b/config/locales/doorkeeper.zh-HK.yml
index bb44c272b..ac1e3180a 100644
--- a/config/locales/doorkeeper.zh-HK.yml
+++ b/config/locales/doorkeeper.zh-HK.yml
@@ -57,7 +57,7 @@ zh-HK:
prompt: 應用程式 %{client_name} 要求得到你用戶的部份權限
title: 需要用戶授權
show:
- title: 授權代碼
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: 取消授權
diff --git a/config/locales/doorkeeper.zh-TW.yml b/config/locales/doorkeeper.zh-TW.yml
index 7e8c78cd9..5110c8aa3 100644
--- a/config/locales/doorkeeper.zh-TW.yml
+++ b/config/locales/doorkeeper.zh-TW.yml
@@ -57,7 +57,7 @@ zh-TW:
prompt: 應用程式 %{client_name} 要求取得您帳號的部份權限
title: 需要授權
show:
- title: 授權代碼
+ title: Copy this authorization code and paste it to the application.
authorized_applications:
buttons:
revoke: 取消授權
--
cgit
From cf14f4945ac15675d5343a4d1096451a1882d8a2 Mon Sep 17 00:00:00 2001
From: febrezo
Date: Mon, 18 Sep 2017 04:52:34 +0200
Subject: Some improvements in the Spanish translation (#4991)
---
app/javascript/mastodon/locales/es.json | 62 ++++++++++++++++-----------------
1 file changed, 31 insertions(+), 31 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/es.json b/app/javascript/mastodon/locales/es.json
index 5c3314504..325ed3b26 100644
--- a/app/javascript/mastodon/locales/es.json
+++ b/app/javascript/mastodon/locales/es.json
@@ -1,7 +1,7 @@
{
"account.block": "Bloquear",
"account.block_domain": "Ocultar todo de {domain}",
- "account.disclaimer_full": "La información siguiente del usuario puede estar incompleta.",
+ "account.disclaimer_full": "La siguiente información del usuario puede estar incompleta.",
"account.edit_profile": "Editar perfil",
"account.follow": "Seguir",
"account.followers": "Seguidores",
@@ -17,9 +17,9 @@
"account.unblock": "Desbloquear",
"account.unblock_domain": "Mostrar a {domain}",
"account.unfollow": "Dejar de seguir",
- "account.unmute": "Des-silenciar a @{name}",
+ "account.unmute": "Dejar de silenciar a @{name}",
"account.view_full_profile": "Ver perfil completo",
- "boost_modal.combo": "Puedes presionar {combo} para saltearte esto la próxima",
+ "boost_modal.combo": "Puedes presionar {combo} para saltear este aviso la próxima vez",
"bundle_column_error.body": "Algo salió mal al cargar este componente.",
"bundle_column_error.retry": "Inténtalo de nuevo",
"bundle_column_error.title": "Error de red",
@@ -41,17 +41,17 @@
"column_header.moveRight_settings": "Mover columna a la derecha",
"column_header.pin": "Fijar",
"column_header.show_settings": "Mostrar ajustes",
- "column_header.unpin": "Des-fijar",
+ "column_header.unpin": "Dejar de fijar",
"column_subheading.navigation": "Navegación",
"column_subheading.settings": "Ajustes",
- "compose_form.lock_disclaimer": "Tu cuenta no está bloqueada. Todos pueden seguirte para ver tus toots de solo-seguidores.",
+ "compose_form.lock_disclaimer": "Tu cuenta no está bloqueada. Todos pueden seguirte para ver tus toots solo para seguidores.",
"compose_form.lock_disclaimer.lock": "bloqueado",
"compose_form.placeholder": "¿En qué estás pensando?",
- "compose_form.privacy_disclaimer": "Tu toot privado será enviado a usuario/s de {domains}. ¿Confías en {domainsCount, plural, one {ese servidor} other {esos servidores}}? La privacidad del toot funcionará solamente en instancias de Mastodon. Si {domains} {domainsCount, plural, one {no es una instancia de Mastodon} other {no son instancias de Mastodon}}, no habrá indicación de que tu toot es privado, y puede hacerse visible a remitentes inesperados.",
+ "compose_form.privacy_disclaimer": "Tu toot privado será enviado a usuario/s mencionados de {domains}. ¿Confías en {domainsCount, plural, one {ese servidor} other {esos servidores}}? La privacidad del toot funcionará solamente en instancias de Mastodon. Si {domains} {domainsCount, plural, one {no es una instancia de Mastodon} other {no son instancias de Mastodon}}, no habrá indicación de que tu toot es privado, y puede hacerse visible a remitentes inesperados.",
"compose_form.publish": "Tootear",
"compose_form.publish_loud": "{publish}!",
"compose_form.sensitive": "Marcar contenido como sensible",
- "compose_form.spoiler": "Ocultar texto tras advertencia",
+ "compose_form.spoiler": "Ocultar texto tras una advertencia",
"compose_form.spoiler_placeholder": "Advertencia de contenido",
"confirmation_modal.cancel": "Cancelar",
"confirmations.block.confirm": "Bloquear",
@@ -59,23 +59,23 @@
"confirmations.delete.confirm": "Eliminar",
"confirmations.delete.message": "¿Estás seguro de que quieres borrar este toot?",
"confirmations.domain_block.confirm": "Ocultar dominio entero",
- "confirmations.domain_block.message": "¿Seguro de que quieres bloquear al dominio entero? En algunos casos es más preferible bloquear/silenciar objetivos determinados.",
+ "confirmations.domain_block.message": "¿Seguro de que quieres bloquear al dominio entero? En algunos casos es preferible bloquear o silenciar objetivos determinados.",
"confirmations.mute.confirm": "Silenciar",
"confirmations.mute.message": "¿Estás seguro de que quieres silenciar a {name}?",
"confirmations.unfollow.confirm": "Dejar de seguir",
"confirmations.unfollow.message": "¿Estás seguro de que quieres dejar de seguir a {name}?",
- "embed.instructions": "Pon este toot en tu sitio web con el siguiente código.",
+ "embed.instructions": "Añade este toot a tu sitio web con el siguiente código.",
"embed.preview": "Así es como se verá:",
"emoji_button.activity": "Actividad",
"emoji_button.flags": "Marcas",
- "emoji_button.food": "Comida y Bebida",
+ "emoji_button.food": "Comida y bebida",
"emoji_button.label": "Insertar emoji",
"emoji_button.nature": "Naturaleza",
"emoji_button.objects": "Objetos",
"emoji_button.people": "Gente",
- "emoji_button.search": "Buscar...",
+ "emoji_button.search": "Buscar…",
"emoji_button.symbols": "Símbolos",
- "emoji_button.travel": "Viajes y Lugares",
+ "emoji_button.travel": "Viajes y lugares",
"empty_column.community": "La línea de tiempo local está vacía. ¡Escribe algo para empezar la fiesta!",
"empty_column.hashtag": "No hay nada en este hashtag aún.",
"empty_column.home": "No estás siguiendo a nadie aún. Visita {public} o haz búsquedas para empezar y conocer gente nueva.",
@@ -89,7 +89,7 @@
"getting_started.faq": "FAQ",
"getting_started.heading": "Primeros pasos",
"getting_started.open_source_notice": "Mastodon es software libre. Puedes contribuir o reportar errores en {github}.",
- "getting_started.userguide": "Guía del Usuario",
+ "getting_started.userguide": "Guía de usuario",
"home.column_settings.advanced": "Avanzado",
"home.column_settings.basic": "Básico",
"home.column_settings.filter_regex": "Filtrar con expresiones regulares",
@@ -99,7 +99,7 @@
"lightbox.close": "Cerrar",
"lightbox.next": "Siguiente",
"lightbox.previous": "Anterior",
- "loading_indicator.label": "Cargando...",
+ "loading_indicator.label": "Cargando…",
"media_gallery.toggle_visible": "Cambiar visibilidad",
"missing_indicator.label": "No encontrado",
"navigation_bar.blocks": "Usuarios bloqueados",
@@ -130,21 +130,21 @@
"notifications.column_settings.sound": "Reproducir sonido",
"onboarding.done": "Listo",
"onboarding.next": "Siguiente",
- "onboarding.page_five.public_timelines": "La línea de tiempo local muestra toots públicos de todos en {domain}. La línea de tiempo federada muestra toots públicos de la gente que sigue la gente de {domain}. Estas son las Líneas de Tiempo Públicas, una gran manera de conocer gente nueva.",
+ "onboarding.page_five.public_timelines": "La línea de tiempo local muestra toots públicos de todos en {domain}. La línea de tiempo federada muestra toots públicos de cualquiera a quien la gente de {domain} siga. Estas son las líneas de tiempo públicas, una buena forma de conocer gente nueva.",
"onboarding.page_four.home": "La línea de tiempo principal muestra toots de gente que sigues.",
- "onboarding.page_four.notifications": "Las notificaciones muestran cuando alguien interactúa contigo.",
- "onboarding.page_one.federation": "Mastodon es una red de servidores tratando de hacer una red social más grande. Llamamos a estos servidores instancias.",
+ "onboarding.page_four.notifications": "Las notificaciones se muestran cuando alguien interactúa contigo.",
+ "onboarding.page_one.federation": "Mastodon es una red de servidores federados que conforman una red social aún más grande. Llamamos a estos servidores instancias.",
"onboarding.page_one.handle": "Estás en {domain}, así que tu nombre de usuario completo es {handle}",
"onboarding.page_one.welcome": "¡Bienvenido a Mastodon!",
"onboarding.page_six.admin": "El administrador de tu instancia es {admin}.",
- "onboarding.page_six.almost_done": "Ya casi...",
+ "onboarding.page_six.almost_done": "Ya casi…",
"onboarding.page_six.appetoot": "¡Bon Appetoot!",
"onboarding.page_six.apps_available": "Hay {apps} disponibles para iOS, Android y otras plataformas.",
"onboarding.page_six.github": "Mastodon es software libre. Puedes reportar errores, pedir funciones nuevas, o contribuir al código en {github}.",
"onboarding.page_six.guidelines": "guías de la comunidad",
"onboarding.page_six.read_guidelines": "¡Por favor lee las {guidelines} de {domain}!",
"onboarding.page_six.various_app": "aplicaciones móviles",
- "onboarding.page_three.profile": "Edita tu perfil para cambiar tu avatar, biografía, y nombre de cabecera. Ahí, también encontrarás otros ajustes.",
+ "onboarding.page_three.profile": "Edita tu perfil para cambiar tu avatar, biografía y nombre de cabecera. Ahí, también encontrarás otros ajustes.",
"onboarding.page_three.search": "Usa la barra de búsqueda y revisa hashtags, como {illustration} y {introductions}. Para ver a alguien que no es de tu propia instancia, usa su nombre de usuario completo.",
"onboarding.page_two.compose": "Escribe toots en la columna de redacción. Puedes subir imágenes, cambiar ajustes de privacidad, y añadir advertencias de contenido con los siguientes íconos.",
"onboarding.skip": "Saltar",
@@ -166,10 +166,10 @@
"standalone.public_title": "Un pequeño vistazo...",
"status.cannot_reblog": "Este toot no puede retootearse",
"status.delete": "Borrar",
- "status.embed": "Embed",
+ "status.embed": "Incrustado",
"status.favourite": "Favorito",
"status.load_more": "Cargar más",
- "status.media_hidden": "Media oculta",
+ "status.media_hidden": "Contenido multimedia oculto",
"status.mention": "Mencionar",
"status.mute_conversation": "Silenciar conversación",
"status.open": "Expandir estado",
@@ -179,13 +179,13 @@
"status.reply": "Responder",
"status.replyAll": "Responder al hilo",
"status.report": "Reportar",
- "status.sensitive_toggle": "Click para ver",
+ "status.sensitive_toggle": "Haz clic para ver",
"status.sensitive_warning": "Contenido sensible",
"status.share": "Compartir",
"status.show_less": "Mostrar menos",
"status.show_more": "Mostrar más",
- "status.unmute_conversation": "Des-silenciar conversación",
- "status.unpin": "Des-fijar",
+ "status.unmute_conversation": "Dejar de silenciar conversación",
+ "status.unpin": "Dejar de fijar",
"tabs_bar.compose": "Redactar",
"tabs_bar.federated_timeline": "Federado",
"tabs_bar.home": "Inicio",
@@ -194,18 +194,18 @@
"upload_area.title": "Arrastra y suelta para subir",
"upload_button.label": "Subir multimedia",
"upload_form.undo": "Deshacer",
- "upload_progress.label": "Subiendo...",
+ "upload_progress.label": "Subiendo…",
"video.close": "Cerrar video",
"video.exit_fullscreen": "Salir de pantalla completa",
- "video.expand": "Expandir video",
+ "video.expand": "Expandir vídeo",
"video.fullscreen": "Pantalla completa",
- "video.hide": "Ocultar video",
+ "video.hide": "Ocultar vídeo",
"video.mute": "Silenciar sonido",
"video.pause": "Pausar",
"video.play": "Reproducir",
- "video.unmute": "Des-silenciar sonido",
- "video_player.expand": "Expandir video",
- "video_player.toggle_sound": "Act/Desac. sonido",
+ "video.unmute": "Dejar de silenciar sonido",
+ "video_player.expand": "Expandir vídeo",
+ "video_player.toggle_sound": "Activar/Desactivar sonido",
"video_player.toggle_visible": "Cambiar visibilidad",
- "video_player.video_error": "No se pudo reproducir el video"
+ "video_player.video_error": "No se pudo reproducir el vídeo"
}
--
cgit
From 6db034a866b78e4e98b122461ca84763f0104381 Mon Sep 17 00:00:00 2001
From: unarist
Date: Tue, 19 Sep 2017 04:25:40 +0900
Subject: Re-allow underscore on valid_url_path_ending_chars (#4999)
Limiting allowed characters in the last character of the URL is came from twitter-text, but underscore is allowed on there, and Mastodon before #4941.
---
app/javascript/mastodon/features/compose/util/url_regex.js | 2 +-
config/initializers/twitter_regex.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/features/compose/util/url_regex.js b/app/javascript/mastodon/features/compose/util/url_regex.js
index c15b9696a..e676d1879 100644
--- a/app/javascript/mastodon/features/compose/util/url_regex.js
+++ b/app/javascript/mastodon/features/compose/util/url_regex.js
@@ -172,7 +172,7 @@ export const urlRegex = (function() {
, 'i');
// Valid end-of-path chracters (so /foo. does not gobble the period).
// 1. Allow = for empty URL parameters and other URL-join artifacts
- regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}_~&\|@]|(?:#{validUrlBalancedParens})/i);
+ regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i);
// Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
regexen.validUrlPath = regexSupplant('(?:' +
'(?:' +
diff --git a/config/initializers/twitter_regex.rb b/config/initializers/twitter_regex.rb
index 5a0723d24..e924fac22 100644
--- a/config/initializers/twitter_regex.rb
+++ b/config/initializers/twitter_regex.rb
@@ -2,7 +2,7 @@ module Twitter
class Regex
REGEXEN[:valid_general_url_path_chars] = /[^\p{White_Space}\(\)\?]/iou
- REGEXEN[:valid_url_path_ending_chars] = /[^\p{White_Space}\(\)\?!\*';:=\,\.\$%\[\]\p{Pd}_~&\|@]|(?:#{REGEXEN[:valid_url_balanced_parens]})/iou
+ REGEXEN[:valid_url_path_ending_chars] = /[^\p{White_Space}\(\)\?!\*';:=\,\.\$%\[\]\p{Pd}~&\|@]|(?:#{REGEXEN[:valid_url_balanced_parens]})/iou
REGEXEN[:valid_url_balanced_parens] = /
\(
(?:
--
cgit
From 3d640dc8ac1142c91978fc01e985a3dc5f7c8055 Mon Sep 17 00:00:00 2001
From: Nolan Lawson
Date: Mon, 18 Sep 2017 14:29:15 -0700
Subject: Add will-change to improve scrolling perf (#5001)
---
app/javascript/styles/components.scss | 1 +
1 file changed, 1 insertion(+)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index d323c2ff0..31341fd0a 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -1587,6 +1587,7 @@
overflow-x: hidden;
flex: 1 1 auto;
-webkit-overflow-scrolling: touch;
+ will-change: transform; // improves perf in mobile Chrome
&.optionally-scrollable {
overflow-y: auto;
--
cgit
From c155d843f4d523d52ce4ce67491578385c06fd1b Mon Sep 17 00:00:00 2001
From: BruWalfas
Date: Mon, 18 Sep 2017 19:47:48 -0300
Subject: A few updates to the Spanish translation and some typos fixing
(#4997)
* So Spanish. Much changes. Wow.
* Some little fixes
* Updated es.yml, and fixed some ortographical errors
* Some little changes to simple_form.es.yml
* Yeah, so much translations
* Spanish e-mail messages
* Remove unused message
---
app/javascript/mastodon/locales/es.json | 12 +-
.../confirmation_instructions.es.html.erb | 12 +
.../confirmation_instructions.es.text.erb | 12 +
app/views/user_mailer/password_change.es.html.erb | 3 +
app/views/user_mailer/password_change.es.text.erb | 3 +
.../reset_password_instructions.es.html.erb | 8 +
.../reset_password_instructions.es.text.erb | 8 +
config/locales/doorkeeper.es.yml | 9 +-
config/locales/es.yml | 411 ++++++++++++++++++++-
config/locales/simple_form.es.yml | 13 +-
10 files changed, 474 insertions(+), 17 deletions(-)
create mode 100644 app/views/user_mailer/confirmation_instructions.es.html.erb
create mode 100644 app/views/user_mailer/confirmation_instructions.es.text.erb
create mode 100644 app/views/user_mailer/password_change.es.html.erb
create mode 100644 app/views/user_mailer/password_change.es.text.erb
create mode 100644 app/views/user_mailer/reset_password_instructions.es.html.erb
create mode 100644 app/views/user_mailer/reset_password_instructions.es.text.erb
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/locales/es.json b/app/javascript/mastodon/locales/es.json
index 325ed3b26..5182b5094 100644
--- a/app/javascript/mastodon/locales/es.json
+++ b/app/javascript/mastodon/locales/es.json
@@ -5,16 +5,16 @@
"account.edit_profile": "Editar perfil",
"account.follow": "Seguir",
"account.followers": "Seguidores",
- "account.follows": "Seguir",
+ "account.follows": "Sigue",
"account.follows_you": "Te sigue",
"account.media": "Media",
- "account.mention": "Mencionar",
- "account.mute": "Silenciar",
+ "account.mention": "Mencionar a @{name}",
+ "account.mute": "Silenciar a @{name}",
"account.posts": "Publicaciones",
"account.report": "Reportar a @{name}",
"account.requested": "Esperando aprobación",
"account.share": "Compartir el perfil de @{name}",
- "account.unblock": "Desbloquear",
+ "account.unblock": "Desbloquear a @{name}",
"account.unblock_domain": "Mostrar a {domain}",
"account.unfollow": "Dejar de seguir",
"account.unmute": "Dejar de silenciar a @{name}",
@@ -27,9 +27,9 @@
"bundle_modal_error.message": "Algo salió mal al cargar este componente.",
"bundle_modal_error.retry": "Inténtalo de nuevo",
"column.blocks": "Usuarios bloqueados",
- "column.community": "Historia local",
+ "column.community": "Línea de tiempo local",
"column.favourites": "Favoritos",
- "column.follow_requests": "Solicitudes para seguirte",
+ "column.follow_requests": "Solicitudes de seguimiento",
"column.home": "Inicio",
"column.mutes": "Usuarios silenciados",
"column.notifications": "Notificaciones",
diff --git a/app/views/user_mailer/confirmation_instructions.es.html.erb b/app/views/user_mailer/confirmation_instructions.es.html.erb
new file mode 100644
index 000000000..1d46a12c0
--- /dev/null
+++ b/app/views/user_mailer/confirmation_instructions.es.html.erb
@@ -0,0 +1,12 @@
+¡Bienvenido, <%= @resource.email %>!
+
+Acabas de crear una cuenta en <%= @instance %>.
+
+Para confirmar tu registro, por favor ingresa al siguiente enlace:
+<%= link_to 'Confirmar mi cuenta', confirmation_url(@resource, confirmation_token: @token) %>
+
+
También revisa nuestros <%= link_to 'términos y condiciones', terms_url %>.
+
+Sinceramente,
+
+
El equipo de <%= @instance %>
\ No newline at end of file
diff --git a/app/views/user_mailer/confirmation_instructions.es.text.erb b/app/views/user_mailer/confirmation_instructions.es.text.erb
new file mode 100644
index 000000000..e9d83b3f8
--- /dev/null
+++ b/app/views/user_mailer/confirmation_instructions.es.text.erb
@@ -0,0 +1,12 @@
+¡Bienvenido, <%= @resource.email %>!
+
+Acabas de crear una cuenta en <%= @instance %>.
+
+Para confirmar tu registro, por favor ingresa al siguiente enlace:
+<%= confirmation_url(@resource, confirmation_token: @token) %>
+
+Por favor, también revisa nuestros términos y condiciones <%= terms_url %>
+
+Sinceramente,
+
+El equipo de <%= @instance %>
\ No newline at end of file
diff --git a/app/views/user_mailer/password_change.es.html.erb b/app/views/user_mailer/password_change.es.html.erb
new file mode 100644
index 000000000..0a9eb4c4c
--- /dev/null
+++ b/app/views/user_mailer/password_change.es.html.erb
@@ -0,0 +1,3 @@
+¡Hola, <%= @resource.email %>!
+
+Te contactamos para notificarte que tu contraseña en <%= @instance %> ha sido modificada.
\ No newline at end of file
diff --git a/app/views/user_mailer/password_change.es.text.erb b/app/views/user_mailer/password_change.es.text.erb
new file mode 100644
index 000000000..192faf9ad
--- /dev/null
+++ b/app/views/user_mailer/password_change.es.text.erb
@@ -0,0 +1,3 @@
+¡Hola, <%= @resource.email %>!
+
+Te contactamos para notificarte que tu contraseña en <%= @instance %> ha sido modificada.
\ No newline at end of file
diff --git a/app/views/user_mailer/reset_password_instructions.es.html.erb b/app/views/user_mailer/reset_password_instructions.es.html.erb
new file mode 100644
index 000000000..4eeb6601d
--- /dev/null
+++ b/app/views/user_mailer/reset_password_instructions.es.html.erb
@@ -0,0 +1,8 @@
+¡Hola, <%= @resource.email %>!
+
+Alguien pidió un enlace para cambiar tu contraseña en <%= @instance %>. Puedes hacer esto con el siguiente enlace.
+
+<%= link_to 'Cambiar mi contraseña', edit_password_url(@resource, reset_password_token: @token) %>
+
+Si no fuiste tú, por favor ignora este mensaje.
+Tu contraseña no cambiará hasta que ingreses al enlace y crees una nueva.
diff --git a/app/views/user_mailer/reset_password_instructions.es.text.erb b/app/views/user_mailer/reset_password_instructions.es.text.erb
new file mode 100644
index 000000000..8abafcc99
--- /dev/null
+++ b/app/views/user_mailer/reset_password_instructions.es.text.erb
@@ -0,0 +1,8 @@
+¡Hola, <%= @resource.email %>!
+
+Alguien pidió un enlace para cambiar tu contraseña en <%= @instance %>. Puedes hacer esto con el siguiente enlace.
+
+<%= edit_password_url(@resource, reset_password_token: @token) %>
+
+Si no fuiste tú, por favor ignora este mensaje.
+Tu contraseña no cambiará hasta que ingreses al enlace y crees una nueva.
diff --git a/config/locales/doorkeeper.es.yml b/config/locales/doorkeeper.es.yml
index 2c3bc724c..af21ab76d 100644
--- a/config/locales/doorkeeper.es.yml
+++ b/config/locales/doorkeeper.es.yml
@@ -5,6 +5,8 @@ es:
doorkeeper/application:
name: Nombre
redirect_uri: URI para redirección
+ scopes: Ámbitos
+ website: Sitio web
errors:
models:
doorkeeper/application:
@@ -33,16 +35,20 @@ es:
redirect_uri: Utilice una línea por URI
scopes: Separe los ámbitos con espacios. Déjelo en blanco para utilizar los ámbitos por defecto.
index:
+ application: Aplicación
callback_url: Callback URL
+ delete: Eliminar
name: Nombre
new: Nueva aplicación
+ scopes: Ámbitos
+ show: Mostrar
title: Sus aplicaciones
new:
title: Nueva aplicación
show:
actions: Acciones
application_id: Id de la aplicación
- callback_urls: Callback urls
+ callback_urls: Callback URLs
scopes: Ámbitos
secret: Secreto
title: 'Aplicación: %{name}'
@@ -67,6 +73,7 @@ es:
application: Aplicación
created_at: Creado el
date_format: "%A-%m-%d %H:%M:%S"
+ scopes: Ámbitos
title: Sus aplicaciones autorizadas
errors:
messages:
diff --git a/config/locales/es.yml b/config/locales/es.yml
index a02330521..6e544e19d 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -5,33 +5,249 @@ es:
about_this: Acerca de esta instancia
closed_registrations: Los registros están actualmente cerrados en esta instancia.
contact: Contacto
+ contact_missing: No especificado
+ contact_unavailable: N/A
description_headline: "¿Qué es %{domain}?"
domain_count_after: otras instancias
domain_count_before: Conectado a
+ extended_description_html: |
+ Un buen lugar para las reglas
+ La descripción extendida no se ha colocado aún.
+ features:
+ humane_approach_body: Aprendiendo de los errores de otras redes, Mastodon apunta a las decisiones de diseño ético para combatir el desuso de las redes sociales.
+ humane_approach_title: Una misión más humana
+ not_a_product_body: Mastodon no es una red comercial. Nada de publicidad, nada de minado de datos, nada de jardines murados. No hay ninguna autoridad central.
+ not_a_product_title: Eres una persona, no un producto
+ real_conversation_body: Con 500 caracteres a tu disposición y soporte para contenido granular y advertencias de contenido, puedes expresarte como quieras.
+ real_conversation_title: Hecho para verdaderas conversaciones
+ within_reach_body: Aplicaciones múltiples para iOS, Android, y otras plataformas gracias a un ecosistema de APIs amigable al desarrollador para permitirte estar con tus amigos donde sea.
+ within_reach_title: Always within reach
+ find_another_instance: Busca otra instancia
+ generic_description: "%{domain} es un servidor en la red"
+ hosted_on: Mastodon hosteado en %{domain}
+ learn_more: Aprende más
other_instances: Otras instancias
source_code: Código fuente
status_count_after: estados
- status_count_before: Que han escrito
+ status_count_before: Qué han escrito
user_count_after: usuarios registrados
user_count_before: Tenemos
+ what_is_mastodon: ¿Qué es Mastodon?
accounts:
follow: Seguir
followers: Seguidores
following: Siguiendo
+ media: Media
nothing_here: "¡No hay nada aquí!"
people_followed_by: Usuarios a quien %{name} sigue
people_who_follow: Usuarios que siguen a %{name}
posts: Toots
+ posts_with_replies: Toots con respuestas
remote_follow: Seguir
+ reserved_username: El nombre de usuario está reservado
+ roles:
+ admin: Administrador
unfollow: Dejar de seguir
+ admin:
+ accounts:
+ are_you_sure: ¿Estás seguro?
+ confirm: Confirmar
+ confirmed: Confirmado
+ disable_two_factor_authentication: Desactivar autenticación de dos factores
+ display_name: Nombre
+ domain: Dominio
+ edit: Editar
+ email: E-mail
+ feed_url: URL de notificaciones
+ followers: Seguidores
+ followers_url: URL de los seguidores
+ follows: Sigue
+ inbox_url: URL de la bandeja de entrada
+ ip: IP
+ location:
+ all: Todos
+ local: Local
+ remote: Remoto
+ title: Localización
+ media_attachments: Multimedia
+ moderation:
+ all: Todos
+ silenced: Silenciados
+ suspended: Suspendidos
+ title: Moderación
+ most_recent_activity: Actividad más reciente
+ most_recent_ip: IP más reciente
+ not_subscribed: No se está suscrito
+ order:
+ alphabetic: Alfabético
+ most_recent: Más reciente
+ title: Orden
+ outbox_url: URL de bandeja de salida
+ perform_full_suspension: Performar suspensión completa
+ profile_url: URL del perfil
+ protocol: Protocolo
+ public: Público
+ push_subscription_expires: Expiración de la suscripción PuSH
+ redownload: Refrescar avatar
+ reset: Reiniciar
+ reset_password: Reiniciar contraseña
+ resubscribe: Re-suscribir
+ salmon_url: URL de salmón
+ search: Buscar
+ shared_inbox_url: URL de bandeja compartida
+ show:
+ created_reports: Reportes hechos por esta cuenta
+ report: reportar
+ targeted_reports: Reportes hechos sobre esta cuenta
+ silence: Silenciar
+ statuses: Estados
+ subscribe: Suscribir
+ title: Cuentas
+ undo_silenced: Des-silenciar
+ undo_suspension: Des-suspender
+ unsubscribe: Desuscribir
+ username: Nombre de usuario
+ web: Web
+ domain_blocks:
+ add_new: Añadir nuevo
+ created_msg: El bloque de dominio está siendo procesado
+ destroyed_msg: El bloque de dominio se deshizo
+ domain: Dominio
+ new:
+ create: Crear bloque
+ hint: El bloque de dominio no prevendrá la creación de entradas de cuenta en la base de datos, pero aplicará retroactiva y automáticamente métodos de moderación específica en dichas cuentas.
+ severity:
+ desc_html: "Silenciar hará los posts de la cuenta invisibles a cualquiera que no lo esté siguiendo. Suspender eliminará todo el contenido, media, y datos del perfil. Usa Ninguno si solo quieres rechazar archivos multimedia."
+ noop: Ninguno
+ silence: Silenciar
+ suspend: Suspender
+ title: Nuevo bloque de dominio
+ reject_media: Rechazar archivos multimedia
+ reject_media_hint: Remueve localmente archivos multimedia almacenados para descargar cualquiera en el futuro. Irrelevante para suspensiones
+ severities:
+ noop: Ninguno
+ silence: Silenciar
+ suspend: Suspender
+ severity: Severidad
+ show:
+ affected_accounts:
+ one: Una cuenta en la base de datos afectada
+ other: "%{count} cuentas en la base de datos afectadas"
+ retroactive:
+ silence: Des-silenciar todas las cuentas existentes de este dominio
+ suspend: Des-suspender todas las cuentas existentes de este dominio
+ title: Deshacer bloque de dominio para %{domain}
+ undo: Deshacer
+ title: Bloques de Dominio
+ undo: Deshacer
+ instances:
+ account_count: Cuentas conocidas
+ domain_name: Dominio
+ reset: Reiniciar
+ search: Buscar
+ title: Instancias conocidas
+ reports:
+ action_taken_by: Acción tomada por
+ are_you_sure: ¿Estás seguro?
+ comment:
+ label: Comentario
+ none: Ninguno
+ delete: Eliminar
+ id: ID
+ mark_as_resolved: Marcar como resuelto
+ nsfw:
+ 'false': Mostrar multimedia
+ 'true': Ocultar multimedia
+ report: 'Reportar #%{id}'
+ report_contents: Contenido
+ reported_account: Cuenta reportada
+ reported_by: Reportado por
+ resolved: Resuelto
+ silence_account: Silenciar cuenta
+ status: Estado
+ suspend_account: Suspender cuenta
+ target: Objetivo
+ title: Reportes
+ unresolved: No resuelto
+ view: Ver
+ settings:
+ bootstrap_timeline_accounts:
+ desc_html: Separa nombres de usuarios múltiples con coma. Solo funcionará con cuentas desbloqueadas. Si está vacío, el predeterminado son todos los administradores locales
+ title: Seguimientos predeterminados para usuarios nuevos
+ contact_information:
+ email: Correo de trabajo
+ username: Nombre de usuario
+ registrations:
+ closed_message:
+ desc_html: Se muestra en la portada cuando los registros están cerrados. Puedes usar tags HTML
+ title: Mensaje de registro cerrado
+ deletion:
+ desc_html: Permite a cualquiera a eliminar su cuenta
+ title: Eliminación de cuenta abierta
+ open:
+ desc_html: Permite a cualquiera a registrar una cuenta
+ title: Registro abierto
+ site_description:
+ desc_html: Párrafo introductorio en la portada y en meta tags. Puedes usar tags HTML, en particular <a>
y <em>
.
+ title: Descripción de instancia
+ site_description_extended:
+ desc_html: Un buen lugar para tu código de conducta, reglas, guías y otras cosas que estén impuestas aparte en tu instancia. Puedes usar tags HTML
+ title: Información extendida personalizada
+ site_terms:
+ desc_html: Puedes escribir tus propias políticas de privacidad, términos de servicio u otras legalidades. Puedes usar tags HTML
+ title: Términos de servicio personalizados
+ site_title: Nombre de instancia
+ thumbnail:
+ desc_html: Se usa para muestras con OpenGraph y APIs. Se recomienda 1200x630px
+ title: Portada de instancia
+ timeline_preview:
+ desc_html: Mostrar línea de tiempo pública en la portada
+ title: Previsualización
+ title: Ajustes del sitio
+ statuses:
+ back_to_account: Volver a la cuenta
+ batch:
+ delete: Eliminar
+ nsfw_off: NSFW OFF
+ nsfw_on: NSFW ON
+ execute: Ejecutar
+ failed_to_execute: Falló al ejecutar
+ media:
+ hide: Ocultar multimedia
+ show: Mostrar multimedia
+ title: Multimedia
+ no_media: No hay multimedia
+ title: Estado de las cuentas
+ with_media: Con multimedia
+ subscriptions:
+ callback_url: URL del callback
+ confirmed: Confirmado
+ expires_in: Expira en
+ last_delivery: Última entrega
+ title: WebSub
+ topic: Tópico
+ title: Administración
+ admin_mailer:
+ new_report:
+ body: "%{reporter} ha reportado a %{target}"
+ subject: Nuevo reporte para la %{instance} (#%{id})
application_mailer:
settings: 'Cambiar preferencias de correo: %{link}'
signature: Notificaciones de Mastodon desde %{instance}
view: 'Vista:'
applications:
+ created: Aplicación creada exitosamente
+ destroyed: Apicación eliminada exitosamente
+ regenerate_token: Regenerar token de acceso
+ token_regenerated: Token de acceso regenerado exitosamente
+ warning: Ten mucho cuidado con estos datos. ¡No los compartas con nadie!
+ your_token: Tu token de acceso
invalid_url: La URL proporcionada es incorrecta
auth:
+ agreement_html: Al registrarte aceptas nuestros y términos y condiciones del servicio y nuestras políticas de privacidda .
change_password: Cambiar contraseña
+ delete_account_html: Si desea eliminar su cuenta, puede proceder aquí . Será pedido de una confirmación.
+ invalid_reset_password_token: El token de reinicio de contraseña es inválido o expiró. Por favor pide uno nuevo.
didnt_get_confirmation: "¿No recibió el correo de confirmación?"
forgot_password: "¿Olvidaste tu contraseña?"
login: Iniciar sesión
@@ -43,7 +259,13 @@ es:
authorize_follow:
error: Desafortunadamente, ha ocurrido un error buscando la cuenta remota
follow: Seguir
- title: Seguir %{acct}
+ follow_request: 'Tienes una solicitud de seguimiento de:'
+ following: '¡Éxito! Ahora estás siguiendo a:'
+ post_follow:
+ close: O, puedes simplemente cerrar esta ventana.
+ return: Regresar al perfil del usuario
+ web: Ir al sitio web
+ title: Seguir a %{acct}
datetime:
distance_in_words:
about_x_hours: "%{count}h"
@@ -58,14 +280,43 @@ es:
x_minutes: "%{count}m"
x_months: "%{count}m"
x_seconds: "%{count}s"
+ deletes:
+ bad_password_msg: ¡Buen intento, hackers! Contraseña incorrecta
+ confirm_password: Ingresa tu contraseña actual para demostrar tu identidad
+ description_html: Esto removerá el contenido de tu cuenta y la desactivará permanente e irrevesiblemente . Tu nombre de usuario quedará reservado para prevenir futuros robos de identidad.
+ proceed: Eliminar cuenta
+ success_msg: Tu cuenta se eliminó con éxito
+ warning_html: Se garantiza únicamente la eliminación del contenido de esta instancia. El contenido que se haya compartido extensamente dejará sus huellas. Los servidores fuera de línea y los que se hayan desuscrito de tus actualizaciones ya no actualizarán sus bases de datos.
+ warning_title: Disponibilidad diseminada del contenido
+ errors:
+ '403': No tienes permiso para acceder a esta página.
+ '404': La página que estabas buscando no existe.
+ '410': La página que estabas buscando no existe más.
+ '422':
+ content: Verificación de seguridad fallida. ¿Estás bloqueando algunas cookies?
+ title: Verificación de seguridad fallida
+ '429': Asfixiado
+ noscript_html: Para usar la aplicación web de Mastodon, por favor activa Javascript. Alternativamente, prueba alguna de las aplicaciones nativas para Mastodon para tu plataforma.
exports:
blocks: Personas que has bloqueado
csv: CSV
follows: Personas que sigues
storage: Almacenamiento
+ followers:
+ domain: Dominio
+ explanation_html: Si deseas asegurar la privacidad de tus estados, tienes que cuidarte de quién te sigue. Tus estados privados son enviados a todas las instancias de tus seguidores . Puede que desees revisarlas, y remover seguidores si no confías en tu privacidad para ser respetado por el staff o software de esas instancias.
+ followers_count: Número de seguidores
+ lock_link: Bloquear tu cuenta
+ purge: Remover de los seguidores
+ success:
+ one: En el proceso de bloquear suavemente usuarios de un solo dominio...
+ other: En el proceso de bloquear suavemente usuarios de %{count} dominios...
+ true_privacy_html: Por favor ten en cuenta que la verdadera privacidad se consigue con encriptación de punto a punto .
+ unlocked_warning_html: Todos pueden seguirte para ver tus estados privados inmediatamente. %{lock_link} para poder chequear y rechazar seguidores.
+ unlocked_warning_title: Tu cuenta no está bloqueada
generic:
changes_saved_msg: "¡Cambios guardados con éxito!"
- powered_by: powered by %{link}
+ powered_by: gracias a %{link}
save_changes: Guardar cambios
validation_errors:
one: "¡Algo no está bien! Por favor, revisa el error"
@@ -76,9 +327,10 @@ es:
types:
blocking: Lista de bloqueados
following: Lista de seguidos
+ muting: Lista de silenciados
upload: Cargar
landing_strip_html: "%{name} es un usuario en %{link_to_root_path}. Puedes seguirlo(a) o interactuar con el o ella si tienes una cuenta en cualquier parte del fediverse."
- landing_strip_signup_html: Si no tienes una, puedes registrar aquí .
+ landing_strip_signup_html: Si no tienes una, puedes registrarte aquí .
media_attachments:
validations:
images_and_video: No se puede adjuntar un video a un estado que ya contenga imágenes
@@ -88,8 +340,8 @@ es:
body: 'Un resumen de lo que te perdiste en %{instance} desde tu última visita el %{since}:'
mention: "%{name} te ha mencionado en:"
new_followers_summary:
- one: "¡Hurra!. Alguien más te ha comenzado a seguir"
- other: "¡Genial!. Te han seguido %{count} nuevas personas"
+ one: "¡Hurra! Alguien más te ha comenzado a seguir"
+ other: "¡Genial! Te han seguido %{count} nuevas personas"
subject:
one: "1 nueva notificación desde tu última visita \U0001F418"
other: "%{count} nuevas notificaciones desde tu última visita \U0001F418"
@@ -122,11 +374,65 @@ es:
pagination:
next: Próximo
prev: Anterior
+ truncate: "…"
+ push_notifications:
+ favourite:
+ title: "%A {name} le gustó tu estado"
+ follow:
+ title: "%{name} te ha empezado a seguir"
+ group:
+ title: "%{count} notificaciones"
+ mention:
+ action_boost: Boost
+ action_expand: Mostrar más
+ action_favourite: Me Gusta
+ title: "%{name} te mencionó"
+ reblog:
+ title: "%{name} boosteó tu estado"
remote_follow:
acct: Ingesa el usuario@dominio de la persona que quieres seguir
missing_resource: No se pudo encontrar la URL de redirección necesaria para su cuenta.
proceed: Proceder a seguir
prompt: 'Vas a seguir a:'
+ sessions:
+ activity: Última actividad
+ browser: Navegador
+ browsers:
+ alipay: Alipay
+ blackberry: Blackberry
+ chrome: Chrome
+ edge: Microsoft Edge
+ firefox: Firefox
+ generic: Desconocido
+ ie: Internet Explorer
+ micro_messenger: MicroMessenger
+ nokia: Nokia S40 Ovi Browser
+ opera: Opera
+ phantom_js: PhantomJS
+ qq: QQ Browser
+ safari: Safari
+ uc_browser: UCBrowser
+ weibo: Weibo
+ current_session: Sesión actual
+ description: "%{browser} en %{platform}"
+ explanation: Estos son los navegadores web conectados actualmente en tu cuenta de Mastodon.
+ ip: IP
+ platforms:
+ adobe_air: Adobe Air
+ android: Android
+ blackberry: Blackberry
+ chrome_os: ChromeOS
+ firefox_os: Firefox OS
+ ios: iOS
+ linux: Linux
+ mac: Mac
+ other: Desconocido
+ windows: Windows
+ windows_mobile: Windows Mobile
+ windows_phone: Windows Phone
+ revoke: Revoke
+ revoke_success: Sesión revocada exitosamente
+ title: Sesiones
settings:
authorized_apps: Aplicaciones autorizadas
back: Volver al inicio
@@ -136,26 +442,115 @@ es:
preferences: Preferencias
settings: Ajustes
two_factor_authentication: Autenticación de dos factores
+ your_apps: Tus aplicaciones
statuses:
open_in_web: Abrir en web
over_character_limit: Límite de caracteres de %{max} superado
+ pin_errors:
+ limit: Demasiados toots fijados
+ ownership: El toot de alguien más no puede fijarse
+ private: Los toots no-públicos no pueden fijarse
+ reblog: Un boost no puede fijarse
show_more: Mostrar más
visibilities:
private: Sólo mostrar a seguidores
+ private_long: Solo mostrar a tus seguidores
public: Público
+ public_long: Todos pueden ver
unlisted: Público, pero no mostrar en la historia federada
+ unlisted_long: Todos pueden ver, pero no está listado en las líneas de tiempo públicas
stream_entries:
click_to_show: Click para mostrar
reblogged: retooteado
sensitive_content: Contenido sensible
+ pinned: Toot fijado
+ terms:
+ body_html: |
+ Políticas de privacidad
+
+ ¿Qué información recolectamos?
+
+ Recolectamos información tuya cuando te registras en nuestro sitio y adquirimos datos cuando participas en el foro leyendo, escribiendo, y evaluando el contenido compartido aquí.
+
+ Cuando te registras en nuestro sitio, puede que se te pida tu nombre y dirección de correo electrónico. De todas formas, puedes visitar nuestro sitio sin registrarte. Tu dirección de correo electrónico será verificada por un e-mail conteniendo un enlace único. Si ese enlace es visitado, sabemos que tú controlas esa dirección.
+
+ Cuando te registras y posteas, grabamos la IP de la que se origina esa acción. También puede que retengamos logs del servidor, que incluyen la dirección IP de todos los pedidos a nuestro servidor.
+
+ ¿Para qué usamos tu información?
+
+ Toda la información que recolectamos de ti puede usarse en una de las siguientes maneras:
+
+
+ Para personalizar tu experiencia — tu información nos ayuda a responder mejor tus necesidades individuales.
+ Para mejorar nuestro sitio — nos esforzamos continuamente en mejorar nuestras ofertas del sitio basándonos en la información y apoyo que recibimos de ti.
+ Para mejorar el servicio al cliente — tu información nos ayuda a responder más efectivamente al servicio al cliente y otras necesidades.
+ Para enviar e-mails periódicos — la dirección de e-mail que provees puede usarse para enviarte información, notificaciones que pides sobre cambios en tópicos o en respuesta a tu nombre de usuario, responder consultas, y/u otros pedidos o preguntas.
+
+
+ ¿Cómo protegemos tu información?
+
+ Implementamos una variedad de medidas de seguridad para mantener a salvo tu información personal cuando entras, publicas, o accesas a ella.
+
+ ¿Cuáles son sus políticas de retención de datos?
+
+ Haremos un gran esfuerzo en:
+
+
+ Retener logs del servidor conteniendo la dirección IP de todos los pedidos a este servidor en no más de 90 días.
+ Retener las direcciones IP asociadas con usuarios registrados y sus posts no más de 5 años.
+
+
+
+
+ Sí. Las cookies son pequeños archivos que un sitio web o su proveedor de servicio transfieren al disco duro de tu computadora a través de tu navegador web (si se le permite). Estas cookies permiten al sitio reconocer tu navegador y, si y tienes una cuenta registrada, asociarlo con ella.
+
+ Usamos cookies para entender y guardar tus preferencias para futuras visitas y agregar datos compilados sobre el tráfico del sitio e interacción para que podamos ofrecer una mejor experiencia y herramientas en el futuro. Puede que contratemos con proveedores de servicio de tercera mano para que nos asistan en el mejor entendimiento de nuestros visitantes del sitio. A estos proveedores de servicio no se les permite usar la información recolectada a nuestras espaldas excepto para ayudarnos a conducir y mejorar nuestro trabajo.
+
+ ¿Revelamos alguna información a terceras manos?
+
+ No vendemos, intercambiamos, ni de ninguna otra manera transferimos tu información personal identificable a terceras partes. Esto no incluye las terceras manos que nos asisten en operar nuestro sitio, conducción o trabajo, o en servirte, tanto como que éstas acepten en mantener esta información confidencial. Puede que también liberemos tu información cuando creamos que es apropiado para cumplir con la ley, enforzar nuestras políticas del sitio, o proteger la nuestra u otros derechos, propiedad, o seguridad. De todas formas, la información del visitante autorizado no-personal puede proveerse a otras partes por marketing, publicidad, u otros usos.
+
+ Enlaces de terceras partes
+
+ Ocasionalmente, a nuestra discreción, puede que incluyamos u ofrezcamos productos de terceras partes o servicios en nuestro sitio. Estas terceras partes tienen políticas de privacidad separadas e independientes. Por lo tanto no tenemos responsabilidad u obligación por el contenido y actividades de estos sitios enlazados. Sin embargo, buscamos proteger la integridad de nuestro sitio y dar la bienvenida a cualquier ayuda sobre estos sitios.
+
+ Children's Online Privacy Protection Act Compliance (Cumplimiento de la Ley de la Protección Privada en Línea del Niño)
+
+ Nuestro sitio y todos nuestros productos y servicios están dirigidos a gente que tiene al menos 13 años de edad. Si el servidor está alojado en EE.UU, y tienes menos de 13 años, no uses este sitio por los requerimientos del COPPA (Children's Online Privacy Protection Act ).
+
+ Solo Políticas de Privacidad en Línea
+
+ Estas políticas de privacidad aplican únicamente a la información recolectada a través de nuestro sitio y no a información recolectada offline .
+
+ Tu Consentimiento
+
+ Al usar nuestro sitio, estás consentido a nuestras políticas de privacidad del sitio.
+
+ Cambios a nuestras Políticas de Privacidad
+
+ Si decidimos cambiar nuestras políticas de privacidad, las publicaremos en esta página.
+
+ Este documento está publicado bajo la licencia CC-BY-SA. Última vez actualizado el 31 de Mayo del 2013.
+
+ Adaptado originalmente del discurso de las políticas de privacidad .
+ title: "Términos del Servicio y Políticas de Privacidad de %{instance}"
time:
formats:
- default: "%b %d, %Y, %H:%M"
+ default: "%d de %b del %Y, %H:%M"
two_factor_authentication:
- description_html: Sí habilitas la autenticación de dos factores , se requerirá estar en posesión de su teléfono, lo que generará tokens para que usted pueda iniciar sesión.
+ generate_recovery_codes: generar códigos de recuperación
+ lost_recovery_codes: Los códigos de recuperación te permiten obtener acceso a tu cuenta si pierdes tu teléfono. Si has perdido tus códigos de recuperación, puedes regenerarlos aquí. Tus viejos códigos de recuperación se harán inválidos.
+ recovery_codes: Hacer copias de seguridad de tus códigos de recuperación
+ recovery_instructions_html: Si pierdes acceso a tu teléfono, puedes usar uno de los siguientes códigos de recuperación para obtener acceso a tu cuenta. Mantenlos a salvo . Por ejemplo, puedes imprimirlos y guardarlos con otros documentos importantes.
+ description_html: Si habilitas la autenticación de dos factores , se requerirá estar en posesión de su teléfono, lo que generará tokens para que usted pueda iniciar sesión.
disable: Deshabilitar
enable: Habilitar
+ enabled_success: Verificación de dos factores activada exitosamente
instructions_html: "Escanea este código QR desde Google Authenticator o una aplicación similar en su teléfono . Desde ahora, esta aplicación va a generar tokens que tienes que ingresar cuando quieras iniciar sesión."
+ code_hint: Ingresa el código generado por tu aplicación de autenticación para confirmar
+ setup: Configurar
+ wrong_code: ¡El código ingresado es inválido! ¿El dispositivo y tiempo del servidor están correctos?
users:
invalid_email: La dirección de correo es incorrecta
invalid_otp_token: Código de dos factores incorrecto
+ signed_in_as: "Sesión iniciada como:"
diff --git a/config/locales/simple_form.es.yml b/config/locales/simple_form.es.yml
index f260e600c..a6185915e 100644
--- a/config/locales/simple_form.es.yml
+++ b/config/locales/simple_form.es.yml
@@ -4,12 +4,21 @@ es:
hints:
defaults:
avatar: PNG, GIF o JPG. Máximo 2MB. Será escalado a 120x120px
- display_name: Máximo 30 caracteres
+ display_name:
+ one: 1 caracter restante
+ other: %{count} caracteres restantes
header: PNG, GIF o JPG. Máximo 2MB. Será escalado a 700x335px
locked: Requiere que manualmente apruebes seguidores y las publicaciones serán mostradas solamente a tus seguidores
- note: Máximo 160 caracteres
+ note:
+ one: 1 caracter restante
+ other: %{count} caracteres restantes
+ setting_noindex: Afecta a tu perfil público y páginas de estado
imports:
data: Archivo CSV exportado desde otra instancia de Mastodon
+ sessions:
+ otp: Ingresa el código de autenticación de dos factores de tu teléfono o usa uno de tus códigos de recuperación.
+ user:
+ filtered_languages: Los lenguajes seleccionados serán removidos de tus líneas de tiempo públicas.
labels:
defaults:
avatar: Avatar
--
cgit
From 81cec35dbf1b348d23363559e3f4e6b1ec3415c5 Mon Sep 17 00:00:00 2001
From: Eugen Rochko
Date: Tue, 19 Sep 2017 02:42:40 +0200
Subject: Custom emoji (#4988)
* Custom emoji
- In OStatus: ` `
- In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }`
- In REST API: Status object includes `emojis` array (`shortcode`, `url`)
- Domain blocks with reject media stop emojis
- Emoji file up to 50KB
- Web UI handles custom emojis
- Static pages render custom emojis as ` ` tags
Side effects:
- Undo #4500 optimization, as I needed to modify it to restore
shortcode handling in emojify()
- Formatter#plaintext should now make sure stripped out line-breaks
and paragraphs are replaced with newlines
* Fix emoji at the start not being converted
---
app/javascript/mastodon/emoji.js | 60 ++++++++++------
app/javascript/mastodon/reducers/statuses.js | 9 ++-
app/lib/activitypub/activity/create.rb | 13 ++++
app/lib/formatter.rb | 54 +++++++++++++-
app/lib/ostatus/activity/creation.rb | 20 ++++++
app/lib/ostatus/atom_serializer.rb | 4 ++
app/models/custom_emoji.rb | 38 ++++++++++
app/models/status.rb | 4 ++
app/serializers/activitypub/note_serializer.rb | 20 +++++-
app/serializers/rest/status_serializer.rb | 11 +++
.../stream_entries/_detailed_status.html.haml | 2 +-
app/views/stream_entries/_simple_status.html.haml | 2 +-
db/migrate/20170917153509_create_custom_emojis.rb | 13 ++++
db/schema.rb | 14 +++-
spec/fabricators/custom_emoji_fabricator.rb | 5 ++
spec/fixtures/files/emojo.png | Bin 0 -> 29814 bytes
spec/lib/activitypub/activity/create_spec.rb | 25 +++++++
spec/lib/formatter_spec.rb | 78 +++++++++++++++++++++
spec/lib/ostatus/atom_serializer_spec.rb | 16 ++++-
spec/models/custom_emoji_spec.rb | 25 +++++++
20 files changed, 382 insertions(+), 31 deletions(-)
create mode 100644 app/models/custom_emoji.rb
create mode 100644 db/migrate/20170917153509_create_custom_emojis.rb
create mode 100644 spec/fabricators/custom_emoji_fabricator.rb
create mode 100644 spec/fixtures/files/emojo.png
create mode 100644 spec/models/custom_emoji_spec.rb
(limited to 'app/javascript')
diff --git a/app/javascript/mastodon/emoji.js b/app/javascript/mastodon/emoji.js
index a41dfdd1d..865b85b61 100644
--- a/app/javascript/mastodon/emoji.js
+++ b/app/javascript/mastodon/emoji.js
@@ -3,28 +3,48 @@ import Trie from 'substring-trie';
const trie = new Trie(Object.keys(unicodeMapping));
-const emojify = str => {
- let rtn = '';
- for (;;) {
- let match, i = 0;
- while (i < str.length && str[i] !== '<' && !(match = trie.search(str.slice(i)))) {
- i += str.codePointAt(i) < 65536 ? 1 : 2;
- }
- if (i === str.length)
- break;
- else if (str[i] === '<') {
- let tagend = str.indexOf('>', i + 1) + 1;
- if (!tagend)
- break;
- rtn += str.slice(0, tagend);
- str = str.slice(tagend);
- } else {
- const [filename, shortCode] = unicodeMapping[match];
- rtn += str.slice(0, i) + ` `;
- str = str.slice(i + match.length);
+const emojify = (str, customEmojis = {}) => {
+ // This walks through the string from start to end, ignoring any tags (, , etc.)
+ // and replacing valid unicode strings
+ // that _aren't_ within tags with an version.
+ // The goal is to be the same as an emojione.regUnicode replacement, but faster.
+ let i = -1;
+ let insideTag = false;
+ let insideShortname = false;
+ let shortnameStartIndex = -1;
+ let match;
+ while (++i < str.length) {
+ const char = str.charAt(i);
+ if (insideShortname && char === ':') {
+ const shortname = str.substring(shortnameStartIndex, i + 1);
+ if (shortname in customEmojis) {
+ const replacement = ` `;
+ str = str.substring(0, shortnameStartIndex) + replacement + str.substring(i + 1);
+ i += (replacement.length - shortname.length - 1); // jump ahead the length we've added to the string
+ } else {
+ i--;
+ }
+ insideShortname = false;
+ } else if (insideTag && char === '>') {
+ insideTag = false;
+ } else if (char === '<') {
+ insideTag = true;
+ insideShortname = false;
+ } else if (!insideTag && char === ':') {
+ insideShortname = true;
+ shortnameStartIndex = i;
+ } else if (!insideTag && (match = trie.search(str.substring(i)))) {
+ const unicodeStr = match;
+ if (unicodeStr in unicodeMapping) {
+ const [filename, shortCode] = unicodeMapping[unicodeStr];
+ const alt = unicodeStr;
+ const replacement = ` `;
+ str = str.substring(0, i) + replacement + str.substring(i + unicodeStr.length);
+ i += (replacement.length - unicodeStr.length); // jump ahead the length we've added to the string
+ }
}
}
- return rtn + str;
+ return str;
};
export default emojify;
diff --git a/app/javascript/mastodon/reducers/statuses.js b/app/javascript/mastodon/reducers/statuses.js
index 7f906bef6..38b23504e 100644
--- a/app/javascript/mastodon/reducers/statuses.js
+++ b/app/javascript/mastodon/reducers/statuses.js
@@ -58,9 +58,14 @@ const normalizeStatus = (state, status) => {
}
const searchContent = [status.spoiler_text, status.content].join(' ').replace(/ /g, '\n').replace(/<\/p>
/g, '\n\n');
+ const emojiMap = normalStatus.emojis.reduce((obj, emoji) => {
+ obj[`:${emoji.shortcode}:`] = emoji.url;
+ return obj;
+ }, {});
+
normalStatus.search_index = domParser.parseFromString(searchContent, 'text/html').documentElement.textContent;
- normalStatus.contentHtml = emojify(normalStatus.content);
- normalStatus.spoilerHtml = emojify(escapeTextContentForBrowser(normalStatus.spoiler_text || ''));
+ normalStatus.contentHtml = emojify(normalStatus.content, emojiMap);
+ normalStatus.spoilerHtml = emojify(escapeTextContentForBrowser(normalStatus.spoiler_text || ''), emojiMap);
return state.update(status.id, ImmutableMap(), map => map.mergeDeep(fromJS(normalStatus)));
};
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index 894759d9a..41f2b0bad 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -61,6 +61,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
process_hashtag tag, status
when 'Mention'
process_mention tag, status
+ when 'Emoji'
+ process_emoji tag, status
end
end
end
@@ -79,6 +81,17 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
account.mentions.create(status: status)
end
+ def process_emoji(tag, _status)
+ shortcode = tag['name'].delete(':')
+ emoji = CustomEmoji.find_by(shortcode: shortcode, domain: @account.domain)
+
+ return if !emoji.nil? || skip_download?
+
+ emoji = CustomEmoji.new(domain: @account.domain, shortcode: shortcode)
+ emoji.image_remote_url = tag['href']
+ emoji.save
+ end
+
def process_attachments(status)
return unless @object['attachment'].is_a?(Array)
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index 575830190..29fea27de 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -9,7 +9,7 @@ class Formatter
include ActionView::Helpers::TextHelper
- def format(status)
+ def format(status, options = {})
if status.reblog?
prepend_reblog = status.reblog.account.acct
status = status.proper
@@ -19,7 +19,11 @@ class Formatter
raw_content = status.text
- return reformat(raw_content) unless status.local?
+ unless status.local?
+ html = reformat(raw_content)
+ html = encode_custom_emojis(html, status.emojis) if options[:custom_emojify]
+ return html
+ end
linkable_accounts = status.mentions.map(&:account)
linkable_accounts << status.account
@@ -27,6 +31,7 @@ class Formatter
html = raw_content
html = "RT @#{prepend_reblog} #{html}" if prepend_reblog
html = encode_and_link_urls(html, linkable_accounts)
+ html = encode_custom_emojis(html, status.emojis) if options[:custom_emojify]
html = simple_format(html, {}, sanitize: false)
html = html.delete("\n")
@@ -39,7 +44,9 @@ class Formatter
def plaintext(status)
return status.text if status.local?
- strip_tags(status.text)
+
+ text = status.text.gsub(/( | |<\/p>)+/) { |match| "#{match}\n" }
+ strip_tags(text)
end
def simplified_format(account)
@@ -76,6 +83,47 @@ class Formatter
end
end
+ def encode_custom_emojis(html, emojis)
+ return html if emojis.empty?
+
+ emoji_map = emojis.map { |e| [e.shortcode, full_asset_url(e.image.url)] }.to_h
+
+ i = -1
+ inside_tag = false
+ inside_shortname = false
+ shortname_start_index = -1
+
+ while i + 1 < html.size
+ i += 1
+
+ if inside_shortname && html[i] == ':'
+ shortcode = html[shortname_start_index + 1..i - 1]
+ emoji = emoji_map[shortcode]
+
+ if emoji
+ replacement = " "
+ before_html = shortname_start_index.positive? ? html[0..shortname_start_index - 1] : ''
+ html = before_html + replacement + html[i + 1..-1]
+ i += replacement.size - (shortcode.size + 2) - 1
+ else
+ i -= 1
+ end
+
+ inside_shortname = false
+ elsif inside_tag && html[i] == '>'
+ inside_tag = false
+ elsif html[i] == '<'
+ inside_tag = true
+ inside_shortname = false
+ elsif !inside_tag && html[i] == ':'
+ inside_shortname = true
+ shortname_start_index = i
+ end
+ end
+
+ html
+ end
+
def rewrite(text, entities)
chars = text.to_s.to_char_a
diff --git a/app/lib/ostatus/activity/creation.rb b/app/lib/ostatus/activity/creation.rb
index 1a23c9efa..d3f1629c4 100644
--- a/app/lib/ostatus/activity/creation.rb
+++ b/app/lib/ostatus/activity/creation.rb
@@ -42,6 +42,7 @@ class OStatus::Activity::Creation < OStatus::Activity::Base
save_mentions(status)
save_hashtags(status)
save_media(status)
+ save_emojis(status)
end
if thread? && status.thread.nil?
@@ -150,6 +151,25 @@ class OStatus::Activity::Creation < OStatus::Activity::Base
end
end
+ def save_emojis(parent)
+ do_not_download = DomainBlock.find_by(domain: parent.account.domain)&.reject_media?
+
+ return if do_not_download
+
+ @xml.xpath('./xmlns:link[@rel="emoji"]', xmlns: TagManager::XMLNS).each do |link|
+ next unless link['href'] && link['name']
+
+ shortcode = link['name'].delete(':')
+ emoji = CustomEmoji.find_by(shortcode: shortcode, domain: parent.account.domain)
+
+ next unless emoji.nil?
+
+ emoji = CustomEmoji.new(shortcode: shortcode, domain: parent.account.domain)
+ emoji.image_remote_url = link['href']
+ emoji.save
+ end
+ end
+
def account_from_href(href)
url = Addressable::URI.parse(href).normalize
diff --git a/app/lib/ostatus/atom_serializer.rb b/app/lib/ostatus/atom_serializer.rb
index b8e22a381..a6a5cb0c4 100644
--- a/app/lib/ostatus/atom_serializer.rb
+++ b/app/lib/ostatus/atom_serializer.rb
@@ -368,5 +368,9 @@ class OStatus::AtomSerializer
end
append_element(entry, 'mastodon:scope', status.visibility)
+
+ status.emojis.each do |emoji|
+ append_element(entry, 'link', nil, rel: :emoji, href: full_asset_url(emoji.image.url), name: emoji.shortcode)
+ end
end
end
diff --git a/app/models/custom_emoji.rb b/app/models/custom_emoji.rb
new file mode 100644
index 000000000..f4d3b16a0
--- /dev/null
+++ b/app/models/custom_emoji.rb
@@ -0,0 +1,38 @@
+# frozen_string_literal: true
+# == Schema Information
+#
+# Table name: custom_emojis
+#
+# id :integer not null, primary key
+# shortcode :string default(""), not null
+# domain :string
+# image_file_name :string
+# image_content_type :string
+# image_file_size :integer
+# image_updated_at :datetime
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
+class CustomEmoji < ApplicationRecord
+ SHORTCODE_RE_FRAGMENT = '[a-zA-Z0-9_]{2,}'
+
+ SCAN_RE = /(?<=[^[:alnum:]:]|\n|^)
+ :(#{SHORTCODE_RE_FRAGMENT}):
+ (?=[^[:alnum:]:]|$)/x
+
+ has_attached_file :image
+
+ validates_attachment :image, content_type: { content_type: 'image/png' }, presence: true, size: { in: 0..50.kilobytes }
+ validates :shortcode, uniqueness: { scope: :domain }, format: { with: /\A#{SHORTCODE_RE_FRAGMENT}\z/ }, length: { minimum: 2 }
+
+ include Remotable
+
+ class << self
+ def from_text(text, domain)
+ return [] if text.blank?
+ shortcodes = text.scan(SCAN_RE).map(&:first)
+ where(shortcode: shortcodes, domain: domain)
+ end
+ end
+end
diff --git a/app/models/status.rb b/app/models/status.rb
index 2a2cdcf6e..326d128d6 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -131,6 +131,10 @@ class Status < ApplicationRecord
!sensitive? && media_attachments.any?
end
+ def emojis
+ CustomEmoji.from_text(text, account.domain)
+ end
+
after_create :store_uri, if: :local?
before_validation :prepare_contents, if: :local?
diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb
index 166214eee..e5d8e3f03 100644
--- a/app/serializers/activitypub/note_serializer.rb
+++ b/app/serializers/activitypub/note_serializer.rb
@@ -57,7 +57,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
end
def virtual_tags
- object.mentions + object.tags
+ object.mentions + object.tags + object.emojis
end
def atom_uri
@@ -137,4 +137,22 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
"##{object.name}"
end
end
+
+ class CustomEmojiSerializer < ActiveModel::Serializer
+ include RoutingHelper
+
+ attributes :type, :href, :name
+
+ def type
+ 'Emoji'
+ end
+
+ def href
+ full_asset_url(object.image.url)
+ end
+
+ def name
+ ":#{object.shortcode}:"
+ end
+ end
end
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index 298a3bb40..d8efa8e60 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -17,6 +17,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
has_many :media_attachments, serializer: REST::MediaAttachmentSerializer
has_many :mentions
has_many :tags
+ has_many :emojis
def current_user?
!current_user.nil?
@@ -106,4 +107,14 @@ class REST::StatusSerializer < ActiveModel::Serializer
tag_url(object)
end
end
+
+ class CustomEmojiSerializer < ActiveModel::Serializer
+ include RoutingHelper
+
+ attributes :shortcode, :url
+
+ def url
+ full_asset_url(object.image.url)
+ end
+ end
end
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index dd9456260..692d5a6d5 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -17,7 +17,7 @@
%p{ style: 'margin-bottom: 0' }<
%span.p-summary> #{status.spoiler_text}
%a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more')
- .e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
+ .e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status, custom_emojify: true)
- if !status.media_attachments.empty?
- if status.media_attachments.first.video?
diff --git a/app/views/stream_entries/_simple_status.html.haml b/app/views/stream_entries/_simple_status.html.haml
index 55aa97f32..f9a530d38 100644
--- a/app/views/stream_entries/_simple_status.html.haml
+++ b/app/views/stream_entries/_simple_status.html.haml
@@ -18,7 +18,7 @@
%p{ style: 'margin-bottom: 0' }<
%span.p-summary> #{status.spoiler_text}
%a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more')
- .e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status)
+ .e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status, custom_emojify: true)
- unless status.media_attachments.empty?
- if status.media_attachments.first.video?
diff --git a/db/migrate/20170917153509_create_custom_emojis.rb b/db/migrate/20170917153509_create_custom_emojis.rb
new file mode 100644
index 000000000..4040c8312
--- /dev/null
+++ b/db/migrate/20170917153509_create_custom_emojis.rb
@@ -0,0 +1,13 @@
+class CreateCustomEmojis < ActiveRecord::Migration[5.1]
+ def change
+ create_table :custom_emojis do |t|
+ t.string :shortcode, null: false, default: ''
+ t.string :domain
+ t.attachment :image
+
+ t.timestamps
+ end
+
+ add_index :custom_emojis, [:shortcode, :domain], unique: true
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index f2ca2af69..9f42d46dd 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170913000752) do
+ActiveRecord::Schema.define(version: 20170917153509) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -89,6 +89,18 @@ ActiveRecord::Schema.define(version: 20170913000752) do
t.index ["uri"], name: "index_conversations_on_uri", unique: true
end
+ create_table "custom_emojis", force: :cascade do |t|
+ t.string "shortcode", default: "", null: false
+ t.string "domain"
+ t.string "image_file_name"
+ t.string "image_content_type"
+ t.integer "image_file_size"
+ t.datetime "image_updated_at"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.index ["shortcode", "domain"], name: "index_custom_emojis_on_shortcode_and_domain", unique: true
+ end
+
create_table "domain_blocks", id: :serial, force: :cascade do |t|
t.string "domain", default: "", null: false
t.datetime "created_at", null: false
diff --git a/spec/fabricators/custom_emoji_fabricator.rb b/spec/fabricators/custom_emoji_fabricator.rb
new file mode 100644
index 000000000..18a7d23dc
--- /dev/null
+++ b/spec/fabricators/custom_emoji_fabricator.rb
@@ -0,0 +1,5 @@
+Fabricator(:custom_emoji) do
+ shortcode 'coolcat'
+ domain nil
+ image { File.open(Rails.root.join('spec', 'fixtures', 'files', 'emojo.png')) }
+end
diff --git a/spec/fixtures/files/emojo.png b/spec/fixtures/files/emojo.png
new file mode 100644
index 000000000..cb5993499
Binary files /dev/null and b/spec/fixtures/files/emojo.png differ
diff --git a/spec/lib/activitypub/activity/create_spec.rb b/spec/lib/activitypub/activity/create_spec.rb
index fcb044ebc..1a9520f04 100644
--- a/spec/lib/activitypub/activity/create_spec.rb
+++ b/spec/lib/activitypub/activity/create_spec.rb
@@ -17,6 +17,7 @@ RSpec.describe ActivityPub::Activity::Create do
before do
stub_request(:get, 'http://example.com/attachment.png').to_return(request_fixture('avatar.txt'))
+ stub_request(:get, 'http://example.com/emoji.png').to_return(body: attachment_fixture('emojo.png'))
end
describe '#perform' do
@@ -217,5 +218,29 @@ RSpec.describe ActivityPub::Activity::Create do
expect(status.tags.map(&:name)).to include('test')
end
end
+
+ context 'with emojis' do
+ let(:object_json) do
+ {
+ id: 'bar',
+ type: 'Note',
+ content: 'Lorem ipsum :tinking:',
+ tag: [
+ {
+ type: 'Emoji',
+ href: 'http://example.com/emoji.png',
+ name: 'tinking',
+ },
+ ],
+ }
+ end
+
+ it 'creates status' do
+ status = sender.statuses.first
+
+ expect(status).to_not be_nil
+ expect(status.emojis.map(&:shortcode)).to include('tinking')
+ end
+ end
end
end
diff --git a/spec/lib/formatter_spec.rb b/spec/lib/formatter_spec.rb
index b714b317a..71b6b78d2 100644
--- a/spec/lib/formatter_spec.rb
+++ b/spec/lib/formatter_spec.rb
@@ -223,6 +223,45 @@ RSpec.describe Formatter do
include_examples 'encode and link URLs'
end
+
+ context 'with custom_emojify option' do
+ let!(:emoji) { Fabricate(:custom_emoji) }
+ let(:status) { Fabricate(:status, account: local_account, text: text) }
+
+ subject { Formatter.instance.format(status, custom_emojify: true) }
+
+ context 'with emoji at the start' do
+ let(:text) { ':coolcat: Beep boop' }
+
+ it 'converts shortcode to image tag' do
+ is_expected.to match(/
:coolcat: Beep boop ' }
+
+ it 'converts shortcode to image tag' do
+ is_expected.to match(/
Beep :coolcat: boop
' }
+
+ it 'converts shortcode to image tag' do
+ is_expected.to match(/Beep :coolcat::coolcat:
' }
+
+ it 'does not touch the shortcodes' do
+ is_expected.to match(/:coolcat::coolcat:<\/p>/)
+ end
+ end
+
+ context 'with emoji at the end' do
+ let(:text) { '
Beep boop :coolcat:
' }
+
+ it 'converts shortcode to image tag' do
+ is_expected.to match(/ Hello :coolcat:' }
+
+ it 'returns records used via shortcodes in text' do
+ is_expected.to include(emojo)
+ end
+ end
+ end
+end
--
cgit
From 4aea3f88a6d30f102a79c2da7fcfac96465ba1a8 Mon Sep 17 00:00:00 2001
From: unarist
Date: Tue, 19 Sep 2017 23:03:45 +0900
Subject: Hide sensitive image in default on the public pages (#5009)
Additionally, this restores previous background / text color for media spoiler.
---
app/javascript/styles/stream_entries.scss | 13 +++++++++++++
app/views/stream_entries/_detailed_status.html.haml | 2 +-
app/views/stream_entries/_simple_status.html.haml | 2 +-
3 files changed, 15 insertions(+), 2 deletions(-)
(limited to 'app/javascript')
diff --git a/app/javascript/styles/stream_entries.scss b/app/javascript/styles/stream_entries.scss
index ba6d89107..4f323a378 100644
--- a/app/javascript/styles/stream_entries.scss
+++ b/app/javascript/styles/stream_entries.scss
@@ -243,6 +243,19 @@
}
}
+ .media-spoiler {
+ background: $ui-primary-color;
+ color: $white;
+ transition: all 100ms linear;
+
+ &:hover,
+ &:active,
+ &:focus {
+ background: darken($ui-primary-color, 5%);
+ color: unset;
+ }
+ }
+
.pre-header {
padding: 14px 0;
padding-left: (48px + 14px * 2);
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index 692d5a6d5..6860c6bf3 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -24,7 +24,7 @@
- video = status.media_attachments.first
%div{ data: { component: 'Video', props: Oj.dump(src: video.file.url(:original), preview: video.file.url(:small), sensitive: status.sensitive?, width: 670, height: 380) }}
- else
- %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 380, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
+ %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 380, sensitive: status.sensitive?, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
- elsif status.preview_cards.first
%div{ data: { component: 'Card', props: Oj.dump('maxDescription': 160, card: ActiveModelSerializers::SerializableResource.new(status.preview_cards.first, serializer: REST::PreviewCardSerializer).as_json) }}
diff --git a/app/views/stream_entries/_simple_status.html.haml b/app/views/stream_entries/_simple_status.html.haml
index f9a530d38..c0ea11633 100644
--- a/app/views/stream_entries/_simple_status.html.haml
+++ b/app/views/stream_entries/_simple_status.html.haml
@@ -25,4 +25,4 @@
- video = status.media_attachments.first
%div{ data: { component: 'Video', props: Oj.dump(src: video.file.url(:original), preview: video.file.url(:small), sensitive: status.sensitive?, width: 610, height: 343) }}
- else
- %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 343, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
+ %div{ data: { component: 'MediaGallery', props: Oj.dump(height: 343, sensitive: status.sensitive?, 'autoPlayGif': current_account&.user&.setting_auto_play_gif, media: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }) }}
--
cgit