summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"'