From 62b1854d8c5e1e5ebf3d8ff8818676c3655e82ee Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Sun, 1 Jun 2025 18:16:13 +0300 Subject: [PATCH 1/4] Create ru_RU.ts --- ags/i18n/lang/ru_RU.ts | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 ags/i18n/lang/ru_RU.ts diff --git a/ags/i18n/lang/ru_RU.ts b/ags/i18n/lang/ru_RU.ts new file mode 100644 index 0000000..57f9b8d --- /dev/null +++ b/ags/i18n/lang/ru_RU.ts @@ -0,0 +1,86 @@ +import { i18nStruct } from "../struct"; + +export default { + language: "Русский (Российская Федерация)", + + cancel: "Отменить", + accept: "Ок", + devices: "Устройства", + others: "Другие", + + connected: "Подключён", + disconnected: "Отключён", + unknown: "Неизвестный", + connecting: "Подключение", + none: "Ничего", + limited: "Ограничен", + apps: "Приложения", + + clear: "Очистить", + + connect: "Подключиться", + disconnect: "Отключиться", + + control_center: { + tiles: { + enabled: "Включить", + disabled: "Отключить", + more: "Больше", + + network: { + network: "Инетрнет", + wireless: "Беспроводное", + wired: "Проводное" + }, + recording: { + title: "Запись экрана", + disabled_desc: "Начать запись", + enabled_desc: "Остановить запись", + }, + dnd: { + title: "Не беспокоить" + }, + night_light: { + title: "Ночной свет", + default_desc: "Точность" + } + }, + pages: { + more_settings: "Больше настроек", + sound: { + title: "Звук", + description: "Настройка вывода звука" + }, + microphone: { + title: "Микрофон", + description: "Настройка ввода звука" + }, + night_light: { + title: "Ночной свет", + description: "Контроль интенсивности фильтрации синего света", + gamma: "Гамма", + temperature: "Температура" + }, + bluetooth: { + title: "Bluetooth", + description: "Управление Bluetooth устройствами", + new_devices: "Новые устройства", + adapters: "Адапреты", + paired_devices: "Привязанные устройства", + start_discovering: "Начать поиск", + stop_discovering: "Остановить поиск", + untrust_device: "Не доверять устройству", + unpair_device: "Отвязать устройство", + trust_device: "Доверять устройству", + pair_device: "Привязать устройство" + }, + network: { + title: "Интернет", + interface: "Интерфейсы" + } + } + }, + ask_popup: { + title: "Вопрос" + } +} as i18nStruct; From 588bd043c1fec95b8386418337114360ad02bf93 Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Sun, 1 Jun 2025 18:17:13 +0300 Subject: [PATCH 2/4] Update intl.ts --- ags/i18n/intl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ags/i18n/intl.ts b/ags/i18n/intl.ts index c1bcaea..32f96c6 100644 --- a/ags/i18n/intl.ts +++ b/ags/i18n/intl.ts @@ -3,7 +3,8 @@ import { GLib } from "astal"; const i18nKeys = { "en_US": (await import("./lang/en_US")).default, - "pt_BR": (await import("./lang/pt_BR")).default + "pt_BR": (await import("./lang/pt_BR")).default, + "ru_RU": (await import("./lang/ru_RU")).default }; const languages: Array = Object.keys(i18nKeys); From 6b9b075e162d13dbfd2a9d59d6a050425d1252cb Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Sun, 1 Jun 2025 18:23:42 +0300 Subject: [PATCH 3/4] Update OSD.ts Replace Unicode to Icon --- ags/window/OSD.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ags/window/OSD.ts b/ags/window/OSD.ts index 07a767a..5a5b8ae 100644 --- a/ags/window/OSD.ts +++ b/ags/window/OSD.ts @@ -44,10 +44,10 @@ export const OSD = (mon: number) => { child: new Widget.Box({ className: "osd", children: [ - new Widget.Label({ + new Widget.Icon({ className: "icon", - label: osdIcon - } as Widget.LabelProps), + icon: bind(Wireplumber.getDefault().getDefaultSink(), "volumeIcon") + } as Widget.IconProps), new Widget.Box({ className: "volume", orientation: Gtk.Orientation.VERTICAL, From f4026eddb116273783cbfd19db0990d0d2d0241e Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:10:02 +0300 Subject: [PATCH 4/4] Update Tray.ts Fixed the tray displays --- ags/widget/bar/Tray.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ags/widget/bar/Tray.ts b/ags/widget/bar/Tray.ts index f76f830..512b442 100644 --- a/ags/widget/bar/Tray.ts +++ b/ags/widget/bar/Tray.ts @@ -15,8 +15,9 @@ export function Tray(): Gtk.Widget { return new Widget.Box({ className: "tray", visible: bind(astalTray, "items").as((items: Array) => items.length > 0), - children: bind(astalTray, "items").as((items: Array) => - items.map((item: AstalTray.TrayItem) => + children: bind(astalTray, "items").as((items: Array) => items + .filter(item => item?.gicon) + .map((item: AstalTray.TrayItem) => new Widget.Box({ className: "item", child: Variable.derive(