-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #560 from carpentries/finalise-translate-tests
finalise translate tests
- Loading branch information
Showing
22 changed files
with
782 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
There are `r length(asNamespace("sandpaper")$these$translations$src$varnish)` translations generated by | ||
There are `r length(asNamespace("sandpaper")$tr_src("varnish"))` translations generated by | ||
`set_language()` that correspond to the following variables in {varnish}: | ||
|
||
```{r translation-list, results = "asis", echo = FALSE} | ||
snd <- asNamespace("sandpaper") | ||
res <- glue::glue("| `translate.{names(tr)}` | `{sQuote(tr, q = 2)}` |", | ||
tr = snd$these$translations$src$varnish) | ||
tr = snd$tr_src("varnish")) | ||
writeLines(c("| variable | string |\n| --- | --- |", res)) | ||
``` | ||
|
||
In addition, there are `r length(asNamespace("sandpaper")$these$translations$src$computed)` translations | ||
In addition, there are `r length(asNamespace("sandpaper")$tr_src("computed"))` translations | ||
that are inserted _before_ they get to {varnish}: | ||
|
||
```{r translation-list-computed, results = "asis", echo = FALSE} | ||
snd <- asNamespace("sandpaper") | ||
res <- glue::glue("| `{names(tr)}` | `{sQuote(tr, q = 2)}` |", | ||
tr = snd$these$translations$src$computed) | ||
tr = snd$tr_src("computed")) | ||
writeLines(c("| variable | string |\n| --- | --- |", res)) | ||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.