Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 7e5903b

Browse files
committed
Update strings
- as of comments - as of Russian translations
1 parent 8a00ada commit 7e5903b

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

Dynamic/Components/Appearance/AppleScriptHelper.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ public enum AppleScript: String, CaseIterable {
1919
// MARK: - Handy Properties
2020

2121
extension AppleScript {
22-
/// https://discussions.apple.com/thread/6820749?answerId=27630325022#27630325022
22+
/// Switches dark mode and [returns focus back to the original app](
23+
/// https://discussions.apple.com/thread/6820749?answerId=27630325022#27630325022
24+
/// )
25+
///
26+
/// - Note: It doesn't work if an [LSUIElement is focused](
27+
/// http://hints.macworld.com/article.php?story=20060110152311698
28+
/// )
2329
private var source: String {
24-
#warning("Dynamic Dark Mode itself loses focus")
2530
return """
2631
tell application "System Events"
2732
set frontmostApplicationName to name of 1st process whose frontmost is true

Dynamic/Supporting Files/ru.lproj/Localizable.strings

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"Bug.general.title" = "Сообщить об ошибке разработчикам";
1515

1616
/* Request users to provide more context. */
17-
"Bug.known.title" = "Encountered a Known Issue";
17+
"Bug.known.title" = "Это известная проблема";
1818

1919
/* User did not authorize this app to use location. */
20-
"Location.notAuthorized" = "You did NOT authorize Dynamic Dark Mode to get your location.";
20+
"Location.notAuthorized" = "Предоставьте Dynamic Dark Mode доступ к вашему местоположению.";
2121

2222
/* Failed to attain user location for sunset/sunrise calculation. */
2323
"Location.notAvailable" = "Не удалось определить местоположение";
2424

2525
/* Took too long to use up retries, most likely off Wi-Fi. */
26-
"Location.timeout" = "Timedout. Check your network connection.";
26+
"Location.timeout" = "Проверьте подключение к интернету.";
2727

2828
/* Can't fetch user's current location. Using cache instead. */
2929
"Location.useCache" = "Расписание составлено на основе последней геолокации";
@@ -38,10 +38,10 @@
3838
"Menu.toggle" = "Сменить режим";
3939

4040
/* User did not authorize this app to send notifications. */
41-
"Notification.notAuthorized" = "You did NOT authorize Dynamic Dark Mode to send notifications.";
41+
"Notification.notAuthorized" = "Разрешите Dynamic Dark Mode слать уведомления.";
4242

4343
/* Indicates either enable or disable opens at login failed. */
44-
"Preferences.opensAtLogin.failed" = "Failed to update opens at login settings";
44+
"Preferences.opensAtLogin.failed" = "Failed to update \"opens at login\" settings";
4545

4646
/* For touch bar button title */
4747
"SettingsViewController.autoAdjustThreshold" = "Автонастройка порога";

Dynamic/View Controller/ru.lproj/Main.strings

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"92J-gp-8D9.title" = "Разрешить доступ к системным процессам";
2727

2828
/* Class = "NSMenuItem"; title = "Show Dropdown Menu"; ObjectID = "apZ-rU-OFQ"; */
29-
"apZ-rU-OFQ.title" = "Show Dropdown Menu";
29+
"apZ-rU-OFQ.title" = "Открыть меню";
3030

3131
/* Class = "NSMenuItem"; title = "Print…"; ObjectID = "aTl-1u-JFS"; */
3232
"aTl-1u-JFS.title" = "Печать…";
@@ -37,6 +37,9 @@
3737
/* Class = "NSMenu"; title = "Main Menu"; ObjectID = "AYu-sK-qS6"; */
3838
"AYu-sK-qS6.title" = "Основное меню";
3939

40+
/* Class = "NSTextFieldCell"; title = "Touch Bar"; ObjectID = "B2S-Yj-Ih0"; */
41+
"B2S-Yj-Ih0.title" = "Touch Bar";
42+
4043
/* Class = "NSMenu"; title = "File"; ObjectID = "bib-Uj-vzu"; */
4144
"bib-Uj-vzu.title" = "Файл";
4245

@@ -46,6 +49,9 @@
4649
/* Class = "NSTextFieldCell"; title = "Welcome to Dynamic Dark Mode"; ObjectID = "Buz-5v-iiv"; */
4750
"Buz-5v-iiv.title" = "Добро пожаловать в Dynamic Dark Mode";
4851

52+
/* Class = "NSButtonCell"; title = "Show Dark Mode Toggle In System Tray"; ObjectID = "Cgb-Kl-NJf"; */
53+
"Cgb-Kl-NJf.title" = "Показывать Dark Mode в строке меню";
54+
4955
/* Class = "NSButtonCell"; title = "Dark Mode On Between"; ObjectID = "Dcd-f7-wbP"; */
5056
"Dcd-f7-wbP.title" = "Темный режим включен после";
5157

@@ -172,6 +178,9 @@
172178
/* Class = "NSButtonCell"; title = "Setup >>"; ObjectID = "y0s-hF-kCC"; */
173179
"y0s-hF-kCC.title" = "Настроить >>";
174180

181+
/* Class = "NSButtonCell"; title = "Disable During Scheduled Dark Mode"; ObjectID = "yl0-uh-cim"; */
182+
"yl0-uh-cim.title" = "Disable During Scheduled Dark Mode";
183+
175184
/* Class = "NSTextFieldCell"; title = "Dynamic Dark Mode needs to know your current location in order to calculate sunset/sunrise time, thereby turning on dark mode at night."; ObjectID = "ZMe-eD-uJT"; */
176185
"ZMe-eD-uJT.title" = "Dynamic Dark Mode необходим доступ к местоположению, чтобы рассчитывать часы заката/рассвета для включения ночного режима в ночное время.";
177186

0 commit comments

Comments
 (0)