Skip to content

Commit 19bfd1a

Browse files
authored
Merge pull request #1088 from carmenbianca/translator-comments
Provide helpful comment to translators
2 parents 67323d9 + a8f0ca8 commit 19bfd1a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/reuse/cli/annotate.py

+6
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def get_reuse_info(
290290
"--copyright",
291291
"-c",
292292
"copyrights",
293+
# TRANSLATORS: You may translate this. Please preserve capital letters.
293294
metavar=_("COPYRIGHT"),
294295
type=str,
295296
multiple=True,
@@ -299,6 +300,7 @@ def get_reuse_info(
299300
"--license",
300301
"-l",
301302
"licenses",
303+
# TRANSLATORS: You may translate this. Please preserve capital letters.
302304
metavar=_("SPDX_IDENTIFIER"),
303305
type=spdx_identifier,
304306
multiple=True,
@@ -307,6 +309,7 @@ def get_reuse_info(
307309
@click.option(
308310
"--contributor",
309311
"contributors",
312+
# TRANSLATORS: You may translate this. Please preserve capital letters.
310313
metavar=_("CONTRIBUTOR"),
311314
type=str,
312315
multiple=True,
@@ -316,6 +319,7 @@ def get_reuse_info(
316319
"--year",
317320
"-y",
318321
"years",
322+
# TRANSLATORS: You may translate this. Please preserve capital letters.
319323
metavar=_("YEAR"),
320324
cls=MutexOption,
321325
mutually_exclusive=_YEAR_MUTEX,
@@ -346,6 +350,7 @@ def get_reuse_info(
346350
"--template",
347351
"-t",
348352
"template_str",
353+
# TRANSLATORS: You may translate this. Please preserve capital letters.
349354
metavar=_("TEMPLATE"),
350355
type=str,
351356
help=_("Name of template to use."),
@@ -421,6 +426,7 @@ def get_reuse_info(
421426
)
422427
@click.argument(
423428
"paths",
429+
# TRANSLATORS: You may translate this. Please preserve capital letters.
424430
metavar=_("PATH"),
425431
type=click.Path(exists=True, writable=True, path_type=Path),
426432
nargs=-1,

src/reuse/cli/download.py

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def _successfully_downloaded(destination: StrPath) -> None:
139139
)
140140
@click.argument(
141141
"license_",
142+
# TRANSLATORS: You may translate this. Please preserve capital letters.
142143
metavar=_("LICENSE"),
143144
type=str,
144145
nargs=-1,

src/reuse/cli/lint_file.py

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
)
4848
@click.argument(
4949
"files",
50+
# TRANSLATORS: You may translate this. Please preserve capital letters.
5051
metavar=_("FILE"),
5152
type=click.Path(exists=True, path_type=Path),
5253
nargs=-1,

0 commit comments

Comments
 (0)