--- a/pkg-mgr-commands.tex +++ a/pkg-mgr-commands.tex @@ -343,11 +343,17 @@ that can be passed to \t{dohtml} are as follows: mode \t{0644}. \featurelabel{doman-langs} In EAPIs listed in table~\ref{tab:doman-table} as supporting language - codes, a man page with name of the form\t{foo.lang.1} shall go to + codes, a man page with name of the form \t{foo.lang.1} shall go to \t{/usr/share/man/lang/man1/foo.1}, where \t{lang} refers to a pair of lower-case ASCII letters optionally followed by an underscore and a pair of upper-case ASCII letters. Failure behaviour is EAPI dependent as per section~\ref{sec:failure-behaviour}. + With option \t{-i18n=lang}, a man page shall be installed into a subdirectory of + \t{/usr/share/man/lang} (e.g. \t{foo.pl.1} would go to \t{/usr/share/man/lang/man1/foo.pl.1}). + The \t{lang} subdirectory level is skipped if \t{lang} is the empty string. In EAPIs as decided + by table~\ref{tab:doman-table}, the \t{-i18n} option takes precedence over the language code in + the filename. + \item[domo] Installs a \t{.mo} file with file mode \t{0644} into the appropriate subdirectory of \t{DESTTREE/share/locale}, generated by taking the basename of the file, removing the \t{.*} suffix, and appending \t{/LC\_MESSAGES}. The name of the installed files is the package name @@ -426,16 +432,17 @@ that can be passed to \t{dohtml} are as follows: \end{centertable} \begin{centertable}{EAPIs supporting \t{doman} languages} \label{tab:doman-table} - \begin{tabular}{ l l } + \begin{tabular}{ l l l } \toprule \multicolumn{1}{c}{\textbf{EAPI}} & \multicolumn{1}{c}{\textbf{Supports \t{doman} languages?}} \\ + \multicolumn{1}{c}{\textbf{Option \t{-i18n} takes precedence?}} \\ \midrule - \t{0} & No \\ - \t{1} & No \\ - \t{2} & Yes \\ - \t{3} & Yes \\ - \t{4} & Yes \\ + \t{0} & No & Not applicable \\ + \t{1} & No & Not applicable \\ + \t{2} & Yes & No \\ + \t{3} & Yes & No \\ + \t{4} & Yes & Yes \\ \bottomrule \end{tabular} \end{centertable}