diff options
author | dteske <dteske@FreeBSD.org> | 2013-05-12 00:46:18 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-05-12 00:46:18 +0000 |
commit | 98359e968c11e761ba299fe27ff83221f1d68c69 (patch) | |
tree | 10173738cc7815d53afdb3f66acd59ccfaced9f2 /usr.sbin/bsdconfig/share/packages/index.subr | |
parent | 04e3ea451562b4ae0f29a5675408c0ec055927ce (diff) | |
download | FreeBSD-src-98359e968c11e761ba299fe27ff83221f1d68c69.zip FreeBSD-src-98359e968c11e761ba299fe27ff83221f1d68c69.tar.gz |
Fix i18n violations in the package management module. A few words like
`packages', `installed', and `selected' were not internationalized.
Diffstat (limited to 'usr.sbin/bsdconfig/share/packages/index.subr')
-rwxr-xr-x | usr.sbin/bsdconfig/share/packages/index.subr | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/bsdconfig/share/packages/index.subr b/usr.sbin/bsdconfig/share/packages/index.subr index 2d4b60c..afbd31b 100755 --- a/usr.sbin/bsdconfig/share/packages/index.subr +++ b/usr.sbin/bsdconfig/share/packages/index.subr @@ -112,6 +112,7 @@ f_index_read() export msg_no_description_provided export msg_all msg_all_desc export VALID_VARNAME_CHARS + export msg_packages eval "$( debug= f_getvar "$var_to_get" | awk -F'|' ' function asorti(src, dest) @@ -140,12 +141,13 @@ f_index_read() # cached (also acting as a visitation indicator) if ( ENVIRON["_index_page_" varcat "_1"] ) cat = cat "*" - printf "'\''%s'\'' '\''%s packages'\'' '\''%s'\''\n", + printf "'\''%s'\'' '\''%s " packages "'\'' '\''%s'\''\n", cat, npkgs, desc } BEGIN { valid_chars = ENVIRON["VALID_VARNAME_CHARS"] default_desc = ENVIRON["msg_no_description_provided"] + packages = ENVIRON["msg_packages"] tpkgs = 0 prefix = "" } @@ -221,11 +223,12 @@ f_index_extract_pages() debug= f_getvar "$var_to_get" | awk -F'|' \ -v cat="$category" \ -v pagesize="$pagesize" \ - -v var_basename="$var_basename" ' + -v var_basename="$var_basename" \ + -v i18n_all="$msg_all" ' BEGIN { n = page = 0 } /'\''/{ gsub(/'\''/, "'\''\\'\'\''") } { - if ( cat !~ /(^$|^All$)/ && $7 !~ \ + if ( cat !~ "(^$|^" i18n_all "$)" && $7 !~ \ "(^|[[:space:]])" cat "([[:space:]]|$)" ) next starting_new_page = (n++ == (pagesize * page)) if ( starting_new_page ) |