summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-02 13:20:48 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-02 13:20:48 (EDT)
commit8de7ad41e4a15092f68a5eb540a2c0faec99eed5 (patch)
tree40dc51418a1da2622e1989ac8d2d8a1075672bfd
parentf2b0cd173982911f6ba47f783ca9152ff9811b54 (diff)
Internationalize list item separator.
-rw-r--r--lib/control.sh3
-rw-r--r--locale/en_US.sh3
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 821010b..5aabdeb 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -163,7 +163,8 @@ ${_value}'"
# Missing required control fields.
_control_parse_error "${_control}" 0 \
"${oh_str_control_missing_fields}" \
- "$(echo "${_req}" | sed 's/ / /g' | sed 's/ /,/g')"
+ "$(echo "${_req}" | sed 's/ / /g' | \
+ sed "s/ /${oh_str_list_item_separator}/g")"
fi
}
diff --git a/locale/en_US.sh b/locale/en_US.sh
index 31e5c6d..756a777 100644
--- a/locale/en_US.sh
+++ b/locale/en_US.sh
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# General strings
+oh_str_list_item_separator=', '
+
# lib/control
oh_str_control_bad_nv='badly formatted control field'
oh_str_control_unknown_field='unrecognized field "%s"'