From 59df16bb6c874735640b834a82a3268f6439c424 Mon Sep 17 00:00:00 2001 From: "C. Regouby" Date: Fri, 31 Jan 2025 19:19:33 +0100 Subject: [PATCH 1/4] Add 3 tasks for message translation --- R/release.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/release.R b/R/release.R index 6f2196245..7da67b9df 100644 --- a/R/release.R +++ b/R/release.R @@ -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( @@ -96,6 +97,9 @@ release_checklist <- function(version, on_cran, target_repo = NULL) { ), "Prepare for release:", "", + todo("Update message translation file with `potools::po_update()", has_translation), + todo("Contact translators to collect their translations of the `po/R-...pot` file", has_translation), + todo("Compile the collected translations with `potools::po_compile()", has_translation), todo("`git pull`"), todo("[Close v{version} milestone](../milestone/{milestone_num})", !is.na(milestone_num)), todo("Check [current CRAN check results]({cran_results})", on_cran), From 369b6fb496785abbb14346b053bc3f6df67d0f75 Mon Sep 17 00:00:00 2001 From: "C. Regouby" Date: Sat, 1 Feb 2025 12:54:36 +0100 Subject: [PATCH 2/4] Make a specific task paragraph for translation --- R/release.R | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/R/release.R b/R/release.R index 7da67b9df..abf96b7fe 100644 --- a/R/release.R +++ b/R/release.R @@ -95,11 +95,16 @@ release_checklist <- function(version, on_cran, target_repo = NULL) { todo("Review "), "" ), + 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("Update message translation file with `potools::po_update()", has_translation), - todo("Contact translators to collect their translations of the `po/R-...pot` file", has_translation), - todo("Compile the collected translations with `potools::po_compile()", has_translation), todo("`git pull`"), todo("[Close v{version} milestone](../milestone/{milestone_num})", !is.na(milestone_num)), todo("Check [current CRAN check results]({cran_results})", on_cran), From 27345bd3417678f16f9e6c21b4c63308fca5072a Mon Sep 17 00:00:00 2001 From: "C. Regouby" Date: Sat, 1 Feb 2025 13:00:54 +0100 Subject: [PATCH 3/4] update NEWS --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index d7c7a2376..5bf4b6566 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 From 71feff23ff0d6479f9eda0d6dae0feda296997a7 Mon Sep 17 00:00:00 2001 From: "C. Regouby" Date: Sat, 1 Feb 2025 13:17:26 +0100 Subject: [PATCH 4/4] fix typo --- R/release.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/release.R b/R/release.R index abf96b7fe..0214d2452 100644 --- a/R/release.R +++ b/R/release.R @@ -96,7 +96,7 @@ release_checklist <- function(version, on_cran, target_repo = NULL) { "" ), if (has_translation) c( - "Update messages translation", + "Update messages translation:", "", todo("Update `po/R-{project_name()}.pot` file with `potools::po_update()`"), todo("Contact translators to collect their translation `.po` files"),