Skip to content

Commit

Permalink
fix i18n: gettext(%) -> gettextf(%%)
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang committed Mar 2, 2024
1 parent db0c01e commit 476246c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion R/LSTconfidenceIntervals.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ LSTconfidenceIntervals <- function(jaspResults, dataset = NULL, options) {
resultTable$addColumnInfo(name = "sigma", title="σ", type = "number")
resultTable$addColumnInfo(name = "n", type = "integer")
resultTable$addColumnInfo(name = "coverage", type = "integer",title=gettext("Coverage"))
resultTable$addColumnInfo(name = "coveragePercentage", type = "number", format = "pc", title=gettext("Coverage %"))
resultTable$addColumnInfo(name = "coveragePercentage", type = "number", format = "pc", title=gettextf("Coverage %%"))

meanCI <- jaspContainer[["computedConfidenceIntervals"]][["object"]]
tableDat <- data.frame(mu = options$mu,
Expand Down
12 changes: 6 additions & 6 deletions R/LSeffectSizes.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ switchOptions <- function(options) {
deltaTable$addColumnInfo(name = "population", title = gettext("Population") , type = "number")
if (length(delta) > 1) {
deltaTable$addColumnInfo(name = "simulation", title = gettext("Simulation"), type = "number")
deltaTable$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettext("95% CI"))
deltaTable$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettext("95% CI"))
deltaTable$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettextf("95%% CI"))
deltaTable$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettextf("95%% CI"))
}

# based on: https://rpsychologist.com/cohend/
Expand Down Expand Up @@ -848,8 +848,8 @@ switchOptions <- function(options) {
rhoTable$addColumnInfo(name = "population", title = gettext("Population") , type = "number")
if (length(rho) > 1) {
rhoTable$addColumnInfo(name = "simulation", title = gettext("Simulation"), type = "number")
rhoTable$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettext("95% CI"))
rhoTable$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettext("95% CI"))
rhoTable$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettextf("95%% CI"))
rhoTable$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettextf("95%% CI"))
}

# based on: https://rpsychologist.com/cohend/
Expand Down Expand Up @@ -1324,8 +1324,8 @@ switchOptions <- function(options) {
phiTable2$addColumnInfo(name = "population", title = gettext("Population") , type = "number")
if (length(phi) > 1) {
phiTable2$addColumnInfo(name = "simulation", title = gettext("Simulation"), type = "number")
phiTable2$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettext("95% CI"))
phiTable2$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettext("95% CI"))
phiTable2$addColumnInfo(name = "lower", title = gettext("Lower"), type = "number", overtitle = gettextf("95%% CI"))
phiTable2$addColumnInfo(name = "upper", title = gettext("Upper"), type = "number", overtitle = gettextf("95%% CI"))
}

row1 <- list(
Expand Down
8 changes: 4 additions & 4 deletions po/R-de.po
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ msgstr "Std.-Abw: %.2f"
msgid "Coverage"
msgstr "Überdeckung"

msgid "Coverage %"
msgstr "Überdeckung %"
msgid "Coverage %%"
msgstr "Überdeckung %%"

msgid "Mean"
msgstr "Mittelwert"
Expand Down Expand Up @@ -376,8 +376,8 @@ msgstr "Grundgesamtheit"
msgid "Simulation"
msgstr "Simulation"

msgid "95% CI"
msgstr "95% KI"
msgid "95%% CI"
msgstr "95%% KI"

msgid "Cohen's d"
msgstr "Cohens d"
Expand Down
4 changes: 2 additions & 2 deletions po/R-jaspLearnStats.pot
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ msgstr ""
msgid "Coverage"
msgstr ""

msgid "Coverage %"
msgid "Coverage %%"
msgstr ""

msgid "Mean"
Expand Down Expand Up @@ -337,7 +337,7 @@ msgstr ""
msgid "Simulation"
msgstr ""

msgid "95% CI"
msgid "95%% CI"
msgstr ""

msgid "Cohen's d"
Expand Down
4 changes: 2 additions & 2 deletions po/R-nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ msgstr ""
msgid "Coverage"
msgstr ""

msgid "Coverage %"
msgid "Coverage %%"
msgstr ""

msgid "Mean"
Expand Down Expand Up @@ -358,7 +358,7 @@ msgstr ""
msgid "Simulation"
msgstr ""

msgid "95% CI"
msgid "95%% CI"
msgstr ""

msgid "Cohen's d"
Expand Down
6 changes: 3 additions & 3 deletions po/R-pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ msgstr ""
msgid "Coverage"
msgstr ""

msgid "Coverage %"
msgid "Coverage %%"
msgstr ""

msgid "Mean"
Expand Down Expand Up @@ -359,8 +359,8 @@ msgstr "Populacja"
msgid "Simulation"
msgstr "Symulacja"

msgid "95% CI"
msgstr "95% PU"
msgid "95%% CI"
msgstr "95%% PU"

msgid "Cohen's d"
msgstr "d Cohena"
Expand Down
4 changes: 2 additions & 2 deletions po/R-pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ msgstr ""
msgid "Coverage"
msgstr ""

msgid "Coverage %"
msgid "Coverage %%"
msgstr ""

msgid "Mean"
Expand Down Expand Up @@ -341,7 +341,7 @@ msgstr ""
msgid "Simulation"
msgstr ""

msgid "95% CI"
msgid "95%% CI"
msgstr ""

msgid "Cohen's d"
Expand Down

0 comments on commit 476246c

Please sign in to comment.