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

Add a translation paragraph to use_release_issue() #2099

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# usethis (development version)

* add a translation tasks paragraph in `use_release_issue()` (#2099 @cregouby)

# usethis 3.1.0

* `use_vignette()` and `use_article()` support Quarto. The `name` of the new
Expand Down
9 changes: 9 additions & 0 deletions R/release.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ release_checklist <- function(version, on_cran, target_repo = NULL) {
has_github_links <- has_github_links(target_repo)
is_posit_pkg <- is_posit_pkg()
milestone_num <- gh_milestone_number(target_repo, version)
has_translation <- dir_exists(proj_path("po"))

c(
if (!on_cran) c(
Expand All @@ -94,6 +95,14 @@ release_checklist <- function(version, on_cran, target_repo = NULL) {
todo("Review <https://github.com/DavisVaughan/extrachecks>"),
""
),
if (has_translation) c(
"Update messages translation:",
"",
todo("Update `po/R-{project_name()}.pot` file with `potools::po_update()`"),
todo("Contact translators to collect their translation `.po` files"),
todo("Compile the translations with `potools::po_compile()`"),
""
),
"Prepare for release:",
"",
todo("`git pull`"),
Expand Down
Loading