Skip to content

Commit

Permalink
loadout translate (#330)
Browse files Browse the repository at this point in the history
## About The Pull Request
Добавляет перевод для лодаута (не для каждого объекта в нём)

Известный баг: нельзя сменить цвет. Это не проблема в переводе, а в
мастере.
  • Loading branch information
larentoun committed Jul 12, 2024
1 parent fe2477e commit ef649bb
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions code/modules/loadout/categories/accessories.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Accessory Items (Moves overrided items to backpack)
/datum/loadout_category/accessories
category_name = "Accessory"
category_name = "Аксессуары"
category_ui_icon = FA_ICON_VEST
type_to_generate = /datum/loadout_item/accessory
tab_order = /datum/loadout_category/head::tab_order + 3
Expand Down Expand Up @@ -84,7 +84,7 @@
/datum/loadout_item/accessory/full_pocket_protector
name = "Pocket Protector (Filled)"
item_path = /obj/item/clothing/accessory/pocketprotector/full
additional_displayed_text = list("Contains pens")
additional_displayed_text = list("Внутри - ручки")

/datum/loadout_item/accessory/pride
name = "Pride Pin"
Expand Down
4 changes: 2 additions & 2 deletions code/modules/loadout/categories/glasses.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Glasses Slot Items (Moves overrided items to backpack)
/datum/loadout_category/glasses
category_name = "Glasses"
category_name = "Очки"
category_ui_icon = FA_ICON_GLASSES
type_to_generate = /datum/loadout_item/glasses
tab_order = /datum/loadout_category/head::tab_order + 1
Expand All @@ -16,7 +16,7 @@
/datum/loadout_item/glasses/prescription_glasses
name = "Glasses"
item_path = /obj/item/clothing/glasses/regular
additional_displayed_text = list("Prescription")
additional_displayed_text = list("Слабовидящие")

/datum/loadout_item/glasses/prescription_glasses/circle_glasses
name = "Circle Glasses"
Expand Down
4 changes: 2 additions & 2 deletions code/modules/loadout/categories/heads.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Head Slot Items (Deletes overrided items)
/datum/loadout_category/head
category_name = "Head"
category_name = "Голова"
category_ui_icon = FA_ICON_HAT_COWBOY
type_to_generate = /datum/loadout_item/head
tab_order = 1
Expand Down Expand Up @@ -135,4 +135,4 @@
/datum/loadout_item/head/wig
name = "Wig"
item_path = /obj/item/clothing/head/wig/natural
additional_displayed_text = list("Hair Color")
additional_displayed_text = list("Цвет волос")
2 changes: 1 addition & 1 deletion code/modules/loadout/categories/inhands.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Inhand items (Moves overrided items to backpack)
/datum/loadout_category/inhands
category_name = "Inhand"
category_name = "В руках"
category_ui_icon = FA_ICON_BRIEFCASE
type_to_generate = /datum/loadout_item/inhand
tab_order = /datum/loadout_category/head::tab_order + 4
Expand Down
2 changes: 1 addition & 1 deletion code/modules/loadout/categories/neck.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Neck Slot Items (Deletes overrided items)
/datum/loadout_category/neck
category_name = "Neck"
category_name = "Шея"
category_ui_icon = FA_ICON_USER_TIE
type_to_generate = /datum/loadout_item/neck
tab_order = /datum/loadout_category/head::tab_order + 2
Expand Down
6 changes: 3 additions & 3 deletions code/modules/loadout/categories/pocket.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Pocket items (Moved to backpack)
/datum/loadout_category/pocket
category_name = "Other"
category_name = "Другое"
category_ui_icon = FA_ICON_QUESTION
type_to_generate = /datum/loadout_item/pocket_items
tab_order = /datum/loadout_category/head::tab_order + 5
Expand All @@ -9,7 +9,7 @@

/datum/loadout_category/pocket/New()
. = ..()
category_info = "([max_allowed] allowed)"
category_info = "(максимум: [max_allowed])"

/datum/loadout_category/pocket/handle_duplicate_entires(
datum/preference_middleware/loadout/manager,
Expand Down Expand Up @@ -100,7 +100,7 @@
name = "Plush (Lizard, Random)"
can_be_greyscale = DONT_GREYSCALE
item_path = /obj/item/toy/plush/lizard_plushie
additional_displayed_text = list("Random color")
additional_displayed_text = list("Случайный цвет")

/datum/loadout_item/pocket_items/plush/moth
name = "Plush (Moth)"
Expand Down
10 changes: 5 additions & 5 deletions code/modules/loadout/loadout_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ GLOBAL_LIST_INIT(all_loadout_categories, init_loadout_categories())
displayed_text += (additional_displayed_text || list())

if(can_be_greyscale)
displayed_text += "Recolorable"
displayed_text += "Смена цвета"

if(can_be_named)
displayed_text += "Renamable"
displayed_text += "Смена имени"

if(can_be_reskinned)
displayed_text += "Reskinnable"
displayed_text += "Смена стиля"

return displayed_text

Expand All @@ -336,15 +336,15 @@ GLOBAL_LIST_INIT(all_loadout_categories, init_loadout_categories())

if(can_be_greyscale)
UNTYPED_LIST_ADD(button_list, list(
"label" = "Recolor",
"label" = "Перекрасить",
"act_key" = "select_color",
"button_icon" = FA_ICON_PALETTE,
"active_key" = INFO_GREYSCALE,
))

if(can_be_named)
UNTYPED_LIST_ADD(button_list, list(
"label" = "Rename",
"label" = "Переименовать",
"act_key" = "set_name",
"button_icon" = FA_ICON_PEN,
"active_key" = INFO_NAMED,
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const ButtonConfirm = (props: ConfirmProps) => {
children,
color,
confirmColor = 'bad',
confirmContent = 'Confirm?',
confirmContent = 'Уверены?',
confirmIcon,
ellipsis = true,
icon,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const CharacterPreferenceWindow = (props) => {
page={Page.Loadout}
setPage={setCurrentPage}
>
Loadout
Снаряжение
</PageButton>
</Stack.Item>

Expand Down
12 changes: 6 additions & 6 deletions tgui/packages/tgui/interfaces/PreferencesMenu/loadout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const LoadoutPageInner = (props: { loadout_tabs: LoadoutCategory[] }) => {
<Input
width="200px"
onInput={(_, value) => setSearchLoadout(value)}
placeholder="Search for an item..."
placeholder="Поиск по названию..."
value={searchLoadout}
/>
}
Expand Down Expand Up @@ -145,7 +145,7 @@ const LoadoutTabs = (props: {
<Stack.Item grow>
{searching || activeCategory?.contents ? (
<Section
title={searching ? 'Searching...' : 'Catalog'}
title={searching ? 'Поиск...' : 'Каталог'}
fill
scrollable
buttons={
Expand All @@ -171,7 +171,7 @@ const LoadoutTabs = (props: {
</Section>
) : (
<Section fill>
<Box>No contents for selected tab.</Box>
<Box>Нет содержимого для данной категории.</Box>
</Section>
)}
</Stack.Item>
Expand Down Expand Up @@ -262,10 +262,10 @@ const LoadoutSelectedSection = (props: {
color="red"
align="center"
disabled={!loadout_list || Object.keys(loadout_list).length === 0}
tooltip="Clears ALL selected items from all categories."
tooltip="Очищает выбор ВСЕХ предметов из всех категорий."
onClick={() => act('clear_all_items')}
>
Clear All
Очистить всё
</Button.Confirm>
}
>
Expand Down Expand Up @@ -298,7 +298,7 @@ const LoadoutPreviewSection = () => {
checked={data.job_clothes}
onClick={() => act('toggle_job_clothes')}
>
Job Clothes
Показывать профессию
</Button.Checkbox>
}
>
Expand Down

0 comments on commit ef649bb

Please sign in to comment.