Skip to content

Commit

Permalink
kbdlight_timeout: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV authored and nekr0z committed May 5, 2023
1 parent 31b7615 commit b17e8c5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/translations/active.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ CantSetBattery = "failed to set thresholds"
CantSetBatteryMax = "Failed to set max threshold"
CantSetBatteryMin = "Failed to set min threshold"
CantSetFnlockDriver = "Could not set Fn-Lock status through driver interface"
CantSetKdblightTimeout = "Failed to set keyboard light timeout"
CantToggleFnlock = "Failed to toggle Fn-Lock"
CantUnderstandBattery = "Can not make sense of driver interface value {{.Value}}"
ChangeValue = "Change"
CustomWindowTitle = "Charging thresholds"
DoCustom = "CUSTOM"
DoHome = "HOME (40%-70%)"
Expand All @@ -37,7 +39,12 @@ FnlockStatusError = "ERROR: Fn-Lock state unknown"
FoundBattery = "Found writable battery thresholds endpoint, will use it"
FoundBatteryPers = "Persistence thresholds values endpoint found."
FoundFnlock = "Found writable fnlock endpoint, will use it"
FoundKdblightTimeout = "Found writable kdblight_timeout endpoint, will use it"
GotCustomIcon = "Successfully loaded custom icon from {{.Path}}"
KbdlightTimeoutExplain = "Keyboard light will stay on for this number of seconds when enabled. 0 = forever."
KbdlightTimeoutWindowTitle = "Keyboard Light Timeout"
KdblightTimeoutStatusError = "ERROR: Keyboard light timeout unknown"
KdblightTimeoutStatusOff = "Keyboard light timeout is off"
LookingForBatteryPers = "looking for endpoint to save thresholds to..."
MaxThresholdExplain = "MAX: the battery won't be charged above this level"
MinThresholdExplain = "MIN: the battery won't be charged unless it is lower than this level when AC is plugged"
Expand All @@ -59,4 +66,9 @@ StatusOffice = "OFFICE"
StatusOn = "ON"
StatusTravel = "TRAVEL"
StrangeFnlock = "Fn-lock state reported by driver doesn't make sense"
StrangeKdblightTimeout = "Keyboard light timeout reported by driver doesn't make sense"
StrangeThresholds = "BP thresholds don't make sense: min {{.Min}}%, max {{.Max}}%"

[KdblightTimeoutStatusOn]
one = "Keyboard light timeout is {{.Timeout}}s."
other = "Keyboard light timeout is {{.Timeout}}s."
39 changes: 39 additions & 0 deletions assets/translations/active.ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ other = "Не удалось установить нижний порог"
hash = "sha1-078c7d74e485c2a6e456eb5f6bcaac907c36f023"
other = "Не удалось выставить состояние Fn-Lock через драйвер"

[CantSetKdblightTimeout]
hash = "sha1-f18019a866f82e37dbaa06c6fefef1c6af685ccf"
other = "Не удалось установить время выключения подсветки клавиатуры"

[CantToggleFnlock]
hash = "sha1-e604129118f45b8985c1f828bc58d0835e3b0a86"
other = "Не удалось переключить Fn-Lock"
Expand All @@ -74,6 +78,10 @@ other = "Не удалось переключить Fn-Lock"
hash = "sha1-2969995b65bc6bc17ee2e06106f559361452963c"
other = "Непонятное значение: {{.Value}} получено от драйвера"

[ChangeValue]
hash = "sha1-64fbd995d3b6b156ee26ae3c03e6516434c34c12"
other = "Изменить"

[CustomWindowTitle]
hash = "sha1-c285a1c9d64cd3f8f3f21f58d8cce93567cfa714"
other = "Пороги заряда"
Expand Down Expand Up @@ -154,10 +162,37 @@ other = "Обнаружен интерфейс для сохранения зн
hash = "sha1-056676c11e2b7af1303427004a156d4378b60c3c"
other = "Обнаружен доступный на запись интерфейс fnlock, используем его"

[FoundKdblightTimeout]
hash = "sha1-5b60ccc7b801501f16db057a24440bb6b3313e32"
other = "Обнаружен доступный на запись интерфейс времени выключения подсветки клавиатуры, используем его"

[GotCustomIcon]
hash = "sha1-a209c78b902dfab942c15fc98a3e2d75d94b1031"
other = "Значок из {{.Path}} успешно загружен"

[KbdlightTimeoutExplain]
hash = "sha1-744bffa2646ecdaf750f8ef4ccbb6cc72bcfa045"
other = "Подсветка будет выключена после стольки секунд бездействия.\n0 — подсветка выключаться не будет"

[KbdlightTimeoutWindowTitle]
hash = "sha1-b47c880a47fcb12afe224c4ae9cb1acc8e4aeffc"
other = "Время выключения подсветки клавиатуры"

[KdblightTimeoutStatusError]
hash = "sha1-9c0c2fa49a53b911767a0f2bdcfafa646dac2e38"
other = "ОШИБКА: не удалось считать время выключения подсветки клавиатуры!"

[KdblightTimeoutStatusOff]
hash = "sha1-f1b46ddfdc82cc57b435c22f8cfdc03fb2c085c6"
other = "Подсветка клавиатуры выключаться при бездействии не будет"

[KdblightTimeoutStatusOn]
few = "Подсветка будет выключена после {{.Timeout}} секунд бездействия"
hash = "sha1-37856414ff82b77ca76ad5522f056f3638614a9d"
many = "Подсветка будет выключена после {{.Timeout}} секунд бездействия"
one = "Подсветка будет выключена после {{.Timeout}} секунды бездействия"
other = "Подсветка будет выключена после {{.Timeout}} секунд бездействия"

[LookingForBatteryPers]
hash = "sha1-b60af6cc22f7957c7e74d597fea9205c4c3e9814"
other = "поиск интерфейса для сохранения пороговых значений..."
Expand Down Expand Up @@ -242,6 +277,10 @@ other = "ПОЕЗДКА"
hash = "sha1-fc0f7d131e287a7cc8ef65fa37eb8cbf47a81fa2"
other = "Состояние Fn-lock, полученное от драйвера, бессмысленно"

[StrangeKdblightTimeout]
hash = "sha1-fa596916060e9197f268055b366b0a828adfafe3"
other = "Драйвер вернул очень странное значение для времени выключения подсветки клавиатуры"

[StrangeThresholds]
hash = "sha1-78c6ce6350b1637a19cfa3d886ba0c4b9f2ccdf5"
other = "Пороговые значения для батареи: мин. {{.Min}}%, макс. {{.Max}}% - не имеют смысла"

0 comments on commit b17e8c5

Please sign in to comment.