Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translation: brig cells and computer #6224

Open
wants to merge 2 commits into
base: master220
Choose a base branch
from

Conversation

syndicatecat
Copy link
Contributor

Описание

Перевод камер заключённых в бриге, их оповещений, фраз и компьютера для управления ими.

Ссылка на предложение/Причина создания ПР

Перевод

Демонстрация изменений

image
image

@github-actions github-actions bot added TGUI Affects TGUI javascript Pull requests that update Javascript code labels Dec 3, 2024
Comment on lines 125 to +142
/proc/seconds_to_time(var/seconds as num)
var/numSeconds = seconds % 60
var/numMinutes = (seconds - numSeconds) / 60
return "[numMinutes] [numMinutes > 1 ? "minutes" : "minute"] and [numSeconds] seconds"

var/sufM = .

var/list/nums1 = list(1, 21, 31, 41, 51)
var/list/nums2 = list(2, 3, 4, 22, 23, 24, 32, 33, 34, 42, 43, 44, 52, 53, 54)
var/list/nums3 = list(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26, 27, 28, 29, 30, 35, 36, 37, 38, 39, 40, 45, 46, 47, 48, 49, 50, 55, 56, 57, 58, 59, 60)

if(numMinutes in nums1)
sufM = "минуту"
if (numMinutes in nums2)
sufM = "минуты"
if (numMinutes in nums3)
sufM = "минут"

return "[numMinutes] [sufM]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Сделать отдельный seconds_to_time_ru
  2. В уже seconds_to_time_ru воспользоваться силой математики и найти с помощью нее суффикс, а не хардкодом в виде num1, num2, num3

@Den109G Den109G added the перевод Съешь же ещё этих мягких французских булок, да выпей чаю label Dec 7, 2024
@github-actions github-actions bot added the Merge Conflict This doesn't seem right label Dec 13, 2024
@PlayerUnknown14 PlayerUnknown14 self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code Merge Conflict This doesn't seem right TGUI Affects TGUI перевод Съешь же ещё этих мягких французских булок, да выпей чаю
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants