From 904df8c842ad0f322a67f62a2c9c956cfd7abf25 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 02 Jan 2021 15:17:23 -0500 Subject: locale: Add C and POSIX locales --- diff --git a/NEWS b/NEWS index 1c835ec..daa44cc 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,11 @@ libopkbuild: infinite loop when passed times on January 1. This time bomb broke ob-buildopk one day every year. +Locales: + + * "C" and "POSIX" locales have been added. They are identical to the + "en_US" locale. + opkbuild version 4.2.1 ---------------------- diff --git a/locale/C/libopkbuild_2.sh b/locale/C/libopkbuild_2.sh new file mode 100644 index 0000000..185d628 --- /dev/null +++ b/locale/C/libopkbuild_2.sh @@ -0,0 +1,59 @@ +# C/POSIX message strings for the "libopkbuild_2" text domain +# +# Copyright (C) 2012, 2019 Patrick McDermott +# +# This file is part of opkbuild. +# +# opkbuild 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. +# +# opkbuild 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 opkbuild. If not, see . + +# lib/output.sh +msg_libopkbuild_2_output_error_format='%s: Error: %s' +msg_libopkbuild_2_output_warning_format='%s: Warning: %s' +msg_libopkbuild_2_output_info_format='%s: %s' + +# lib/package.sh +msg_libopkbuild_2_unable_to_detect_package_format='Unable to detect package format' +msg_libopkbuild_2_bad_binary_name='Bad binary package name: "%s"' +msg_libopkbuild_2_duplicate_clean_binary_name='Duplicate clean binary package name: "%s"' + +# lib/package/*.sh +msg_libopkbuild_2_bad_section='Binary package "%s" has invalid section name "%s"' + +# lib/control.sh +msg_libopkbuild_2_control_empty_line='%s: empty line' +msg_libopkbuild_2_control_bad_nv='%s: badly formatted control field' +msg_libopkbuild_2_control_unknown_field='%s: unrecognized field "%s"' +msg_libopkbuild_2_control_duplicate_field='%s: duplicate field "%s"' +msg_libopkbuild_2_control_found_contination='%s: found continuation line where expected start of field' +msg_libopkbuild_2_list_item_separator=', ' +msg_libopkbuild_2_control_missing_fields='%s: missing fields: %s' +msg_libopkbuild_2_substvar_deep_nesting='Possible recursion in substitutions' +msg_libopkbuild_2_substvar_invalid='Invalid substitution variable "%s"' +msg_libopkbuild_2_substvar_unknown='Unknown substitution variable "%s"' + +# lib/changelog.sh +msg_libopkbuild_2_changelog_found_blank_line='%s: found blank line where expected %s' +msg_libopkbuild_2_changelog_found_heading='%s: found start of entry where expected %s' +msg_libopkbuild_2_changelog_bad_heading='%s: badly formatted heading line' +msg_libopkbuild_2_changelog_bad_source='%s: invalid source package name "%s"' +msg_libopkbuild_2_changelog_bad_source_version='%s: invalid source package version identifier "%s"' +msg_libopkbuild_2_changelog_found_trailer='%s: found trailer where expected %s' +msg_libopkbuild_2_changelog_bad_trailer='%s: badly formatted trailer line' +msg_libopkbuild_2_changelog_found_change='%s: found change data where expected %s' +msg_libopkbuild_2_changelog_bad_line='%s: unrecognized line' +msg_libopkbuild_2_changelog_found_eof='%s: found eof where expected %s' +msg_libopkbuild_2_changelog_expect_first_heading='first heading' +msg_libopkbuild_2_changelog_expect_start_changes='next heading or eof' +msg_libopkbuild_2_changelog_expect_next_or_eof='start of change data' +msg_libopkbuild_2_changelog_expect_changes_or_trailer='more change data or trailer' diff --git a/locale/C/opkbuild.sh b/locale/C/opkbuild.sh new file mode 100644 index 0000000..efeafd1 --- /dev/null +++ b/locale/C/opkbuild.sh @@ -0,0 +1,119 @@ +# C/POSIX message strings for the "opkbuild" text domain +# +# Copyright (C) 2012, 2019 Patrick McDermott +# +# This file is part of opkbuild. +# +# opkbuild 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. +# +# opkbuild 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 opkbuild. If not, see . + +# src/opkbuild.sh +msg_opkbuild_usage='Usage: %s [