-
Notifications
You must be signed in to change notification settings - Fork 5
/
texts.py
86 lines (81 loc) · 3.45 KB
/
texts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import dataclasses
from typing import ClassVar
# pylint: disable=too-many-instance-attributes, invalid-name
@dataclasses.dataclass
class Texts:
"""
{var} for variables
[not translated] for not translated
DO NOT use \n
"""
language: ClassVar[str] = "english"
User: str = "User"
UserProxy: str = "User Proxy"
NoProxy: str = "Proxy missing"
Proxy: str = "{name} Proxy"
ShowProxies: str = "Show proxies"
HideProxies: str = "Hide proxies"
RestartFixProxy: str = "Restart to fix the proxies"
ShouldUseVersion: str = "You should use the {version} version"
SearchWholeCatalog: str = "Search your whole catalog"
Download: str = "Download"
Install: str = "Install"
Extract: str = "Extract"
Update: str = "Update"
Restart: str = "Restart"
Cancel: str = "Cancel"
Search: str = "Search"
Retry: str = "Retry"
CheckUpdate: str = "Check updates"
UnknownVersion: str = "Unknown version"
PleaseWait: str = "Please wait"
CheckLastestLibmpv: str = "Check latest libmpv update"
RestartInstall: str = "Do you want to restart to install {name} ?"
SearchOrDownload: str = "Do you want to search or download it ?"
NoSocketPort: str = "No socket port available !"
CantStartProxies: str = "Can't start local proxies !"
NotFound: str = "{name} not found"
AllSeries: str = "All Series"
AllMovies: str = "All Movies"
AllChannels: str = "All Channels"
FastCached: str = "fast in cache"
AlreadyRunning: str = "{name} is running. Please close it to continue."
PlayerTooOld: str = "{name} is too old. Version {version} or above is needed."
UpgradeFailed: str = "{name} upgrade failed. Do you want to retry ?"
LoadCache: str = "Loading cache"
SaveCache: str = "Saving cache"
Downloading: str = "Downloading"
Processing: str = "Processing"
Ready: str = "Ready"
Failed: str = "Failed"
NoEpg: str = "No EPG"
EpgUrl: str = "External EPG"
InvalidUrl: str = "Invalid url"
EpgConfidence: str = "EPG confidence level"
EPGFoundConfidence: str = "{channel} found in the external EPG with {confidence} confidence"
ChangeLog: str = "Change log for {name}"
UpdatedToday: str = "Updated today"
Updated1DayAgo: str = "Updated 1 day ago"
UpdatedDaysAgo: str = "Updated {days} days ago"
Confidence0: str = "0%: You don't trust the EPG and you'll only get an exact match and often none"
Confidence100: str = (
"100%: You completely trust the EPG and you'll always get a match even one of poor quality"
)
EPGPrefer: str = "Search the [IPTV] provider first"
Yes: str = "Yes"
No: str = "No"
EPGPreferYes: str = "Yes: Search the [IPTV] provider EPG first. Use the external EPG only when it fails."
EPGPreferNo: str = "No: Search the external EPG first. Use the [IPTV] provider EPG only when it fails."
EPGUrlTip: str = "Enter the URL of the external EPG, it should end up with '[xml]' or '[xml.gz]'"
LibmpvTip: str = (
"Libmpv decodes & renders audio and video. "
"Enable the updates to get the last version optimized for your computer."
)
ProxyTip: str = (
"{name} uses a local proxy to intercept all requests to the [IPTV] provider "
"and inject the 'all' categories and the external EPG"
)
UserProxyTip: str = "Actual user proxy if it exists"
Complete: str = "{percent}% Complete"
def as_dict(self) -> dict[str, str]:
return dataclasses.asdict(self)