Regression: Add i18n to license error messages (#22171)

pull/22182/head
Douglas Gubert 4 years ago committed by GitHub
parent 125f832b7a
commit a78c9b45c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      client/views/admin/apps/AppDetailsPageContent.tsx
  2. 7
      packages/rocketchat-i18n/i18n/en.i18n.json
  3. 7
      packages/rocketchat-i18n/i18n/pt-BR.i18n.json

@ -4,7 +4,7 @@ import React, { FC } from 'react';
import ExternalLink from '../../../components/ExternalLink';
import AppAvatar from '../../../components/avatar/AppAvatar';
import { useTranslation } from '../../../contexts/TranslationContext';
import { TranslationKey, useTranslation } from '../../../contexts/TranslationContext';
import AppMenu from './AppMenu';
import AppStatus from './AppStatus';
import PriceDisplay from './PriceDisplay';
@ -81,15 +81,15 @@ const AppDetailsPageContent: FC<AppDetailsPageContentProps> = ({ data }) => {
{data.licenseValidation && (
<>
{Object.entries(data.licenseValidation.warnings).map(([key, message]) => (
{Object.entries(data.licenseValidation.warnings).map(([key]) => (
<Callout key={key} type='warning'>
{message}
{t(`Apps_License_Message_${key}` as TranslationKey)}
</Callout>
))}
{Object.entries(data.licenseValidation.errors).map(([key, message]) => (
{Object.entries(data.licenseValidation.errors).map(([key]) => (
<Callout key={key} type='danger'>
{message}
{t(`Apps_License_Message_${key}` as TranslationKey)}
</Callout>
))}
</>

@ -454,6 +454,13 @@
"Apps_Interface_IPreRoomCreatePrevent": "Event happening before a room is created",
"Apps_Interface_IPreRoomDeletePrevent": "Event happening before a room is deleted",
"Apps_Interface_IPreRoomUserJoined": "Event happening before a user joins a room (private group, public channel)",
"Apps_License_Message_appId": "License hasn't been issued for this app",
"Apps_License_Message_bundle": "License issued for a bundle that does not contain the app",
"Apps_License_Message_expire": "License is no longer valid and needs to be renewed",
"Apps_License_Message_maxSeats": "License does not accomodate the current amount of active users. Please increase the number of seats",
"Apps_License_Message_publicKey": "There has been an error trying to decrypt the license. Please sync your workspace in the Connectivity Services and try again",
"Apps_License_Message_renewal": "License has expired and needs to be renewed",
"Apps_License_Message_seats": "License does not have enough seats to accommodate the current amount of active users. Please increase the number of seats",
"Apps_Marketplace_Deactivate_App_Prompt": "Do you really want to disable this app?",
"Apps_Marketplace_Login_Required_Description": "Purchasing apps from the Rocket.Chat Marketplace requires registering your workspace and logging in.",
"Apps_Marketplace_Login_Required_Title": "Marketplace Login Required",

@ -397,6 +397,13 @@
"Apps_Game_Center": "Game Center",
"Apps_Game_Center_Back": "Voltar ao Game Center",
"Apps_Game_Center_enabled": "Habilitar Game Center",
"Apps_License_Message_appId": "A licença foi gerada para um app diferente",
"Apps_License_Message_bundle": "A licença foi gerada para um Bundle que não contém este app",
"Apps_License_Message_expire": "A licença não é mais válida e precisa ser renovada",
"Apps_License_Message_maxSeats": "A licença não comporta a quantidade atual de usuários ativos. Por favor, aumente o número de seats contratados",
"Apps_License_Message_publicKey": "Ocorreu um erro ao tentar descriptografar a licença. Por favor, sincronize seu workspace em Connectivity Services",
"Apps_License_Message_renewal": "A licença expirou e precisa ser renovada",
"Apps_License_Message_seats": "A licença não comporta a quantidade atual de usuários ativos. Por favor, aumente o número de seats contratados",
"Apps_Marketplace_Deactivate_App_Prompt": "Você quer mesmo desativar este aplicativo?",
"Apps_Marketplace_Login_Required_Title": "Login do Marketplace Obrigatório",
"Apps_Marketplace_Modify_App_Subscription": "Modificar a Subscrição",

Loading…
Cancel
Save