📄 gettext.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.24. Gettext-0.14.5 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="flex.html" title="Flex-2.5.33">Prev</a> <p> Flex-2.5.33 </p> </li> <li class="next"> <a accesskey="n" href="inetutils.html" title= "Inetutils-1.4.2">Next</a> <p> Inetutils-1.4.2 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.24. Gettext-0.14.5 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, and Sed</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.24.1. Installation of Gettext </h2> </div> <p> Prepare Gettext for compilation: </p> <pre class="userinput"><kbd class="command">./configure --prefix=/usr</kbd></pre> <p> Compile the package: </p> <pre class="userinput"><kbd class="command">make</kbd></pre> <p> To test the results, issue: <strong class="userinput"><tt>make check</tt></strong>. </p> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-gettext" name="contents-gettext"></a> <h2 class="sect2"> 10.24.2. Contents of Gettext </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed programs:</span></strong> <span class="seg">autopoint, config.charset, config.rpath, envsubst, gettext, gettextize, hostname, msgattrib, msgcat, msgcmp, msgcomm, msgconv, msgen, msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq, ngettext, and xgettext</span> </div> <div class="seg"> <strong><span class="segtitle">Installed libraries:</span></strong> <span class= "seg">libasprintf.[a,so], libgettextlib,so, libgettextpo.[a,so], and libgettextsrc,so</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3674147" name="id3674147"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="autopoint" name="autopoint"></a><span class= "term"><span><strong class= "command">autopoint</strong></span></span> </td> <td> <p> Copies standard Gettext infrastructure files into a source package </p> </td> </tr> <tr> <td> <a id="config.charset" name= "config.charset"></a><span class= "term"><span><strong class="command">config.charset</strong></span></span> </td> <td> <p> Outputs a system-dependent table of character encoding aliases </p> </td> </tr> <tr> <td> <a id="config.rpath" name="config.rpath"></a><span class= "term"><span><strong class= "command">config.rpath</strong></span></span> </td> <td> <p> Outputs a system-dependent set of variables, describing how to set the runtime search path of shared libraries in an executable </p> </td> </tr> <tr> <td> <a id="envsubst" name="envsubst"></a><span class= "term"><span><strong class= "command">envsubst</strong></span></span> </td> <td> <p> Substitutes environment variables in shell format strings </p> </td> </tr> <tr> <td> <a id="gettext" name="gettext"></a><span class= "term"><span><strong class= "command">gettext</strong></span></span> </td> <td> <p> Translates a natural language message into the user's language by looking up the translation in a message catalog </p> </td> </tr> <tr> <td> <a id="gettextize" name="gettextize"></a><span class= "term"><span><strong class= "command">gettextize</strong></span></span> </td> <td> <p> Copies all standard Gettext files into the given top-level directory of a package to begin internationalizing it </p> </td> </tr> <tr> <td> <a id="hostname-gettext" name= "hostname-gettext"></a><span class= "term"><span><strong class= "command">hostname</strong></span></span> </td> <td> <p> Displays a network hostname in various forms </p> </td> </tr> <tr> <td> <a id="msgattrib" name="msgattrib"></a><span class= "term"><span><strong class= "command">msgattrib</strong></span></span> </td> <td> <p> Filters the messages of a translation catalog according to their attributes and manipulates the attributes </p> </td> </tr> <tr> <td> <a id="msgcat" name="msgcat"></a><span class= "term"><span><strong class= "command">msgcat</strong></span></span> </td> <td> <p> Concatenates and merges the given <tt class= "filename">.po</tt> files </p> </td> </tr> <tr> <td> <a id="msgcmp" name="msgcmp"></a><span class= "term"><span><strong class= "command">msgcmp</strong></span></span> </td> <td> <p> Compares two <tt class="filename">.po</tt> files to check that both contain the same set of msgid strings </p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -