From dae058cdb4eb7386834f18ff457ff9fce7953fae Mon Sep 17 00:00:00 2001 From: Ezequiel de Oliveira Date: Fri, 31 Jul 2020 15:30:36 -0300 Subject: [PATCH] [FIX] Minor i18n issues (#2335) * Add new translations to ptBr Signed-off-by: Ezequiel De Oliveira * Fix update language in headers Signed-off-by: Ezequiel De Oliveira Co-authored-by: Diego Mello --- app/i18n/locales/pt-BR.js | 16 ++++++++++++++++ app/views/AutoTranslateView/index.js | 7 ++++--- app/views/CreateChannelView.js | 4 ++-- app/views/DefaultBrowserView.js | 4 ++-- app/views/InviteUsersEditView/index.js | 4 ++-- app/views/InviteUsersView/index.js | 4 ++-- app/views/LanguageView/index.js | 4 ++-- app/views/MarkdownTableView.js | 4 ++-- app/views/NewServerView.js | 4 ++-- app/views/NotificationPreferencesView/index.js | 4 ++-- app/views/RoomInfoEditView/index.js | 4 ++-- app/views/ScreenLockConfigView.js | 4 ++-- app/views/SelectServerView.js | 4 ++-- app/views/ThemeView.js | 4 ++-- app/views/WithoutServersView.js | 4 ++-- app/views/WorkspaceView/index.js | 4 ++-- 16 files changed, 48 insertions(+), 31 deletions(-) diff --git a/app/i18n/locales/pt-BR.js b/app/i18n/locales/pt-BR.js index 074bea9c1..8ed4e76da 100644 --- a/app/i18n/locales/pt-BR.js +++ b/app/i18n/locales/pt-BR.js @@ -108,8 +108,10 @@ export default { are_typing: 'estão digitando', Are_you_sure_question_mark: 'Você tem certeza?', Are_you_sure_you_want_to_leave_the_room: 'Tem certeza de que deseja sair da sala {{room}}?', + Audio: 'Áudio', Authenticating: 'Autenticando', Automatic: 'Automático', + Auto_Translate: 'Tradução automática', Avatar_changed_successfully: 'Avatar alterado com sucesso!', Avatar_Url: 'Avatar URL', Away: 'Ausente', @@ -172,6 +174,7 @@ export default { DELETE: 'EXCLUIR', deleting_room: 'excluindo sala', Direct_Messages: 'Mensagens Diretas', + DESKTOP_OPTIONS: 'OPÇÕES DE ÁREA DE TRABALHO', Directory: 'Diretório', description: 'descrição', Description: 'Descrição', @@ -192,6 +195,7 @@ export default { Email: 'Email', email: 'e-mail', Empty_title: 'Título vazio', + Enable_Auto_Translate: 'Ativar a tradução automática', Enable_notifications: 'Habilitar notificações', Everyone_can_access_this_channel: 'Todos podem acessar este canal', Error_uploading: 'Erro subindo', @@ -234,6 +238,7 @@ export default { Message_HideType_room_unarchived: 'Sala desarquivada', IP: 'IP', In_app: 'No app', + In_App_and_Desktop_Alert_info: 'Exibe um banner na parte superior da tela quando o aplicativo é aberto e exibe uma notificação na área de trabalho', Invisible: 'Invisível', Invite: 'Convidar', is_typing: 'está digitando', @@ -299,6 +304,9 @@ export default { Nothing_to_save: 'Nada para salvar!', Notify_active_in_this_room: 'Notificar usuários ativos nesta sala', Notify_all_in_this_room: 'Notificar todos nesta sala', + Notifications: 'Notificações', + Notification_Duration: 'Duração da notificação', + Notification_Preferences: 'Preferências de notificação', Not_RC_Server: 'Este não é um servidor Rocket.Chat.\n{{contact}}', No_available_agents_to_transfer: 'Nenhum agente disponível para transferência', Offline: 'Offline', @@ -340,6 +348,7 @@ export default { Profile: 'Perfil', Public_Channel: 'Canal Público', Public: 'Público', + Push_Notifications_Alert_Info: 'Essas notificações são entregues a você quando o aplicativo não está aberto', Quote: 'Citar', Reactions_are_disabled: 'Reagir está desabilitado', Reactions_are_enabled: 'Reagir está habilitado', @@ -348,6 +357,8 @@ export default { Read_External_Permission: 'Permissão de acesso à arquivos', Read_Only_Channel: 'Canal Somente Leitura', Read_Only: 'Somente Leitura', + Receive_Group_Mentions: 'Receber menções de grupo', + Receive_Group_Mentions_Info: 'Receber menções @all e @here', Register: 'Registrar', Read_Receipt: 'Lida por', Repeat_Password: 'Repetir Senha', @@ -355,6 +366,8 @@ export default { replies: 'respostas', reply: 'resposta', Reply: 'Responder', + Receive_Notification: 'Receber Notificação', + Receive_notifications_from: 'Receber notificação de {{name}}', Resend: 'Reenviar', Reset_password: 'Resetar senha', resetting_password: 'redefinindo senha', @@ -411,10 +424,13 @@ export default { Share: 'Compartilhar', Share_Link: 'Share Link', Show_more: 'Mostrar mais..', + Show_Unread_Counter: 'Mostrar contador não lido', + Show_Unread_Counter_Info: 'O contador não lido é exibido como um emblema à direita do canal, na lista', Sign_in_your_server: 'Entrar no seu servidor', Sign_Up: 'Registrar', Some_field_is_invalid_or_empty: 'Algum campo está inválido ou vazio', Sorting_by: 'Ordenando por {{key}}', + Sound: 'Som da notificação', Star_room: 'Favoritar sala', Star: 'Favorito', Starred_Messages: 'Mensagens Favoritas', diff --git a/app/views/AutoTranslateView/index.js b/app/views/AutoTranslateView/index.js index 0f52db69f..f146d265a 100644 --- a/app/views/AutoTranslateView/index.js +++ b/app/views/AutoTranslateView/index.js @@ -48,13 +48,14 @@ SectionSeparator.propTypes = { }; class AutoTranslateView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Auto_Translate') - } + }) static propTypes = { route: PropTypes.object, - theme: PropTypes.string + theme: PropTypes.string, + navigation: PropTypes.object } constructor(props) { diff --git a/app/views/CreateChannelView.js b/app/views/CreateChannelView.js index 5d0dae5bc..c4f2c5407 100644 --- a/app/views/CreateChannelView.js +++ b/app/views/CreateChannelView.js @@ -73,9 +73,9 @@ const styles = StyleSheet.create({ }); class CreateChannelView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Create_Channel') - } + }); static propTypes = { navigation: PropTypes.object, diff --git a/app/views/DefaultBrowserView.js b/app/views/DefaultBrowserView.js index 555301b0c..e51b11f02 100644 --- a/app/views/DefaultBrowserView.js +++ b/app/views/DefaultBrowserView.js @@ -60,9 +60,9 @@ const styles = StyleSheet.create({ }); class DefaultBrowserView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Default_browser') - } + }) static propTypes = { theme: PropTypes.string diff --git a/app/views/InviteUsersEditView/index.js b/app/views/InviteUsersEditView/index.js index 08ff79040..45180e13e 100644 --- a/app/views/InviteUsersEditView/index.js +++ b/app/views/InviteUsersEditView/index.js @@ -53,9 +53,9 @@ const OPTIONS = { }; class InviteUsersView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Invite_users') - } + }) static propTypes = { navigation: PropTypes.object, diff --git a/app/views/InviteUsersView/index.js b/app/views/InviteUsersView/index.js index 5b7e4b010..0842d4742 100644 --- a/app/views/InviteUsersView/index.js +++ b/app/views/InviteUsersView/index.js @@ -20,9 +20,9 @@ import { withTheme } from '../../theme'; import SafeAreaView from '../../containers/SafeAreaView'; class InviteUsersView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Invite_users') - } + }) static propTypes = { navigation: PropTypes.object, diff --git a/app/views/LanguageView/index.js b/app/views/LanguageView/index.js index 8a5eac1dd..0420da72f 100644 --- a/app/views/LanguageView/index.js +++ b/app/views/LanguageView/index.js @@ -58,9 +58,9 @@ const LANGUAGES = [ ]; class LanguageView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Change_Language') - } + }) static propTypes = { user: PropTypes.object, diff --git a/app/views/MarkdownTableView.js b/app/views/MarkdownTableView.js index 049623444..3c552bcf1 100644 --- a/app/views/MarkdownTableView.js +++ b/app/views/MarkdownTableView.js @@ -8,9 +8,9 @@ import { themes } from '../constants/colors'; import { withTheme } from '../theme'; class MarkdownTableView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Table') - } + }) static propTypes = { route: PropTypes.object, diff --git a/app/views/NewServerView.js b/app/views/NewServerView.js index fd7009161..ec1229393 100644 --- a/app/views/NewServerView.js +++ b/app/views/NewServerView.js @@ -62,9 +62,9 @@ const styles = StyleSheet.create({ }); class NewServerView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Workspaces') - } + }) static propTypes = { navigation: PropTypes.object, diff --git a/app/views/NotificationPreferencesView/index.js b/app/views/NotificationPreferencesView/index.js index 7c97ec169..e00ed57ec 100644 --- a/app/views/NotificationPreferencesView/index.js +++ b/app/views/NotificationPreferencesView/index.js @@ -139,9 +139,9 @@ const OPTIONS = { }; class NotificationPreferencesView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Notification_Preferences') - } + }) static propTypes = { navigation: PropTypes.object, diff --git a/app/views/RoomInfoEditView/index.js b/app/views/RoomInfoEditView/index.js index 5db7c7883..b40e31c62 100644 --- a/app/views/RoomInfoEditView/index.js +++ b/app/views/RoomInfoEditView/index.js @@ -48,9 +48,9 @@ const PERMISSIONS_ARRAY = [ ]; class RoomInfoEditView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Room_Info_Edit') - } + }) static propTypes = { route: PropTypes.object, diff --git a/app/views/ScreenLockConfigView.js b/app/views/ScreenLockConfigView.js index a1d60e07f..0dfb377f2 100644 --- a/app/views/ScreenLockConfigView.js +++ b/app/views/ScreenLockConfigView.js @@ -30,9 +30,9 @@ const styles = StyleSheet.create({ const DEFAULT_BIOMETRY = false; class ScreenLockConfigView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Screen_lock') - }; + }); static propTypes = { theme: PropTypes.string, diff --git a/app/views/SelectServerView.js b/app/views/SelectServerView.js index 19131a3e8..46418d395 100644 --- a/app/views/SelectServerView.js +++ b/app/views/SelectServerView.js @@ -29,9 +29,9 @@ const styles = StyleSheet.create({ }); class SelectServerView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Select_Server') - } + }) static propTypes = { server: PropTypes.string, diff --git a/app/views/ThemeView.js b/app/views/ThemeView.js index 0c8e2e625..e6e07d1f1 100644 --- a/app/views/ThemeView.js +++ b/app/views/ThemeView.js @@ -69,9 +69,9 @@ const styles = StyleSheet.create({ }); class ThemeView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Theme') - } + }) static propTypes = { theme: PropTypes.string, diff --git a/app/views/WithoutServersView.js b/app/views/WithoutServersView.js index e5756ea79..136359df1 100644 --- a/app/views/WithoutServersView.js +++ b/app/views/WithoutServersView.js @@ -30,7 +30,7 @@ const styles = StyleSheet.create({ }); class WithoutServerView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: 'Rocket.Chat', headerLeft: () => ( ) - } + }) static propTypes = { theme: PropTypes.string diff --git a/app/views/WorkspaceView/index.js b/app/views/WorkspaceView/index.js index 70531b823..b5177d66a 100644 --- a/app/views/WorkspaceView/index.js +++ b/app/views/WorkspaceView/index.js @@ -13,9 +13,9 @@ import ServerAvatar from './ServerAvatar'; import { getShowLoginButton } from '../../selectors/login'; class WorkspaceView extends React.Component { - static navigationOptions = { + static navigationOptions = () => ({ title: I18n.t('Your_workspace') - } + }) static propTypes = { navigation: PropTypes.object,