diff options
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | lib/cmd.sh | 2 | ||||
-rw-r--r-- | locale/en_US/pro_archman.sh | 20 | ||||
-rw-r--r-- | locale/local.mk | 5 |
4 files changed, 27 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index a52dd9e..b4f6673 100644 --- a/Makefile.in +++ b/Makefile.in @@ -42,7 +42,7 @@ include $(srcdir)/src/local.mk include $(srcdir)/lib/local.mk include $(srcdir)/lib/cmd/local.mk #include $(srcdir)/man/local.mk -#include $(srcdir)/locale/local.mk +include $(srcdir)/locale/local.mk #include $(srcdir)/tests/local.mk bin = $(bin_srcs:.sh=) @@ -104,6 +104,6 @@ run_cmd() if is_cmd "${cmd}"; then "cmd_${cmd}_main" "${@}" else - error 1 'Command "%s" not found' "${cmd}" + error 1 "$(get_msg 'cmd_not_found')" "${cmd}" fi } diff --git a/locale/en_US/pro_archman.sh b/locale/en_US/pro_archman.sh new file mode 100644 index 0000000..82d21dd --- /dev/null +++ b/locale/en_US/pro_archman.sh @@ -0,0 +1,20 @@ +# pro-archman +# locale/en_US/pro_archman.sh +# English message strings +# +# Copyright (C) 2013 Patrick "P. J." McDermott +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +msg_pro_archman_cmd_not_found='Command "%s" not found' diff --git a/locale/local.mk b/locale/local.mk new file mode 100644 index 0000000..73a831e --- /dev/null +++ b/locale/local.mk @@ -0,0 +1,5 @@ +# pro-archman +# locale/local.mk + +locale_srcs = \ + locale/en_US/pro_archman.sh |