-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstrings.hpp
More file actions
71 lines (64 loc) · 2.15 KB
/
Copy pathstrings.hpp
File metadata and controls
71 lines (64 loc) · 2.15 KB
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
#pragma once
#include <string>
#include <string_view>
namespace acecode::desktop {
enum class DesktopStringId {
Unknown,
TrayPinned,
TrayRecent,
TrayMore,
TrayNewSession,
TrayOpenApp,
TrayQuit,
NewSessionFallback,
AboutTitle,
AboutAceCodeVersion,
AboutBrowserVersion,
AboutCompilerVersion,
FolderPickerTitle,
FolderPickerPrompt,
FolderPickerMissing,
SessionExportSaveTitle,
SessionExportSavePrompt,
SessionExportSaveMissing,
SessionExportSaveFailed,
SessionExportMarkdownType,
StartupFailedTitle,
StartupUnexpected,
StartupLogInstruction,
StartupException,
DaemonMissing,
DaemonWorkspaceFailed,
BrowserFallbackNoDaemon,
BrowserFallbackOpenFailed,
ReasonLabel,
WebViewFailureLabel,
BrowserFailureLabel,
NotificationCompleted,
NotificationSession,
NotificationBlankTurn,
Count,
};
// Pure catalog lookup. Invalid locale values preserve the legacy zh-CN copy.
std::string_view desktop_string(DesktopStringId id, const std::string& locale);
// Process-wide native presentation locale. The Desktop main thread updates it
// after config resolution and through the runtime locale bridge.
void set_native_locale(const std::string& locale);
std::string native_locale();
std::string_view native_string(DesktopStringId id);
std::string format_startup_exception_message(const std::string& details,
const std::string& locale);
std::string format_daemon_missing_message(const std::string& locale);
std::string format_daemon_workspace_failed_message(const std::string& workspace,
const std::string& details,
const std::string& locale);
std::string format_browser_fallback_no_daemon_message(
const std::string& reason,
const std::string& webview_error,
const std::string& locale);
std::string format_browser_fallback_open_failed_message(
const std::string& reason,
const std::string& browser_error,
const std::string& webview_error,
const std::string& locale);
} // namespace acecode::desktop