Skip to content

Commit f552b5f

Browse files
committed
translate "text formatting" field
1 parent a4e19c9 commit f552b5f

File tree

3 files changed

+36
-16
lines changed

3 files changed

+36
-16
lines changed

locales/en-US/cli.ftl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ cli-info-email = Show the email address of each author
3535
cli-info-http-url = Display repository URL as HTTP
3636
cli-info-hide-token = Hide token in repository URL
3737
cli-info-include-hidden = Count hidden files and directories
38-
cli-info-type = Filters output by language type
38+
cli-info-type = Filters output by language type
39+
40+
# TEXT FORMATTING
41+
cli-text-heading = TEXT FORMATTING
42+
cli-text-colors =
43+
Changes the text colors (X X X...)
44+
45+
Goes in order of title, ~, underline, subtitle, colon, and info
46+
47+
For example:
48+
49+
'--text-colors 9 10 11 12 13 14'
50+
cli-text-iso-time = Use ISO 8601 formatted timestamps
51+
cli-text-number-separator = Which thousands SEPARATOR to use
52+
cli-text-no-bold = Turns off bold formatting

locales/ru-RU/cli.ftl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ cli-info-email = Показать адрес электронной почты
3535
cli-info-http-url = Отображать URL репозитория как HTTP
3636
cli-info-hide-token = Скрыть токен в URL репозитория
3737
cli-info-include-hidden = Учитывать скрытые файлы и каталоги
38-
cli-info-type = Фильтровать вывод по типу языка
38+
cli-info-type = Фильтровать вывод по типу языка
39+
40+
# TEXT FORMATTING
41+
cli-text-formatting-heading = ФОРМАТИРОВАНИЕ ТЕКСТА
42+
cli-text-colors =
43+
Изменяет цвета текста (X X X...)
44+
45+
Идет в порядке заголовка, ~, подчеркивания, подзаголовка, двоеточия и информации
46+
47+
Например:
48+
49+
'--text-colors 9 10 11 12 13 14'
50+
cli-text-iso-time = Использовать временные метки в формате ISO 8601
51+
cli-text-number-separator = Какой РАЗДЕЛИТЕЛЬ тысяч использовать
52+
cli-text-no-bold = Отключает жирное форматирование

src/cli.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,29 +164,21 @@ pub struct ImageCliOptions {
164164
#[derive(Clone, Debug, Args, PartialEq, Eq)]
165165
#[command(next_help_heading = "TEXT FORMATTING")]
166166
pub struct TextForamttingCliOptions {
167-
/// Changes the text colors (X X X...)
168-
///
169-
/// Goes in order of title, ~, underline, subtitle, colon, and info
170-
///
171-
/// For example:
172-
///
173-
/// '--text-colors 9 10 11 12 13 14'
167+
174168
#[arg(
175169
long,
176170
short,
177171
value_name = "X",
178172
value_parser = value_parser!(u8).range(..16),
179-
num_args = 1..=6
173+
num_args = 1..=6,
174+
help = tr!("cli-text-colors")
180175
)]
181176
pub text_colors: Vec<u8>,
182-
/// Use ISO 8601 formatted timestamps
183-
#[arg(long, short = 'z')]
177+
#[arg(long, short = 'z', help = tr!("cli-text-iso-time"))]
184178
pub iso_time: bool,
185-
/// Which thousands SEPARATOR to use
186-
#[arg(long, value_name = tr!("cli-value-separator"), default_value = "plain", value_enum)]
179+
#[arg(long, value_name = tr!("cli-value-separator"), default_value = "plain", value_enum, help = tr!("cli-text-number-separator"))]
187180
pub number_separator: NumberSeparator,
188-
/// Turns off bold formatting
189-
#[arg(long)]
181+
#[arg(long, help = tr!("cli-text-no-bold"))]
190182
pub no_bold: bool,
191183
}
192184
#[derive(Clone, Debug, Args, PartialEq, Eq, Default)]

0 commit comments

Comments
 (0)