summaryrefslogtreecommitdiff
path: root/src/libremessages
diff options
context:
space:
mode:
Diffstat (limited to 'src/libremessages')
-rwxr-xr-xsrc/libremessages8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libremessages b/src/libremessages
index 7ef5dfb..3910c94 100755
--- a/src/libremessages
+++ b/src/libremessages
@@ -39,6 +39,14 @@ export TEXTDOMAINDIR='/usr/share/locale'
# Own functions #
################################################################################
+# Usage: print fmt arg1 arg2...
+# Like printf, but gettext-aware, and prints a trailing newline
+print() {
+ local fmt=$1
+ shift
+ printf -- "$(gettext "$fmt")\n" "$@"
+}
+
# Usage: term_title This will be the term title
# Sets the terminal title
term_title() {