TÊN

po2debconf — trộn tập tin mẫu chủ với các tập tin PO


TÓM TẮT

po2debconf [-v] [-h] [--podir=THƯ_MỤC] [-o TẬP_TIN] [-e CHUỖI] chủ


MÔ TẢ

Chương trình này đọc mọi tập tin PO và một tập tin templates riêng lẻ, và tạo một tập tin mẫu Debconf chứa mọi bản dịch, tương tự với tập tin được tạo bởi debconf-mergetemplate(1) (từ gói debconf-utils). Mặc định là các tập tin PO được tìm trong thư mục con po bên dưới vị trí của tập tin chủ.

Để giúp chuyển tiếp mã ngôn ngữ cho tiếng Na Uy Bokmål, mã ngôn ngữ nonb được xử lý đặc biệt. Đã có tập tin no.po thì nó nên bị thay tên thành nb.po. Dùng nb.po sẽ làm cho các bản dịch kiểu cả -no lẫn -nb đều sẵn sàng trong tập tin mẫu.

Lines beginning with a number sign (#) are comments in templates files. They are useful to give hints to translators, and are discarded by po2debconf. Special comments have been introduced in po-debconf 1.0. They are in the form #flag:directive. The #flag:partial is the only directive interpreted by po2debconf. Normally when a field is composed of several paragraphs (like __Choices and _Description), it is translated if all paragraphs are translated. When a field contains #flag:partial, translated strings may be mixed with untranslated strings.


TÙY CHỌN

-h, --help

Hiển thị bản tóm tắt cách sử dụng, rồi thoát.

-v, --verbose

Xử lý ở chế độ chi tiết (xuất nhiều dữ liệu diễn tả tiến trình, hữu ích để gỡ lỗi).

--podir=THƯ_MỤC

Đặt thư mục chứa các tập tin PO. Mặc định là tìm các tập tin PO trong thư mục con po bên dưới vị trí của tập tin chủ.

-o, --output=TẬP_TIN

Đặt tên tập tin xuất (mặc định là thiết bị xuất chuẩn).

-e, --encoding=CHUỖI

Convert encoding. Argument can take 3 values: utf8 (convert to UTF-8), po (do not change encoding) and popular (convert encoding of input files depending on their language; the PODEBCONF_ENCODINGS environment variable must point to a name of a file containing the encoding map).

Tên tập tin như vậy hình như :

  #
  #   Number is comment sign
  #
  cs       ISO-8859-2
  da       ISO-8859-1
  de       ISO-8859-1
  el       ISO-8859-7

v.v.

Bảng mã mặc định từng là popular: nó đã được chuyển đổi sang utf8 kể từ po-debconf 0.9.0.


ĐỊNH DẠNG XUẤT

Kể từ debconf 1.2.0, định dạng của mẫu đã thay đổi: bảng mã thuộc về tên trường, tức là tên trường là foo-ngôn_ngữ.bảng_mã. Phiên bản debconf cũ gặp trường này thì bỏ qua, không xuất thông điệp: chỉ hiển thị văn bản gốc.

If present, a po/output file can override defaults for encoding and output format. It contains a single line with two fields. The first field is the output format (currently valid values are 1 for fields in the form foo-lang, and 2 for foo-lang.encoding) and the second field is the encoding, e.g.

   echo '2 utf8' > po/output

cho phép po2debconf chuyển đổi văn bản sang UTF-8.

Bảng mã được đặt thành po hay utf8 thì định dạng xuất luôn luôn được đặt thành 2, để mà phiên bản debconf cũ sẽ không thử hiển thị văn bản theo bảng mã sai.


XEM CŨNG

debconf-gettextize(1), debconf-updatepo(1), po-debconf(7).


TÁC GIẢ

  Denis Barbier <barbier@linuxfr.org>