dia_args/docs/i18n.rs
1/*
2==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--
3
4Dia-Args
5
6Copyright (C) 2018-2019, 2021-2025 Anonymous
7
8There are several releases over multiple years,
9they are listed as ranges, such as: "2018-2019".
10
11This program is free software: you can redistribute it and/or modify
12it under the terms of the GNU Lesser General Public License as published by
13the Free Software Foundation, either version 3 of the License, or
14(at your option) any later version.
15
16This program is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19GNU Lesser General Public License for more details.
20
21You should have received a copy of the GNU Lesser General Public License
22along with this program. If not, see <https://www.gnu.org/licenses/>.
23
24::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--
25*/
26
27//! # Internatinonalization
28
29use std::borrow::Cow;
30
31/// # Internatinonalization
32///
33/// ## Default values
34///
35/// Please see documentation of each field.
36#[derive(Debug)]
37pub struct I18n<'a> {
38
39 /// # "Commands"
40 pub commands: Cow<'a, str>,
41
42 /// # "No Commands"
43 pub no_commands: Cow<'a, str>,
44
45 /// # "Options"
46 pub options: Cow<'a, str>,
47
48 /// # "No Options"
49 pub no_options: Cow<'a, str>,
50
51 /// # "Values"
52 pub values: Cow<'a, str>,
53
54 /// # "Default"
55 pub default: Cow<'a, str>,
56
57 /// # "Required"
58 pub required: Cow<'a, str>,
59
60 /// # "Project"
61 pub project: Cow<'a, str>,
62
63 /// # "Home"
64 pub home: Cow<'a, str>,
65
66 /// # "License"
67 pub license: Cow<'a, str>,
68
69}
70
71impl Default for I18n<'_> {
72
73 fn default() -> Self {
74 Self {
75 commands: Cow::Borrowed("Commands"),
76 no_commands: Cow::Borrowed("No Commands"),
77 options: Cow::Borrowed("Options"),
78 no_options: Cow::Borrowed("No Options"),
79 values: Cow::Borrowed("Values"),
80 default: Cow::Borrowed("Default"),
81 required: Cow::Borrowed("Required"),
82 project: Cow::Borrowed("Project"),
83 home: Cow::Borrowed("Home"),
84 license: Cow::Borrowed("License"),
85 }
86 }
87
88}