Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide helpful comment to translators #1088

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading