-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustom-translators.R
More file actions
22 lines (18 loc) · 994 Bytes
/
custom-translators.R
File metadata and controls
22 lines (18 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
catf = function(fmt, ..., sep=" ", domain="R-potools") {
cat(gettextf(fmt, ..., domain=domain), sep=sep)
}
# tends to make some really repetitive messages with call.=TRUE, so always turn it off
stopf = function(fmt, ..., domain="R-potools") {
stop(gettextf(fmt, ..., domain=domain), domain = NA, call. = FALSE)
}
# uncovered for now, used in msgmerge.R
warningf = function(fmt, ..., immediate.=FALSE, noBreaks.=FALSE, domain="R-potools") {
warning(gettextf(fmt, ..., domain=domain), domain = NA, call. = FALSE, immediate. = immediate., noBreaks. = noBreaks.)
}
messagef = function(fmt, ..., appendLF=TRUE, domain="R-potools") {
message(gettextf(fmt, ..., domain=domain), domain = NA, appendLF = appendLF)
}
# not actually used yet in package src, so commenting out for test coverage, but leaving in for illustration
# packageStartupMessagef = function(fmt, ..., appendLF = TRUE) {
# packageStartupMessage(gettextf(fmt, ..., domain = domain), domain = NA, appendLF = appendLF)
# }