diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-11 21:07:11 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-11 21:07:11 (EDT) |
commit | d283d62bcd67c0d3ca5a72128e87cffc68ddbe7a (patch) | |
tree | 3d95dd9d339500d39a4a664917f07fc26e83abe5 /lib | |
parent | c871492f224e851343e7a46271a699fd0779cedb (diff) |
ob_set_text_domain(): Don't print warning message on error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/locale.sh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/locale.sh b/lib/locale.sh index 5197904..ae3c88c 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -64,7 +64,6 @@ _ob_try_load_messages() ## @operand text_domain req The message domain to load. ## @return Returns 0 on success, 1 if the message domain cannot be loaded, or ## 125 if \fItext_domain\fP is missing. -## @stderr Prints a warning to stderr if the message domain cannot be loaded. ## @pure no This function sets an internal global variable and loads a message ## catalog that sets numerous message variables. ob_set_text_domain() @@ -99,11 +98,6 @@ ob_set_text_domain() if ! _ob_try_load_messages "${LC_MESSAGES%.*}"; then if ! _ob_try_load_messages "${LC_MESSAGES%_*}"; then if ! _ob_try_load_messages "${_OB_DEFAULT_LOCALE}"; then - # TODO: Move this warning to the executables. - # TODO: And use printf, since ob_warn() will be - # internationalized. - ob_warn 'Cannot load messages in "%s" domain.' \ - "${_OB_TEXT_DOMAIN}" return 1 fi fi |