Skip to content

Commit

Permalink
Prefs translate to master (#1102)
Browse files Browse the repository at this point in the history
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то
может пойти не так. -->
<!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. -->

## Что этот PR делает

<!-- Вкратце опишите изменения, которые вносите. -->
<!-- Опишите **все** изменения, так как противное может сказаться на
рассмотрении этого PR'а! -->
<!-- Если вы исправляете Issue, добавьте "Fixes #xxxx" (где xxxx - номер
Issue) где-нибудь в описании PR'а. Это автоматически закроет Issue после
принятия PR'а. -->

Переносит транслате из транслате в мастер для префов

## Summary by Sourcery

Documentation:
- Translate user-facing text in the Character, Jobs, Quirks, Species,
Loadout, Antags, and main preferences menus from English to Russian.
  • Loading branch information
larentoun authored Jan 30, 2025
1 parent 6d7d201 commit e537752
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ function AntagSelection(props: AntagSelectionProps) {
buttons={
<>
<Button color="good" onClick={() => enableAntags(antagonistKeys)}>
Enable All
Включить всё
</Button>

<Button color="bad" onClick={() => disableAntags(antagonistKeys)}>
Disable All
Отключить всё
</Button>
</>
}
Expand Down Expand Up @@ -204,17 +204,17 @@ export function AntagsPage() {
return (
<Box className="PreferencesMenu__Antags">
<AntagSelection
name="Roundstart"
name="Начало раунда"
antagonists={antagsByCategory.get(Category.Roundstart)!}
/>

<AntagSelection
name="Midround"
name="Во время раунда"
antagonists={antagsByCategory.get(Category.Midround)!}
/>

<AntagSelection
name="Latejoin"
name="Позднее прибытие"
antagonists={antagsByCategory.get(Category.Latejoin)!}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ function PriorityHeaders() {
<Stack>
<Stack.Item grow />

<Stack.Item className={className}>Off</Stack.Item>
<Stack.Item className={className}>Откл.</Stack.Item>

<Stack.Item className={className}>Low</Stack.Item>
<Stack.Item className={className}>Низк.</Stack.Item>

<Stack.Item className={className}>Medium</Stack.Item>
<Stack.Item className={className}>Средн.</Stack.Item>

<Stack.Item className={className}>High</Stack.Item>
<Stack.Item className={className}>Высок.</Stack.Item>
</Stack>
);
}
Expand All @@ -128,7 +128,7 @@ function PriorityButtons(props: PriorityButtonsProps) {
{isOverflow ? (
<>
<PriorityButton
name="Off"
name="Отключить"
modifier="off"
color="light-grey"
enabled={!priority}
Expand All @@ -145,29 +145,29 @@ function PriorityButtons(props: PriorityButtonsProps) {
) : (
<>
<PriorityButton
name="Off"
name="Отключить"
modifier="off"
color="light-grey"
enabled={!priority}
onClick={createSetPriority(null)}
/>

<PriorityButton
name="Low"
name="Низкий"
color="red"
enabled={priority === JobPriority.Low}
onClick={createSetPriority(JobPriority.Low)}
/>

<PriorityButton
name="Medium"
name="Средний"
color="yellow"
enabled={priority === JobPriority.Medium}
onClick={createSetPriority(JobPriority.Medium)}
/>

<PriorityButton
name="High"
name="Высокий"
color="green"
enabled={priority === JobPriority.High}
onClick={createSetPriority(JobPriority.High)}
Expand Down Expand Up @@ -206,23 +206,23 @@ function JobRow(props: JobRowProps) {
rightSide = (
<Stack align="center" height="100%" pr={1}>
<Stack.Item grow textAlign="right">
<b>{hoursNeeded}h</b> as {experience_type}
<b>{hoursNeeded}h</b> как {experience_type}
</Stack.Item>
</Stack>
);
} else if (daysLeft > 0) {
rightSide = (
<Stack align="center" height="100%" pr={1}>
<Stack.Item grow textAlign="right">
<b>{daysLeft}</b> day{daysLeft === 1 ? '' : 's'} left
Нужно ещё дней: <b>{daysLeft}</b>
</Stack.Item>
</Stack>
);
} else if (data.job_bans && data.job_bans.indexOf(name) !== -1) {
rightSide = (
<Stack align="center" height="100%" pr={1}>
<Stack.Item grow textAlign="right">
<b>Banned</b>
<b>Забанен</b>
</Stack.Item>
</Stack>
);
Expand All @@ -247,7 +247,7 @@ function JobRow(props: JobRowProps) {
paddingLeft: '0.3em',
}}
>
{JOBS_RU[name] ? JOBS_RU[name] : name}
{JOBS_RU[name] || name}
</Stack.Item>
</Tooltip>

Expand Down Expand Up @@ -324,15 +324,15 @@ function JoblessRoleDropdown(props) {

const options = [
{
displayText: `Присоединиться за ${JOBS_RU[data.overflow_role] ? JOBS_RU[data.overflow_role] : data.overflow_role} если не удалось войти`,
displayText: `Присоединиться за ${JOBS_RU[data.overflow_role] || data.overflow_role} если не удалось войти`,
value: JoblessRole.BeOverflow,
},
{
displayText: `Join as a random job if unavailable`,
displayText: `Выбрать случайную должность, если не удалось войти`,
value: JoblessRole.BeRandomJob,
},
{
displayText: `Return to lobby if unavailable`,
displayText: `Вернуться в лобби, если не удалось войти`,
value: JoblessRole.ReturnToLobby,
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function CharacterControls(props: CharacterControlsProps) {
onClick={props.handleRotate}
fontSize="22px"
icon="undo"
tooltip="Rotate"
tooltip="Повернуть"
tooltipPosition="top"
/>
</Stack.Item>
Expand All @@ -66,7 +66,7 @@ function CharacterControls(props: CharacterControlsProps) {
onClick={props.handleOpenSpecies}
fontSize="22px"
icon="paw"
tooltip="Species"
tooltip="Вид"
tooltipPosition="top"
/>
</Stack.Item>
Expand Down Expand Up @@ -98,7 +98,7 @@ function ChoicedSelection(props: ChoicedSelectionProps) {
const [getSearchText, searchTextSet] = useState('');

if (!catalog.icons) {
return <Box color="red">Provided catalog had no icons!</Box>;
return <Box color="red">В предоставленном каталоге не было иконок!</Box>;
}

return (
Expand Down Expand Up @@ -136,7 +136,7 @@ function ChoicedSelection(props: ChoicedSelectionProps) {
textAlign: 'center',
}}
>
Select {props.name.toLowerCase()}
Выбрать {props.name.toLowerCase()}
</Box>
</Stack.Item>

Expand All @@ -151,7 +151,7 @@ function ChoicedSelection(props: ChoicedSelectionProps) {
<Stack.Item overflowX="hidden" overflowY="scroll">
<Autofocus>
<Input
placeholder="Search..."
placeholder="Поиск..."
style={{
margin: '0px 5px',
width: '95%',
Expand Down Expand Up @@ -253,7 +253,7 @@ function GenderButton(props: GenderButtonProps) {
}}
fontSize="22px"
icon={GENDERS[props.gender].icon}
tooltip="Gender"
tooltip="Пол"
tooltipPosition="top"
/>
</Popper>
Expand Down Expand Up @@ -417,7 +417,7 @@ export function PreferenceList(props: PreferenceListProps) {
if (feature === undefined) {
return (
<Stack.Item key={featureId}>
<b>Feature {featureId} is not recognized.</b>
<b>Компонент {featureId} не распознан.</b>
</Stack.Item>
);
}
Expand Down Expand Up @@ -676,7 +676,7 @@ export function MainPage(props: MainPageProps) {
} // check if existing chars more than one
onClick={() => setDeleteCharacterPopupOpen(true)}
>
Delete Character
Удалить персонажа
</Button>
</Box>
</PreferenceList>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function QuirkPopper(props: QuirkPopperProps) {
<Button
selected={customizationExpanded}
icon="cog"
tooltip="Customize"
tooltip="Настроить"
onClick={(e) => {
e.stopPropagation();
setCustomizationExpanded(!customizationExpanded);
Expand Down Expand Up @@ -359,9 +359,9 @@ export function QuirksPage(props) {

if (quirk.value > 0) {
if (maxPositiveQuirks !== -1 && positiveQuirks >= maxPositiveQuirks) {
return "You can't have any more positive quirks!";
return 'Вы не можете иметь еще больше позитивных черт!';
} else if (pointsEnabled && balance + quirk.value > 0) {
return 'You need a negative quirk to balance this out!';
return 'Вам нужна отрицательная черта, чтобы получить очки!';
}
}

Expand All @@ -379,7 +379,7 @@ export function QuirksPage(props) {
incompatibleQuirk !== quirk.name &&
selectedQuirkNames.indexOf(incompatibleQuirk) !== -1
) {
return `This is incompatible with ${incompatibleQuirk}!`;
return `Несовместимо с ${incompatibleQuirk}!`;
}
}
}
Expand All @@ -391,7 +391,7 @@ export function QuirksPage(props) {
const quirk = quirkInfo[quirkName];

if (pointsEnabled && balance - quirk.value > 0) {
return 'You need to remove a positive quirk first!';
return 'Нужно убрать позитивную черту!';
}

return;
Expand All @@ -403,7 +403,7 @@ export function QuirksPage(props) {
<Stack vertical fill align="center">
<Stack.Item>
{maxPositiveQuirks > 0 ? (
<Box fontSize="1.3em">Positive Quirks</Box>
<Box fontSize="1.3em">Позитивные черты</Box>
) : (
<Box mt={pointsEnabled ? 3.4 : 0} />
)}
Expand All @@ -421,12 +421,12 @@ export function QuirksPage(props) {

<Stack.Item>
<Box as="b" fontSize="1.6em">
Available Quirks
Доступные черты
</Box>
</Stack.Item>
<Stack.Item>
<Input
placeholder="Search quirks..."
placeholder="Поиск черт..."
width="200px"
value={searchQuery}
onInput={(text, value) => setSearchQuery(value)}
Expand Down Expand Up @@ -475,7 +475,7 @@ export function QuirksPage(props) {
<Stack vertical fill align="center">
<Stack.Item>
{pointsEnabled ? (
<Box fontSize="1.3em">Quirk Balance</Box>
<Box fontSize="1.3em">Баланс черт</Box>
) : (
<Box mt={maxPositiveQuirks > 0 ? 3.4 : 0} />
)}
Expand All @@ -489,7 +489,7 @@ export function QuirksPage(props) {
</Stack.Item>
<Stack.Item>
<Box as="b" fontSize="1.6em">
Current Quirks
Текущие черты
</Box>
</Stack.Item>
&nbsp; {/* Filler to better align the menu*/}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function Diet(props: DietProps) {
<FoodList
food={liked_food}
icon="heart"
name="Liked food"
name="Любимая пища"
className="color-pink"
/>
</Stack.Item>
Expand All @@ -155,7 +155,7 @@ function Diet(props: DietProps) {
<FoodList
food={disliked_food.filter(notIn(IGNORE_UNLESS_LIKED))}
icon="thumbs-down"
name="Disliked food"
name="Нелюбимая пища"
className="color-red"
/>
</Stack.Item>
Expand All @@ -164,7 +164,7 @@ function Diet(props: DietProps) {
<FoodList
food={toxic_food.filter(notIn(IGNORE_UNLESS_LIKED))}
icon="biohazard"
name="Toxic food"
name="Токсичная пища"
className="color-olive"
/>
</Stack.Item>
Expand Down Expand Up @@ -281,7 +281,7 @@ function SpeciesPageInner(props: SpeciesPageInnerProps) {
<Stack vertical fill>
<Stack.Item>
<Button icon="arrow-left" onClick={props.handleClose}>
Go Back
Вернуться
</Button>
</Stack.Item>

Expand Down Expand Up @@ -329,11 +329,11 @@ function SpeciesPageInner(props: SpeciesPageInnerProps) {
)
}
>
<Section title="Description">
<Section title="Описание вида">
{currentSpecies.desc}
</Section>

<Section title="Features">
<Section title="Черты">
<SpeciesPerks perks={currentSpecies.perks} />
</Section>
</Section>
Expand All @@ -349,7 +349,7 @@ function SpeciesPageInner(props: SpeciesPageInnerProps) {
</Box>

<Box mt={1}>
<Section title="Lore">
<Section title="История">
<BlockQuote>
{currentSpecies.lore.map((text, index) => (
<Box key={index} maxWidth="100%">
Expand Down
Loading

0 comments on commit e537752

Please sign in to comment.