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 1, 2024
1 parent b78b6ef commit 45933f7
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions R/commonAnovaBayesian.R
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ BANOVAcomputMatchedInclusion <- function(effectNames, effects.matrix, interactio
modelTable$addColumnInfo(name = "P(M|data)", title = gettext("P(M|data)"), type = "number")
modelTable$addColumnInfo(name = "BFM", title = bfm.title, type = "number")
modelTable$addColumnInfo(name = "BF10", title = bf.title, type = "number")
modelTable$addColumnInfo(name = "error %", title = gettext("error %"), type = "number")
modelTable$addColumnInfo(name = "error %", title = gettextf("error %%"), type = "number")

return(modelTable)
}
Expand Down Expand Up @@ -1009,7 +1009,7 @@ BANOVAcomputMatchedInclusion <- function(effectNames, effects.matrix, interactio
position = 2.5)

issuesTable$addColumnInfo(name = "Models", title = gettext("Affected model"), type = "string")
issuesTable$addColumnInfo(name = "percentageSucces", title = gettext("%% useful samples"), type = "number")
issuesTable$addColumnInfo(name = "percentageSucces", title = gettextf("%% useful samples"), type = "number")
issuesTable$addColumnInfo(name = "noSuccess", title = gettext("Useful samples"), type = "integer")
issuesTable$addColumnInfo(name = "total", title = gettext("Total samples drawn"), type = "integer")

Expand Down Expand Up @@ -1297,7 +1297,7 @@ BANOVAcomputMatchedInclusion <- function(effectNames, effects.matrix, interactio
postHocTable$addColumnInfo(name = "Prior Odds", type = "number", title = gettext("Prior Odds"))
postHocTable$addColumnInfo(name = "Posterior Odds", type = "number", title = gettext("Posterior Odds"))
postHocTable$addColumnInfo(name = "BF", type = "number", title = bf.title)
postHocTable$addColumnInfo(name = "error %", type = "number", title = gettext("error %"))
postHocTable$addColumnInfo(name = "error %", type = "number", title = gettextf("error %%"))

postHocTable$dependOn(optionContainsValue = list("postHocTerms" = posthoc.var))

Expand Down
2 changes: 1 addition & 1 deletion R/commonOrdinalRestrictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
}

if(isTryError(syntax)) {
stop(gettext("There are errors in the restriction syntax for %s. The syntax could not be decoded!", modelName))
stop(gettextf("There are errors in the restriction syntax for %s. The syntax could not be decoded!", modelName))
}

return(syntax)
Expand Down
4 changes: 2 additions & 2 deletions po/R-de.po
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|Daten)"

msgid "error %"
msgstr "Fehler %"
msgid "error %%"
msgstr "Fehler %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-es.po
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|datos)"

msgid "error %"
msgstr "fallo %"
msgid "error %%"
msgstr "fallo %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|donnée)"

msgid "error %"
msgstr "% d'erreur"
msgid "error %%"
msgstr "%% d'erreur"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-gl.po
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|datos)"

msgid "error %"
msgstr "fallo %"
msgid "error %%"
msgstr "fallo %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|データ)"

msgid "error %"
msgstr "エラー %"
msgid "error %%"
msgstr "エラー %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
2 changes: 1 addition & 1 deletion po/R-jaspAnova.pot
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ msgstr ""
msgid "P(M|data)"
msgstr ""

msgid "error %"
msgid "error %%"
msgstr ""

msgid "<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi model inference is carried out while excluding these models. The results may be uninterpretable!"
Expand Down
2 changes: 1 addition & 1 deletion po/R-ms.po
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ msgstr ""
msgid "P(M|data)"
msgstr ""

msgid "error %"
msgid "error %%"
msgstr ""

msgid ""
Expand Down
4 changes: 2 additions & 2 deletions po/R-nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|data)"

msgid "error %"
msgstr "fout %"
msgid "error %%"
msgstr "fout %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|dane)"

msgid "error %"
msgstr "błąd %"
msgid "error %%"
msgstr "błąd %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|dado)"

msgid "error %"
msgstr "erro %"
msgid "error %%"
msgstr "erro %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
2 changes: 1 addition & 1 deletion po/R-ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ msgstr ""
msgid "P(M|data)"
msgstr ""

msgid "error %"
msgid "error %%"
msgstr ""

msgid ""
Expand Down
4 changes: 2 additions & 2 deletions po/R-ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ msgid "P(M|data)"
msgstr "P(M|data)"

#, fuzzy
msgid "error %"
msgstr "ошибка %"
msgid "error %%"
msgstr "ошибка %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-zh_Hans.po
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|data)"

msgid "error %"
msgstr "误差 %"
msgid "error %%"
msgstr "误差 %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down
4 changes: 2 additions & 2 deletions po/R-zh_Hant.po
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ msgstr "P(M)"
msgid "P(M|data)"
msgstr "P(M|data)"

msgid "error %"
msgstr "誤差 %"
msgid "error %%"
msgstr "誤差 %%"

msgid ""
"<b><em>Warning.</em></b> Some Bayes factors could not be calculated. Multi "
Expand Down

0 comments on commit 45933f7

Please sign in to comment.