Skip to content

Commit 55227bc

Browse files
committed
code block for automatic translation links
1 parent 3d62dc3 commit 55227bc

27 files changed

+27
-54
lines changed

vignettes/datatable-benchmarking.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ h2 {
3030
}
3131
</style>
3232

33-
```{r, echo=FALSE, file='_translation_links.R'}
33+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
3434
```
35-
`{r} .write.translation.links("Translations of this document are available in: %s")`
3635

3736
This document is meant to guide on measuring performance of `data.table`. Single place to document best practices and traps to avoid.
3837

vignettes/datatable-faq.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ h2 {
2626
}
2727
</style>
2828

29-
```{r, echo=FALSE, file='_translation_links.R'}
29+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
3030
```
31-
`{r} .write.translation.links("Translations of this document are available in: %s")`
3231

3332
```{r, echo = FALSE, message = FALSE}
3433
library(data.table)

vignettes/datatable-fread-and-fwrite.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`r .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r, echo = FALSE, message = FALSE}
1716
require(data.table)

vignettes/datatable-importing.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ h2 {
2020
}
2121
</style>
2222

23-
```{r, echo=FALSE, file='_translation_links.R'}
23+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
2424
```
25-
`{r} .write.translation.links("Translations of this document are available in: %s")`
2625

2726
This document is focused on using `data.table` as a dependency in other R packages. If you are interested in using `data.table` C code from a non-R application, or in calling its C functions directly, jump to the [last section](#non-r-api) of this vignette.
2827

vignettes/datatable-intro.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r, echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`{r} .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r, echo = FALSE, message = FALSE}
1716
library(data.table)

vignettes/datatable-joins.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ library(data.table)
1616
litedown::reactor(comment = "# ")
1717
```
1818

19-
```{r, echo=FALSE, file='_translation_links.R'}
19+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
2020
```
21-
`{r} .write.translation.links("Translations of this document are available in: %s")`
2221

2322
In this vignette you will learn how to perform any join operation using resources available in the `data.table` syntax.
2423

vignettes/datatable-keys-fast-subset.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r, echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`{r} .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r, echo = FALSE, message = FALSE}
1716
library(data.table)

vignettes/datatable-programming.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r, echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`{r} .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r init, include = FALSE}
1716
require(data.table)

vignettes/datatable-reference-semantics.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r, echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`{r} .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r, echo = FALSE, message = FALSE}
1716
library(data.table)

vignettes/datatable-reshape.Rmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ vignette: >
99
\usepackage[utf8]{inputenc}
1010
---
1111

12-
```{r, echo=FALSE, file='_translation_links.R'}
12+
```{r, echo=FALSE, results='asis', file='_translation_links.R', i18n_msg='Translations of this document are available in: %s'}
1313
```
14-
`{r} .write.translation.links("Translations of this document are available in: %s")`
1514

1615
```{r, echo = FALSE, message = FALSE}
1716
library(data.table)

0 commit comments

Comments
 (0)