Skip to content

Commit e895c7e

Browse files
authored
Update timer.py
1 parent f97a2af commit e895c7e

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

timer.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,23 @@
4444
else:
4545
locale = open(f"/app/translations/{lang}")
4646
"""
47-
48-
with open(f"/app/translations/{lang}") as l:
49-
# Load JSON local file
50-
jT = json.load(l)
47+
try:
48+
with open(f"/app/translations/{lang}") as l:
49+
# Load JSON local file
50+
jT = json.load(l)
51+
except:
52+
jT["advanced"] = "More settings",
53+
jT["go_to_more_settings"] = "Go to More settings",
54+
jT["go_to_notification_settings"] = "Go to Notification settings",
55+
jT["alternative_key"] = "The alternative keyboard shortcut is: {}",
56+
jT["vertical_text"] = "Vertical text in countdown page",
57+
jT["vertical_text_desc"] = "Displays vertical text that counts down the time on the countdown page",
58+
jT["save_expander_row_state"] = "Expand Preferences dropdown row",
59+
jT["save_expander_row_state_desc"] = "When you start the Timer application, the Preferences drop-down row will automatically expand.",
60+
jT["show_appicon"] = "Show application icon in notification",
61+
jT["show_appname"] = "Show application name in notification",
62+
jT["notification_text"] = "<b>Notification</b>",
63+
jT["alarm_clock_dialog_text"] = "<b>Alarm clock dialog</b>",
5164

5265
# import main file - source code
5366
import src.main

0 commit comments

Comments
 (0)