Skip to content

Commit

Permalink
Merge pull request #1088 from carmenbianca/translator-comments
Browse files Browse the repository at this point in the history
Provide helpful comment to translators
  • Loading branch information
carmenbianca authored Oct 13, 2024
2 parents 67323d9 + a8f0ca8 commit 19bfd1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/reuse/cli/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def get_reuse_info(
"--copyright",
"-c",
"copyrights",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("COPYRIGHT"),
type=str,
multiple=True,
Expand All @@ -299,6 +300,7 @@ def get_reuse_info(
"--license",
"-l",
"licenses",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("SPDX_IDENTIFIER"),
type=spdx_identifier,
multiple=True,
Expand All @@ -307,6 +309,7 @@ def get_reuse_info(
@click.option(
"--contributor",
"contributors",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("CONTRIBUTOR"),
type=str,
multiple=True,
Expand All @@ -316,6 +319,7 @@ def get_reuse_info(
"--year",
"-y",
"years",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("YEAR"),
cls=MutexOption,
mutually_exclusive=_YEAR_MUTEX,
Expand Down Expand Up @@ -346,6 +350,7 @@ def get_reuse_info(
"--template",
"-t",
"template_str",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("TEMPLATE"),
type=str,
help=_("Name of template to use."),
Expand Down Expand Up @@ -421,6 +426,7 @@ def get_reuse_info(
)
@click.argument(
"paths",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("PATH"),
type=click.Path(exists=True, writable=True, path_type=Path),
nargs=-1,
Expand Down
1 change: 1 addition & 0 deletions src/reuse/cli/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def _successfully_downloaded(destination: StrPath) -> None:
)
@click.argument(
"license_",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("LICENSE"),
type=str,
nargs=-1,
Expand Down
1 change: 1 addition & 0 deletions src/reuse/cli/lint_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
)
@click.argument(
"files",
# TRANSLATORS: You may translate this. Please preserve capital letters.
metavar=_("FILE"),
type=click.Path(exists=True, path_type=Path),
nargs=-1,
Expand Down

0 comments on commit 19bfd1a

Please sign in to comment.