Skip to content

Commit

Permalink
Translate lifecycle status
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 24, 2024
1 parent 46f461a commit 3bff676
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 51 deletions.
9 changes: 9 additions & 0 deletions R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ extract_lifecycle <- function(x) {
name <- gsub("lifecycle-", "", path)
name <- path_ext_remove(name)

# Translate the most common lifecylce names
name <- switch(
deprecated = tr_("deprecated"),
superseded = tr_("superseded"),
experimental = tr_("experimental"),
stable = tr_("stable"),
name,
)

return(name)
}
}
Expand Down
134 changes: 83 additions & 51 deletions po/R-pkgdown.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: pkgdown 2.0.9.9000\n"
"POT-Creation-Date: 2024-05-10 10:43-0500\n"
"POT-Creation-Date: 2024-05-24 09:36-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -18,83 +18,83 @@ msgstr ""
msgid "Content not found. Please use links in the navbar."
msgstr ""

#: build-articles.R:411 navbar.R:163 navbar.R:170 navbar.R:185
#: build-articles.R:432 navbar.R:186 navbar.R:196 navbar.R:217
msgid "Articles"
msgstr ""

#: build-articles.R:462
#: build-articles.R:570
msgid "All vignettes"
msgstr ""

#: build-footer.R:23
#: build-footer.R:34
msgid "Developed by"
msgstr ""

#: build-footer.R:28
#: build-footer.R:41
msgid "Site built with <a href=\"%s\">pkgdown</a> %s."
msgstr ""

#: build-home-authors.R:12
msgid "Authors and Citation"
msgstr ""

#: build-home-authors.R:96
#: build-home-authors.R:101
msgid "More about authors..."
msgstr ""

#: build-home-authors.R:99
#: build-home-authors.R:104
msgid "Developers"
msgstr ""

#: build-home-authors.R:185
#: build-home-authors.R:190
msgid "author"
msgstr ""

#: build-home-authors.R:186
#: build-home-authors.R:191
msgid "compiler"
msgstr ""

#: build-home-authors.R:187
#: build-home-authors.R:192
msgid "contractor"
msgstr ""

#: build-home-authors.R:188
#: build-home-authors.R:193
msgid "contributor"
msgstr ""

#: build-home-authors.R:189
#: build-home-authors.R:194
msgid "copyright holder"
msgstr ""

#: build-home-authors.R:190
#: build-home-authors.R:195
msgid "maintainer"
msgstr ""

#: build-home-authors.R:191
#: build-home-authors.R:196
msgid "data contributor"
msgstr ""

#: build-home-authors.R:192
#: build-home-authors.R:197
msgid "funder"
msgstr ""

#: build-home-authors.R:193
#: build-home-authors.R:198
msgid "reviewer"
msgstr ""

#: build-home-authors.R:194
#: build-home-authors.R:199
msgid "thesis advisor"
msgstr ""

#: build-home-authors.R:195
#: build-home-authors.R:200
msgid "translator"
msgstr ""

#: build-home-authors.R:249 render.R:101
#: build-home-authors.R:254 render.R:103
msgid "Citation"
msgstr ""

#: build-home-authors.R:250
#: build-home-authors.R:255
msgid "Citing %s"
msgstr ""

Expand All @@ -114,27 +114,27 @@ msgstr ""
msgid "Community"
msgstr ""

#: build-home-index.R:88
#: build-home-index.R:120
msgid "Dev Status"
msgstr ""

#: build-home-index.R:161
#: build-home-index.R:162
msgid "View on %s"
msgstr ""

#: build-home-index.R:162
#: build-home-index.R:163
msgid "Browse source code"
msgstr ""

#: build-home-index.R:163
#: build-home-index.R:164
msgid "Report a bug"
msgstr ""

#: build-home-index.R:167
#: build-home-index.R:168
msgid "Links"
msgstr ""

#: build-home-index.R:172 render.R:103
#: build-home-index.R:173 render.R:105
msgid "Table of contents"
msgstr ""

Expand All @@ -146,39 +146,39 @@ msgstr ""
msgid "Full license"
msgstr ""

#: build-news.R:101 build-news.R:259 build-news.R:264
#: build-news.R:102 build-news.R:259 build-news.R:263
msgid "Changelog"
msgstr ""

#: build-news.R:128
#: build-news.R:129
msgid "Version %s"
msgstr ""

#: build-news.R:140 build-news.R:253
#: build-news.R:141 build-news.R:254
msgid "News"
msgstr ""

#: build-news.R:255
#: build-news.R:256
msgid "Releases"
msgstr ""

#: build-news.R:311
#: build-news.R:310
msgid "CRAN release: %s"
msgstr ""

#: build-reference-index.R:22
msgid "Package index"
msgstr ""

#: build-reference-index.R:127
#: build-reference-index.R:158
msgid "All functions"
msgstr ""

#: build-reference.R:369
#: build-reference.R:371
msgid "Usage"
msgstr ""

#: build-tutorials.R:47 navbar.R:129
#: build-tutorials.R:47 navbar.R:152
msgid "Tutorials"
msgstr ""

Expand All @@ -194,24 +194,56 @@ msgstr ""
msgid "Unreleased version"
msgstr ""

#: navbar.R:121
#: navbar-menu.R:173
msgid "Search site"
msgstr ""

#: navbar-menu.R:174
msgid "Search for"
msgstr ""

#: navbar.R:129
msgid "Reference"
msgstr ""

#: navbar.R:157
#: navbar.R:140
msgid "Light switch"
msgstr ""

#: navbar.R:143
msgid "Light"
msgstr ""

#: navbar.R:144
msgid "Dark"
msgstr ""

#: navbar.R:145
msgid "Auto"
msgstr ""

#: navbar.R:180
msgid "Get started"
msgstr ""

#: navbar.R:183
#: navbar.R:213
msgid "More articles..."
msgstr ""

#: navbar.R:224
msgid "Search site"
#: package.R:300
msgid "deprecated"
msgstr ""

#: navbar.R:225
msgid "Search for"
#: package.R:301
msgid "superseded"
msgstr ""

#: package.R:302
msgid "experimental"
msgstr ""

#: package.R:303
msgid "stable"
msgstr ""

#: rd-data.R:23
Expand All @@ -226,7 +258,7 @@ msgstr ""
msgid "References"
msgstr ""

#: rd-data.R:35 render.R:96
#: rd-data.R:35 render.R:98
msgid "Source"
msgstr ""

Expand Down Expand Up @@ -254,39 +286,39 @@ msgstr ""
msgid "Value"
msgstr ""

#: render.R:93
#: render.R:95
msgid "Skip to contents"
msgstr ""

#: render.R:94
#: render.R:96
msgid "Toggle navigation"
msgstr ""

#: render.R:95
#: render.R:97
msgid "On this page"
msgstr ""

#: render.R:97
#: render.R:99
msgid "Abstract"
msgstr ""

#: render.R:98
#: render.R:100
msgid "Authors"
msgstr ""

#: render.R:99
#: render.R:101
msgid "Version"
msgstr ""

#: render.R:100
#: render.R:102
msgid "Examples"
msgstr ""

#: render.R:102
#: render.R:104
msgid "Additional details"
msgstr ""

#: render.R:104
#: render.R:106
msgid "Site navigation"
msgstr ""

Expand Down

0 comments on commit 3bff676

Please sign in to comment.