From fea635fbc9f007fb557558d353429d25f946de64 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 12 Jul 2013 14:54:44 -0400 Subject: Internationalize the first string. --- 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=) diff --git a/lib/cmd.sh b/lib/cmd.sh index 4a03664..348f695 100644 --- a/lib/cmd.sh +++ b/lib/cmd.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 . + +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 -- cgit v0.9.1