.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Locale::Po4a::Common 3pm" .TH Locale::Po4a::Common 3pm "2020-08-19" "Po4a Tools" "Po4a Tools" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "名前" .IX Header "名前" Locale::Po4a::Common \- po4a スクリプトの共通部分とユーティリティ .SH "説明" .IX Header "説明" Locale::Po4a::Common には、po4a スクリプトの共通部分とほかのモジュールで使用する便利な関数が含まれています。 .PP If needed, you can disable the use of Text::WrapI18N as such: .PP .Vb 2 \& use Locale::Po4a::Common qw(nowrapi18n); \& use Locale::Po4a::Text; .Ve .PP 以下の代わりに: .PP .Vb 1 \& use Locale::Po4a::Text; .Ve .PP The ordering is important here: as most Locale::Po4a modules load themselves Locale::Po4a::Common, the first time this module is loaded determines whether Text::WrapI18N is used. .SH "関数" .IX Header "関数" .SS "出力メッセージの表示" .IX Subsection "出力メッセージの表示" .IP "\(bu" 4 show_version($) .Sp スクリプトのバージョンを表示し、簡単な著作権表示を行います。スクリプト名を引数として受け付けます。 .IP "\(bu" 4 wrap_msg($@) .Sp This function displays a message the same way as \fBsprintf()\fR does, but wraps the result so that they look nice on the terminal. .IP "\(bu" 4 wrap_mod($$@) .Sp この関数は \fBwrap_msg()\fR と同じように動作しますが、第一引数にモジュール名を取り、そして、メッセージの左側にあるスペースを残します。 .IP "\(bu" 4 wrap_ref_mod($$$@) .Sp この関数は \fBwrap_msg()\fR と同じように動作しますが、第一引数に file:line の参照を、第二引数にモジュール名を取り、メッセージの左側にあるスペースを残します。 .SS "ほかのモジュールのラッパー" .IX Subsection "ほかのモジュールのラッパー" .IP "\(bu" 4 Locale::Gettext .Sp Locale::Gettext モジュールが読み込めない場合、このモジュールは以下の関数のダミー (空) の実装を提供します。この場合、po4a でメッセージは翻訳されませんが、プログラムは動作を継続します。 .Sp Locale::gettext が有効なら、このラッパーは setlocale(\s-1LC_MESSAGES, ""\s0) を呼び出し、呼び出し元が \s-1POSIX\s0 モジュールのいずれにも依存しないようにします。 .RS 4 .IP "\(bu" 4 bindtextdomain($$) .IP "\(bu" 4 textdomain($) .IP "\(bu" 4 gettext($) .IP "\(bu" 4 dgettext($$) .RE .RS 4 .RE .SH "著者" .IX Header "著者" .Vb 1 \& Jordi Vilalta .Ve .SH "訳者" .IX Header "訳者" .Vb 2 \& 倉澤 望 \& Debian JP Documentation ML .Ve .SH "著作権とライセンス" .IX Header "著作権とライセンス" Copyright © 2005 \s-1SPI,\s0 Inc. .PP 本プログラムはフリーソフトウェアです。GPL の条項に基づき再頒布と変更を行うことができます (\s-1COPYING\s0 ファイルを参照してください)。