From 476246c9a3558ccbbb19fb488227463f032104cb Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Sat, 2 Mar 2024 16:36:00 +0000 Subject: [PATCH] fix i18n: gettext(%) -> gettextf(%%) --- R/LSTconfidenceIntervals.R | 2 +- R/LSeffectSizes.R | 12 ++++++------ po/R-de.po | 8 ++++---- po/R-jaspLearnStats.pot | 4 ++-- po/R-nl.po | 4 ++-- po/R-pl.po | 6 +++--- po/R-pt.po | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/R/LSTconfidenceIntervals.R b/R/LSTconfidenceIntervals.R index 7855999..c181528 100644 --- a/R/LSTconfidenceIntervals.R +++ b/R/LSTconfidenceIntervals.R @@ -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, diff --git a/R/LSeffectSizes.R b/R/LSeffectSizes.R index 04fc49f..b6bbe25 100644 --- a/R/LSeffectSizes.R +++ b/R/LSeffectSizes.R @@ -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/ @@ -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/ @@ -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( diff --git a/po/R-de.po b/po/R-de.po index 0e8f01e..59d442b 100644 --- a/po/R-de.po +++ b/po/R-de.po @@ -49,8 +49,8 @@ msgstr "Std.-Abw: %.2f" msgid "Coverage" msgstr "Überdeckung" -msgid "Coverage %" -msgstr "Überdeckung %" +msgid "Coverage %%" +msgstr "Überdeckung %%" msgid "Mean" msgstr "Mittelwert" @@ -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" diff --git a/po/R-jaspLearnStats.pot b/po/R-jaspLearnStats.pot index d29c9d1..45b71f9 100644 --- a/po/R-jaspLearnStats.pot +++ b/po/R-jaspLearnStats.pot @@ -46,7 +46,7 @@ msgstr "" msgid "Coverage" msgstr "" -msgid "Coverage %" +msgid "Coverage %%" msgstr "" msgid "Mean" @@ -337,7 +337,7 @@ msgstr "" msgid "Simulation" msgstr "" -msgid "95% CI" +msgid "95%% CI" msgstr "" msgid "Cohen's d" diff --git a/po/R-nl.po b/po/R-nl.po index d7758bc..883152f 100644 --- a/po/R-nl.po +++ b/po/R-nl.po @@ -49,7 +49,7 @@ msgstr "" msgid "Coverage" msgstr "" -msgid "Coverage %" +msgid "Coverage %%" msgstr "" msgid "Mean" @@ -358,7 +358,7 @@ msgstr "" msgid "Simulation" msgstr "" -msgid "95% CI" +msgid "95%% CI" msgstr "" msgid "Cohen's d" diff --git a/po/R-pl.po b/po/R-pl.po index 141d676..d08e3e7 100644 --- a/po/R-pl.po +++ b/po/R-pl.po @@ -50,7 +50,7 @@ msgstr "" msgid "Coverage" msgstr "" -msgid "Coverage %" +msgid "Coverage %%" msgstr "" msgid "Mean" @@ -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" diff --git a/po/R-pt.po b/po/R-pt.po index 250fae9..670fb40 100644 --- a/po/R-pt.po +++ b/po/R-pt.po @@ -50,7 +50,7 @@ msgstr "" msgid "Coverage" msgstr "" -msgid "Coverage %" +msgid "Coverage %%" msgstr "" msgid "Mean" @@ -341,7 +341,7 @@ msgstr "" msgid "Simulation" msgstr "" -msgid "95% CI" +msgid "95%% CI" msgstr "" msgid "Cohen's d"