summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-12 14:54:44 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-12 14:54:44 (EDT)
commitfea635fbc9f007fb557558d353429d25f946de64 (patch)
tree50d42e2ead199d3ba723b2c2d0c6803464c1d92c
parent73de11883f989c5fc2ba1dfa2680ccc6f2d0b1bd (diff)
Internationalize the first string.
-rw-r--r--Makefile.in2
-rw-r--r--lib/cmd.sh2
-rw-r--r--locale/en_US/pro_archman.sh20
-rw-r--r--locale/local.mk5
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=)
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 <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