Skip to content

Commit

Permalink
translations ru,ua done, ready for 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlobu committed Feb 10, 2021
1 parent 7f0ca45 commit 1129b67
Show file tree
Hide file tree
Showing 73 changed files with 4,454 additions and 1,548 deletions.
4 changes: 4 additions & 0 deletions app/app.global.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ div.class-allow-device-to-connect-alert {
z-index: 9999;
}

.class-allow-device-to-connect-alert > div > .bp3-button {
border-radius: 50px;
}

/* ALLOW CONNECTION ALERT BLINK ANIMATION START */
div.class-allow-device-to-connect-alert
> div.bp3-alert-body
Expand Down
37 changes: 36 additions & 1 deletion app/client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Waiting for user to click ALLOW button on screen sharing device...",
"Waiting for user to select source to share from screen sharing device...": "Waiting for user to select source to share from screen sharing device..."
"Waiting for user to select source to share from screen sharing device...": "Waiting for user to select source to share from screen sharing device...",
"My Device Info": "My Device Info",
"Device Type": "Device Type",
"Your Device IP should match with Device IP in alert popup appeared on your computer, where Deskreen is running": "Your Device IP should match with \"Device IP\" in alert popup appeared on your computer, where Deskreen is running.",
"Device IP": "Device IP",
"Device Browser": "Device Browser",
"Device OS": "Device OS",
"These details should match with the ones that you see in alert popup on computer screen, where Deskreen is running": "These details should match with the ones that you see in alert popup on screen sharing device.",
"Deskreen Screen Viewer": "Deskreen Screen Viewer",
"Connected!": "Connected!",
"Error occurred": "Error occurred",
"Deskreen Error Dialog": "Deskreen Error Dialog",
"Something went wrong": "Something went wrong",
"You may close this browser window then try to connect again": "You may close this browser window then try to connect again",
"An unknown error occurred": "An unknown error occurred",
"You were not allowed to connect": "You were not allowed to connect",
"You were disconnected": "You were disconnected",
"WebRTC error occurred": "WebRTC error occurred",
"If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "If you like Deskreen, consider contributing financially. Deskreen is open-source. Your donations keep us motivated to make Deskreen even better.",
"Donate": "Donate",
"Video stream is paused": "Video stream is paused",
"Video stream is playing": "Video stream is playing",
"Pause": "Pause",
"Play": "Play",
"Video Settings": "Video Settings",
"Flip": "Flip",
"Video quality has been changed to": "Video quality has been changed to",
"Click to Open Video Settings": "Click to Open Video Settings",
"Click to Enter Full Screen Mode": "Click to Enter Full Screen Mode",
"Default video player has been turned OFF": "Default video player has been turned OFF",
"Default video player has been turned ON": "Default video player has been turned ON",
"ON": "ON",
"OFF": "OFF",
"Default Video Player": "Default Video Player",
"Click to visit our website": "Click to visit our website",
"Video is flipped horizontally": "Video is flipped horizontally"
}
39 changes: 37 additions & 2 deletions app/client/public/locales/ru/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Жду когда пользователь нажмет кнопку РАЗРЕШИТЬ доступ к экрану компьютера...",
"Waiting for user to select source to share from screen sharing device...": "Жду когда пользователь выберет весь экран или окно приложения для демонстрации..."
"Waiting for user to click ALLOW button on screen sharing device...": "Ждем когда пользователь нажмет кнопку РАЗРЕШИТЬ для доступа к экрану компьютера...",
"Waiting for user to select source to share from screen sharing device...": "Ждем когда пользователь выберет Весь экран или Окно приложения для отображения его здесь...",
"My Device Info": "Информация о моем устройстве",
"Device Type": "Тип устройства",
"Your Device IP should match with Device IP in alert popup appeared on your computer, where Deskreen is running": "IP-aдрес вашего устройства должен совпадать с «IP-адресом устройства» во всплывающем окне с предупреждением на компьютере, где работает Deskreen.",
"Device IP": "IP-aдрес устройства",
"Device Browser": "Веб-браузер устройства",
"Device OS": "ОС устройства",
"These details should match with the ones that you see in alert popup on computer screen, where Deskreen is running": "Эти данные должны совпадать с теми, которые вы видите во всплывающем окне предупреждения на экране компьютера, на котором работает Deskreen.",
"Deskreen Screen Viewer": "Просмотрщик экрана Deskreen",
"Connected!": "Подключено!",
"Error occurred": "Произошла ошибка",
"Deskreen Error Dialog": "Диалог ошибки Deskreen",
"Something went wrong": "Произошло что-то не так",
"You may close this browser window then try to connect again": "Вы можете закрыть это окно браузера и попытаться подключиться снова",
"An unknown error occurred": "Произошла неизвестная ошибка",
"You were not allowed to connect": "Вам не разрешили подключиться",
"You were disconnected": "Вы были отключены",
"WebRTC error occurred": "Произошла ошибка WebRTC",
"If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Если вам нравится Deskreen, подумайте о том, чтобы внести финансовый вклад. Deskreen - это оупенсорсный проэкт. Ваши пожертвования позволяют нам делать Deskreen еще лучше.",
"Donate": "Пожертвовать",
"Video stream is paused": "Видеопоток приостановлен",
"Video stream is playing": "Видеопоток воспроизводится",
"Pause": "Pause",
"Play": "Play",
"Video Settings": "Настройки видео",
"Flip": "Отзеркалить",
"Video quality has been changed to": "Качество видео изменено на",
"Click to Open Video Settings": "Нажмите, чтобы открыть настройки видео",
"Click to Enter Full Screen Mode": "Нажмите, чтобы перейти в полноэкранный режим",
"Default video player has been turned OFF": "Видеоплеер по умолчанию отключен",
"Default video player has been turned ON": "Видеопроигрыватель по умолчанию включен",
"ON": "ВКЛ",
"OFF": "ВЫКЛ",
"Default Video Player": "Видеоплеер по умолчанию",
"Click to visit our website": "Нажмите, чтобы посетить наш сайт",
"Video is flipped horizontally": "Видео отзеркалено"
}
39 changes: 37 additions & 2 deletions app/client/public/locales/ua/translation.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
{
"Waiting for user to click ALLOW button on screen sharing device...": "Чекаэмо коли користувач натисне кнопку ДОЗВОЛИТИ доступ до екрану комп'ютера...",
"Waiting for user to select source to share from screen sharing device...": "Чекаю коли користувач вибере весь екран або вікно програми для демонстрації..."
"Waiting for user to click ALLOW button on screen sharing device...": "Чекаємо коли користувач натисне кнопку ДОЗВОЛИТИ для доступу до екрану комп'ютера...",
"Waiting for user to select source to share from screen sharing device...": "Чекаємо коли користувач вибере Весь екран або Вікно додатка для відображення його тут...",
"My Device Info": "Інформація про мій пристрій",
"Device Type": "Тип пристрою",
"Your Device IP should match with Device IP in alert popup appeared on your computer, where Deskreen is running": "IP-aдрес пристрою вашого пристрою має збігатися з «IP-адресою пристрою» у спливаючому вікні сповіщення, що з’явилося на комп’ютері, де працює Deskreen.",
"Device IP": "IP-aдрес пристрою",
"Device Browser": "Веб-браузер пристрою",
"Device OS": "ОС пристрою",
"These details should match with the ones that you see in alert popup on computer screen, where Deskreen is running": "Ці деталі повинні збігатися з тими, які ви бачите у спливаючому вікні сповіщень на екрані комп’ютера, де запущений Deskreen.",
"Deskreen Screen Viewer": "Переглядач екрану Deskreen",
"Connected!": "Підключено!",
"Error occurred": "Виникла помилка",
"Deskreen Error Dialog": "Діалог помилки Deskreen",
"Something went wrong": "Щось не так сталося",
"You may close this browser window then try to connect again": "Ви можете закрити це вікно браузера та спробувати підключитися знову",
"An unknown error occurred": "Виникла невідома помилка",
"You were not allowed to connect": "Вам не дозволили підключитися",
"You were disconnected": "Ви були відключені",
"WebRTC error occurred": "Сталася помилка WebRTC",
"If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Якщо вам подобається Deskreen, подумайте про те, щоб внести фінансовий внесок. Deskreen - це оупенсорсний проект. Ваші пожертвування дозволяють нам робити Deskreen ще краще.",
"Donate": "Пожертвувати",
"Video stream is paused": "Відеопотік призупинено",
"Video stream is playing": "Відеопотік продовжується",
"Pause": "Pause",
"Play": "Play",
"Video Settings": "Настройки видео",
"Flip": "Віддзеркалити",
"Video quality has been changed to": "Якість відео змінено на",
"Click to Open Video Settings": "Натисніть, щоб відкрити настройки відео",
"Click to Enter Full Screen Mode": "Натисніть для входу в повноекранноий режим",
"Default video player has been turned OFF": "Стандартний відеоплеєр браузера вимкнено",
"Default video player has been turned ON": "Стандартний відеоплеєр браузера включений",
"ON": "ВКЛ",
"OFF": "ВИМК",
"Default Video Player": "Стандартний відеоплеєр браузера",
"Click to visit our website": "Клацніть, щоб відвідати наш веб-сайт",
"Video is flipped horizontally": "Відео віддзеркалено"
}
10 changes: 5 additions & 5 deletions app/client/src/components/ErrorDialog/ErrorMessageEnum.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export enum ErrorMessage {
UNKNOWN_ERROR = 'An unknown error uccured.',
DENY_TO_CONNECT = 'You were not allowed to connect.',
DISCONNECTED = 'You were disconnected.',
NOT_ALLOWED = 'You were not allowed to connect.',
WEBRTC_ERROR = 'WebRTC error occurred.'
UNKNOWN_ERROR = 'An unknown error occurred',
DENY_TO_CONNECT = 'You were not allowed to connect',
DISCONNECTED = 'You were disconnected',
NOT_ALLOWED = 'You were not allowed to connect',
WEBRTC_ERROR = 'WebRTC error occurred'
}
10 changes: 6 additions & 4 deletions app/client/src/components/ErrorDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Icon,
} from '@blueprintjs/core';
import { Col, Row } from 'react-flexbox-grid';
import { useTranslation } from 'react-i18next';
import './index.css';
import { ErrorMessage } from './ErrorMessageEnum';

Expand All @@ -18,6 +19,7 @@ interface ErrorDialogProps {
}

function ErrorDialog(props: ErrorDialogProps) {
const { t } = useTranslation();
const { errorMessage, isOpen } = props;

return (
Expand All @@ -37,7 +39,7 @@ function ErrorDialog(props: ErrorDialogProps) {
>
<Row center="xs" style={{ marginTop: '10px' }}>
<Col xs={12}>
<H3 className={Classes.TEXT_MUTED}>Deskreen Error Dialog</H3>
<H3 className={Classes.TEXT_MUTED}>{t('Deskreen Error Dialog')}</H3>
</Col>
</Row>
<Row middle="xs" center="xs" style={{ padding: '20px', width: '100%' }}>
Expand All @@ -51,17 +53,17 @@ function ErrorDialog(props: ErrorDialogProps) {
className={Classes.TEXT_DISABLED}
style={{ marginBottom: '0px' }}
>
Something wrong happened :(
{`${t('Something went wrong')} :(`}
</H1>
</Col>
</Row>
</Col>
</Row>
<Divider />
<div className={Classes.DIALOG_BODY}>
<H3 className={Classes.TEXT_MUTED}>{errorMessage}</H3>
<H3 className={Classes.TEXT_MUTED}>{t(`${errorMessage}`)}</H3>
<Divider />
<H2>You may close this browser window then try to connect again.</H2>
<H2>{`${t('You may close this browser window then try to connect again')}.`}</H2>
</div>
</Dialog>
);
Expand Down
17 changes: 9 additions & 8 deletions app/client/src/components/MyDeviceInfoCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useContext } from 'react';
import { Callout, Card, H3, Text, Tooltip, Position } from '@blueprintjs/core';
import { useTranslation } from 'react-i18next';
import { AppContext } from '../../providers/AppContextProvider';
import {
DARK_UI_BACKGROUND,
Expand All @@ -11,6 +12,7 @@ interface MyDeviceDetailsCardProps {
}

function MyDeviceInfoCard(props: MyDeviceDetailsCardProps) {
const { t } = useTranslation();
const { isDarkTheme } = useContext(AppContext);

const { deviceDetails } = props;
Expand All @@ -24,11 +26,11 @@ function MyDeviceInfoCard(props: MyDeviceDetailsCardProps) {
marginBottom: '30px',
}}
>
<H3>My Device Info:</H3>
<H3>{`${t('My Device Info')}:`}</H3>
<Callout>
<Text>Device Type: {myDeviceType}</Text>
<Text>{`${t('Device Type')}: ${myDeviceType}`}</Text>
<Tooltip
content="This should match with 'Device IP' in alert popup appeared on your computer, where Deskreen is running."
content={t('Your Device IP should match with Device IP in alert popup appeared on your computer, where Deskreen is running')}
position={Position.TOP}
>
<div
Expand All @@ -40,15 +42,14 @@ function MyDeviceInfoCard(props: MyDeviceDetailsCardProps) {
borderRadius: '20px',
}}
>
<Text>Device IP: {myIP}</Text>
<Text>{`${t('Device IP')}: ${myIP}`}</Text>
</div>
</Tooltip>
<Text>Device Browser: {myBrowser}</Text>
<Text>Device OS: {myOS}</Text>
<Text>{`${t('Device Browser')}: ${myBrowser}`}</Text>
<Text>{`${t('Device OS')}: ${myOS}`}</Text>
</Callout>
<Text className="bp3-text-muted">
These details should match with the ones that you see in alert popup on
screen sharing device.
{t('These details should match with the ones that you see in alert popup on computer screen, where Deskreen is running')}
</Text>
</Card>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ exports[`should match exact snapshot 1`] = `
<div
className=""
>
Donate!
Donate
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 1129b67

Please sign in to comment.