Description Usage Arguments Value Examples
Adds a message and its translation(s) to the library-internal translation environment, see the GNU gettext manual.
1 2 3 4 5 6 7 8 9 10 |
id |
character: message id, see |
str |
character: a vector with translations, see |
plural |
character: plural form of a message, see |
context |
character: context, see |
lang |
character: language code (default: |
domain |
character: text domain (default: |
file |
character: source file (default: |
line |
integer: line number in source file (default: |
invisibly the list added to the library-internal translation environment
1 2 3 4 5 6 7 | options('gettext.lang'="de") # set the current language to 'de'
addMsg("Unknown system error", "Unbekannter Systemfehler")
addMsg("Unknown system error", "Error desconegut del sistema", lang="es")
addMsg("found %d fatal error", plural="found %d fatal errors",
str=c("%d Fehler gefunden", "%d Fehler gefunden"))
addMsg("We saw her duck", "Wir haben ihre Ente gesehen", context="duck as noun")
addMsg("We saw her duck", "Wir haben gesehen, wie sie sich duckte", context="duck as verb")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.