| Line 1... |
Line 1... |
| 1 |
% File src/library/tools/man/checkRdaFiles.Rd
|
1 |
% File src/library/tools/man/checkRdaFiles.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 2012-2014 R Core Team
|
3 |
% Copyright 2012-2024 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{checkPoFiles}
|
6 |
\name{checkPoFiles}
|
| 7 |
\alias{checkPoFile}
|
7 |
\alias{checkPoFile}
|
| 8 |
\alias{checkPoFiles}
|
8 |
\alias{checkPoFiles}
|
| 9 |
\title{Check Translation Files for Inconsistent Format Strings}
|
9 |
\title{Check Translation Files for Inconsistent Format Strings}
|
| 10 |
\description{
|
10 |
\description{
|
| 11 |
These functions compare formats embedded in English messages
|
11 |
These functions compare formats embedded in English messages
|
| 12 |
with translated strings to check for consistency. \code{checkPoFile}
|
12 |
with translated strings to check for consistency. \code{checkPoFile}
|
| 13 |
checks one file, while \code{checkPoFiles} checks all files for a specified
|
13 |
checks one file, while \code{checkPoFiles} checks all files for specified
|
| 14 |
language.
|
14 |
or all languages.
|
| 15 |
}
|
15 |
}
|
| 16 |
\usage{
|
16 |
\usage{
|
| 17 |
checkPoFile(f, strictPlural = FALSE)
|
17 |
checkPoFile(f, strictPlural = FALSE)
|
| 18 |
checkPoFiles(language, dir = ".")
|
18 |
checkPoFiles(language, dir = ".")
|
| 19 |
}
|
19 |
}
|
| 20 |
\arguments{
|
20 |
\arguments{
|
| 21 |
\item{f}{a character string giving a single filepath.}
|
21 |
\item{f}{a character string giving a single filepath.}
|
| 22 |
\item{strictPlural}{whether to compare formats of singular and plural
|
22 |
\item{strictPlural}{whether to compare formats of singular and plural
|
| 23 |
forms in a strict way.}
|
23 |
forms in a strict way.}
|
| 24 |
\item{language}{a character string giving a language code.}
|
24 |
\item{language}{a character string giving a language code, or a
|
| - |
|
25 |
\sQuote{\link{regexp}} (regular expression), to match languages in \code{dir}.
|
| - |
|
26 |
Use \code{""} to denote all languages in the \code{dir} path.}
|
| 25 |
\item{dir}{a path to a directory in which to check files.}
|
27 |
\item{dir}{a path to a directory in which to check files.}
|
| 26 |
}
|
28 |
}
|
| 27 |
\details{
|
29 |
\details{
|
| 28 |
|
- |
|
| 29 |
Part of \R's internationalization depends on translations of messages
|
30 |
Part of \R's internationalization depends on translations of messages
|
| 30 |
in \file{.po} files. In these files an \sQuote{English} message taken
|
31 |
in \file{.po} files. In these files an \sQuote{English} message taken
|
| 31 |
from the \R sources is followed by a translation into another
|
32 |
from the \R sources is followed by a translation into another
|
| 32 |
language. Many of these messages are format strings for C or \R
|
33 |
language. Many of these messages are format strings for C or \R
|
| 33 |
\code{\link{sprintf}} and related functions. In these cases, the
|
34 |
\code{\link{sprintf}} and related functions. In these cases, the
|