@@ -18,6 +18,7 @@ GetIntervalNeedInt = "Get interval must be an integer"
1818HostsOptCustom = " Custom hosts source"
1919HostsOptOfficial = " Official designated hosts source"
2020HostsOrigin = " Hosts origin"
21+ LangChangeTips = " The language has been switched to {{.Lang}} and will take effect the next time you start the program!"
2122ListeningAddress = " Listening address {{.Addr}}"
2223ListeningAddressWait = " Listening address: To be started"
2324LogCreatedFail = " Log file creation failed"
@@ -26,6 +27,7 @@ Ok = "OK"
2627OpenHome = " Open home"
2728ParseDomainsJsonErr = " domain.json parsing failed"
2829ParseUpdateResponseFail = " Failed to parse and update response content"
30+ PermissionCheckFail = " Failed to check hosts read and write permissions, please run this program as sudo or administrator!"
2931PortMustBeInt = " Port number must be an integer"
3032ReadDomainsJsonErr = " Error reading file domains.json"
3133ReadHostsErr = " Error reading file hosts"
@@ -37,6 +39,8 @@ RemoteHostsFetchSuccessLog = "Successfully updated Github Hosts!"
3739RemoteHostsUrl = " Remote hosts url"
3840RemoteHostsUrlLog = " Remote hosts obtaining links: {{.Url}}"
3941RequestFail = " request failure"
42+ RunAsAdminUnix = " Please use the root account or sudo to execute this program!"
43+ RunAsAdminWin = " Please right-click and select [Run as administrator] to execute this program!"
4044ServerFetchHostsErrorLog = " Failed to execute update Github Hosts: {{.E}}"
4145ServerFetchHostsStopErrorLog = " Failed to close port listening"
4246ServerFetchHostsStopLog = " Stopping updating hosts service"
0 commit comments