po4a: add page (#6493)

beep
Ein Verne 2021-09-18 12:34:15 +08:00 committed by GitHub
parent 30d7e09e07
commit 7d02084cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# po4a-gettextize
> Convert a file to a PO file.
> More information: <https://po4a.org/man/man1/po4a-gettextize.1.php>.
- Convert a text file to PO file:
`po4a-gettextize --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}}`
- Get a list of available formats:
`po4a-gettextize --help-format`
- Convert a text file along with a translated document to a PO file (`-l` option can be provied multiple times):
`po4a-gettextize --format {{text}} --master {{path/to/master.txt}} --localized {{path/to/translated.txt}} --po {{path/to/result.po}}`

View File

@ -0,0 +1,13 @@
# po4a-translate
> Convert a PO file back to documentation format.
> The provided PO file should be the translation of the POT file which was produced by `po4a-gettextize`.
> More information: <https://po4a.org/man/man1/po4a-translate.1.php>.
- Convert a translated PO file back to a document:
`po4a-translate --format {{text}} --master {{path/to/master.doc}} --po {{path/to/result.po}} --localized {{path/to/translated.txt}}`
- Get a list of available formats:
`po4a-translate --help-format`

View File

@ -0,0 +1,16 @@
# po4a-updatepo
> Update the translation (in PO format) of a documentation.
> More information: <https://po4a.org/man/man1/po4a-updatepo.1.php>.
- Update a PO file according to the modification of its origin file:
`po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}}`
- Get a list of available formats:
`po4a-updatepo --help-format`
- Update several PO files according to the modification of their origin file:
`po4a-updatepo --format {{text}} --master {{path/to/master.txt}} --po {{path/to/po1.po}} --po {{path/to/po2.po}}`

8
pages/linux/po4a.md Normal file
View File

@ -0,0 +1,8 @@
# po4a
> Update both PO files and translated documents.
> More information: <https://po4a.org/man/man1/po4a.1.php>.
- Update PO files and documents according to the specified config file:
`po4a {{path/to/config_file}}`