Skip to main content

hdim_core/localization/
mod.rs

1use serde::{Deserialize, Serialize};
2
3pub mod de;
4pub mod en;
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct Localization {
8    pub tools: Tools,
9    pub status: Status,
10    pub common: Common,
11    pub adjustments: Adjustments,
12    pub exif: Exif,
13    pub transform: Transform,
14    pub export: Export,
15    pub confirm_quit: ConfirmQuit,
16    pub settings: Settings,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
20pub struct Settings {
21    pub title: String,
22    pub language: String,
23    pub theme: String,
24    pub strip_exif: String,
25    pub save: String,
26    pub cancel: String,
27}
28
29#[derive(Debug, Clone, Serialize, Deserialize)]
30pub struct Tools {
31    pub title: String,
32    pub transform: String,
33    pub metadata: String,
34    pub export: String,
35    pub adjust: String,
36    pub placeholder: String,
37}
38
39#[derive(Debug, Clone, Serialize, Deserialize)]
40pub struct Status {
41    pub normal: String,
42    pub edit_value: String,
43    pub transform: String,
44    pub metadata: String,
45    pub exporting: String,
46    pub confirm_quit: String,
47    pub hint_adjust: String,
48    pub hint_transform: String,
49    pub hint_normal: String,
50}
51
52#[derive(Debug, Clone, Serialize, Deserialize)]
53pub struct Common {
54    pub unknown: String,
55    pub error_rendering: String,
56}
57
58#[derive(Debug, Clone, Serialize, Deserialize)]
59pub struct Adjustments {
60    pub title: String,
61    pub brightness: String,
62    pub contrast: String,
63    pub exposure: String,
64    pub fade: String,
65    pub grain: String,
66    pub hue: String,
67    pub noise: String,
68    pub saturation: String,
69    pub vibrance: String,
70    pub warmth: String,
71}
72
73#[derive(Debug, Clone, Serialize, Deserialize)]
74pub struct Exif {
75    pub title: String,
76    pub no_data: String,
77    pub general: String,
78    pub date_time: String,
79    pub camera: String,
80    pub make: String,
81    pub model: String,
82    pub software: String,
83    pub exposure: String,
84    pub exposure_time: String,
85    pub f_number: String,
86    pub iso: String,
87    pub lens: String,
88    pub focal_length: String,
89    pub f_number_range: String,
90    pub image: String,
91    pub width: String,
92    pub height: String,
93    pub gps: String,
94    pub latitude: String,
95    pub longitude: String,
96    pub altitude: String,
97}
98
99#[derive(Debug, Clone, Serialize, Deserialize)]
100pub struct Transform {
101    pub title: String,
102    pub left: String,
103    pub right: String,
104    pub top: String,
105    pub bottom: String,
106    pub rotate_left: String,
107    pub rotate_right: String,
108    pub flip_horizontal: String,
109    pub flip_vertical: String,
110    pub from_viewport: String,
111    pub apply: String,
112    pub confirm_cancel: String,
113    pub confirm_cancel_msg: String,
114}
115
116#[derive(Debug, Clone, Serialize, Deserialize)]
117pub struct Export {
118    pub title: String,
119    pub select_format: String,
120    pub filename: String,
121}
122
123#[derive(Debug, Clone, Serialize, Deserialize)]
124pub struct ConfirmQuit {
125    pub title: String,
126    pub message: String,
127    pub question: String,
128    pub yes: String,
129    pub no: String,
130}