Skip to content

Commit

Permalink
Перевод консоли исследований РНД
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Apr 20, 2024
1 parent d1e365b commit 02c21ed
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 47 deletions.
24 changes: 11 additions & 13 deletions tgui/packages/tgui/interfaces/ExperimentConfigure.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,14 @@ export const TechwebServer = (props) => {
? act('clear_server')
: act('select_server', { ref: server.ref })
}
content={server.selected ? 'Disconnect' : 'Connect'}
content={server.selected ? 'Отключиться' : 'Подключиться'}
backgroundColor={server.selected ? 'good' : 'rgba(0, 0, 0, 0.4)'}
className="ExperimentTechwebServer__ConnectButton"
/>
</Flex.Item>
</Flex>
<Box className="ExperimentTechwebServer__WebContent">
<span>
Connectivity to this web is maintained by the following servers...
</span>
<span>Соединение к этой сети поддерживают следующие сервера...</span>
<LabeledList>
{server.all_servers.map((individual_servers, new_index) => (
<Box key={new_index}>{individual_servers}</Box>
Expand Down Expand Up @@ -127,11 +125,11 @@ export const ExperimentConfigure = (props) => {
<Window.Content>
<Flex direction="column" height="100%">
<Flex.Item mb={1}>
<Section title="Servers">
<Section title="Сервера">
<Box>
{webs.size > 0
? 'Please select a techweb to connect to...'
: 'Found no servers connected to a techweb!'}
? 'Пожалуйста, выберите техсеть для подключения...'
: 'Не найдены сервера, подключенные к техсети!'}
</Box>
{webs.size > 0 &&
Array.from(webs, ([techweb, techwebs]) => (
Expand All @@ -142,17 +140,17 @@ export const ExperimentConfigure = (props) => {
<Flex.Item mb={has_start_callback ? 1 : 0} grow={1}>
{techwebs.some((e) => e.selected) && (
<Section
title="Experiments"
title="Эксперименты"
className="ExperimentConfigure__ExperimentsContainer"
>
<Flex.Item mb={1}>
{(experiments.length &&
always_active &&
'This device is configured to attempt to perform all available' +
' experiments, so no further configuration is necessary.') ||
'Это устройство настроено для выполнения всех доступных' +
' экспериментов. Дальнейшие настройки не нужны.') ||
(experiments.length &&
'Select one of the following experiments...') ||
'No experiments found on this web'}
'Выберите один из следующих экспериментов...') ||
'Не найдены эксперименты в этой сети'}
</Flex.Item>
<Flex.Item>
{experiments.map((exp, i) => {
Expand All @@ -171,7 +169,7 @@ export const ExperimentConfigure = (props) => {
disabled={!experiments.some((e) => e.selected)}
icon="flask"
>
Perform Experiment
Выполнить эксперимент
</Button>
</Flex.Item>
)}
Expand Down
68 changes: 34 additions & 34 deletions tgui/packages/tgui/interfaces/Techweb.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ const TechwebStart = (props) => {
return (
<Modal width="15em" align="center" className="Techweb__LockedModal">
<div>
<b>Console Locked</b>
<b>Консоль заблокирована</b>
</div>
<Button icon="unlock" onClick={() => act('toggleLock')}>
Unlock
Разблокировать
</Button>
</Modal>
);
Expand All @@ -117,7 +117,7 @@ const TechwebStart = (props) => {
return (
<Modal width="25em" align="center" className="Techweb__LockedModal">
<div>
<b>No research techweb found, please synchronize the console.</b>
<b>Не обнаружена техсеть. Пожалуйста, синхронизируйте консоль.</b>
</div>
</Modal>
);
Expand Down Expand Up @@ -157,7 +157,7 @@ export const TechwebContent = (props) => {
<Flex className="Techweb__HeaderContent">
<Flex.Item>
<Box>
Available points:
Доступные очки:
<ul className="Techweb__PointSummary">
{Object.keys(points).map((k) => (
<li key={k}>
Expand All @@ -168,20 +168,20 @@ export const TechwebContent = (props) => {
</ul>
</Box>
<Box>
Security protocols:
Протоколы защиты:
<span
className={`Techweb__SecProtocol ${
!!sec_protocols && 'engaged'
}`}
>
{sec_protocols ? 'Engaged' : 'Disengaged'}
{sec_protocols ? 'включены' : 'отключены'}
</span>
</Box>
</Flex.Item>
<Flex.Item grow={1} />
<Flex.Item>
<Button fluid onClick={() => act('toggleLock')} icon="lock">
Lock Console
Заблокировать консоль
</Button>
{d_disk && (
<Flex.Item>
Expand All @@ -191,7 +191,7 @@ export const TechwebContent = (props) => {
setTechwebRoute({ route: 'disk', diskType: 'design' })
}
>
Design Disk Inserted
Диск дизайнов вставлен
</Button>
</Flex.Item>
)}
Expand All @@ -203,7 +203,7 @@ export const TechwebContent = (props) => {
setTechwebRoute({ route: 'disk', diskType: 'tech' })
}
>
Tech Disk Inserted
Диск технологий вставлен
</Button>
</Flex.Item>
)}
Expand Down Expand Up @@ -269,27 +269,27 @@ const TechwebOverview = (props) => {
<Flex.Item>
<Flex justify="space-between" className="Techweb__HeaderSectionTabs">
<Flex.Item align="center" className="Techweb__HeaderTabTitle">
Web View
Просмотр техсети
</Flex.Item>
<Flex.Item grow={1}>
<Tabs>
<Tabs.Tab
selected={!searching && tabIndex === 0}
onClick={() => switchTab(0)}
>
Researched
Изученные
</Tabs.Tab>
<Tabs.Tab
selected={!searching && tabIndex === 1}
onClick={() => switchTab(1)}
>
Available
Доступные
</Tabs.Tab>
<Tabs.Tab
selected={!searching && tabIndex === 2}
onClick={() => switchTab(2)}
>
Future
Будущие
</Tabs.Tab>
{!!searching && <Tabs.Tab selected>Search Results</Tabs.Tab>}
</Tabs>
Expand Down Expand Up @@ -346,20 +346,20 @@ const TechwebDiskMenu = (props) => {
</Flex.Item>
<Flex.Item grow={1}>
<Tabs>
<Tabs.Tab selected>Stored Data</Tabs.Tab>
<Tabs.Tab selected>Записанная информация</Tabs.Tab>
</Tabs>
</Flex.Item>
<Flex.Item align="center">
{diskType === 'tech' && (
<Button icon="save" onClick={() => act('loadTech')}>
Web &rarr; Disk
Сеть &rarr; Диск
</Button>
)}
<Button
icon="upload"
onClick={() => act('uploadDisk', { type: diskType })}
>
Disk &rarr; Web
Диск &rarr; Сеть
</Button>
<Button
icon="eject"
Expand Down Expand Up @@ -391,10 +391,10 @@ const TechwebDesignDisk = (props) => {
return (
<>
{blueprints.map((x, i) => (
<Section key={i} title={`Slot ${i + 1}`}>
{(x === null && 'Empty') || (
<Section key={i} title={`Слот ${i + 1}`}>
{(x === null && 'Пусто') || (
<>
Contains the design for <b>{design_cache[x].name}</b>:<br />
Содержит дизайн для <b>{design_cache[x].name}</b>:<br />
<span
className={`${design_cache[x].class} Techweb__DesignIcon`}
/>
Expand Down Expand Up @@ -436,28 +436,28 @@ const TechNodeDetail = (props) => {
<Flex.Item shrink={1}>
<Flex justify="space-between" className="Techweb__HeaderSectionTabs">
<Flex.Item align="center" className="Techweb__HeaderTabTitle">
Node
Узел
</Flex.Item>
<Flex.Item grow={1}>
<Tabs>
<Tabs.Tab
selected={tabIndex === 0}
onClick={() => setTabIndex(0)}
>
Required ({complPrereq}/{prereqNodes.length})
Требования ({complPrereq}/{prereqNodes.length})
</Tabs.Tab>
<Tabs.Tab
selected={tabIndex === 1}
disabled={unlockedNodes.length === 0}
onClick={() => setTabIndex(1)}
>
Unlocks ({unlockedNodes.length})
Разблокирует ({unlockedNodes.length})
</Tabs.Tab>
</Tabs>
</Flex.Item>
<Flex.Item align="center">
<Button icon="home" onClick={() => setTechwebRoute(null)}>
Home
Домой
</Button>
</Flex.Item>
</Flex>
Expand Down Expand Up @@ -520,7 +520,7 @@ const TechNode = (props) => {
}}
value={expcompl / required_experiments.length}
>
Experiments ({expcompl}/{required_experiments.length})
Эксперименты ({expcompl}/{required_experiments.length})
</ProgressBar>
);

Expand All @@ -536,7 +536,7 @@ const TechNode = (props) => {
}}
value={techcompl / prereq_ids.length}
>
Tech ({techcompl}/{prereq_ids.length})
Технологии ({techcompl}/{prereq_ids.length})
</ProgressBar>
);

Expand All @@ -563,7 +563,7 @@ const TechNode = (props) => {
setTabIndex(0);
}}
>
Details
Детали
</Button>
)}
{tier > 0 && (
Expand All @@ -572,7 +572,7 @@ const TechNode = (props) => {
disabled={!can_unlock || tier > 1}
onClick={() => act('researchNode', { node_id: id })}
>
Research
Изучить
</Button>
)}
</>
Expand Down Expand Up @@ -631,7 +631,7 @@ const TechNode = (props) => {
{required_experiments.length > 0 && (
<Collapsible
className="Techweb__NodeExperimentsRequired"
title="Required Experiments"
title="Необходимые эксперименты"
>
{required_experiments.map((k, index) => {
const thisExp = experiments[k];
Expand All @@ -645,7 +645,7 @@ const TechNode = (props) => {
{Object.keys(discount_experiments).length > 0 && (
<Collapsible
className="TechwebNodeExperimentsRequired"
title="Discount-Eligible Experiments"
title="Эксперименты для скидки"
>
{Object.keys(discount_experiments).map((k, index) => {
const thisExp = experiments[k];
Expand All @@ -655,8 +655,8 @@ const TechNode = (props) => {
return (
<Experiment key={thisExp} exp={thisExp}>
<Box className="Techweb__ExperimentDiscount">
Provides a discount of {discount_experiments[k]} points to all
required point pools.
Предоставляет скидку в виде {discount_experiments[k]} очков
подходящим технологиям.
</Box>
</Experiment>
);
Expand All @@ -679,14 +679,14 @@ const LockedExperiment = (props) => {
<Flex align="center" justify="space-between">
<Flex.Item color="rgba(0, 0, 0, 0.6)">
<Icon name="lock" />
Undiscovered Experiment
Неизвестный эксперимент
</Flex.Item>
<Flex.Item color="rgba(0, 0, 0, 0.5)">???</Flex.Item>
</Flex>
</Button>
<Box className={'ExperimentConfigure__ExperimentContent'}>
This experiment has not been discovered yet, continue researching nodes
in the tree to discover the contents of this experiment.
Этот эксперимент еще не известен. Продолжайте изучать узлы в сети
технологий, чтобы распознать его.
</Box>
</Box>
);
Expand Down

0 comments on commit 02c21ed

Please sign in to comment.