debian-reference/po4a.cfg.in
Osamu Aoki 5dd8137e4a refactor po build
Drop linenumber for easier merge and diff tracking

This is preparation for 3-way clean merge.

One example of such 3-way merge article is at:
 * https://stackoverflow.com/a/29535676/334451

This install some driver like:

```
 $ git config merge.merge-po-files.driver "./bin/merge-po-files %A %O %B %P"
```
Note that you also need file `.gitattributes` with following lines:
```
[attr]POFILE merge=merge-po-files
locale/*.po POFILE
```
There are other references:
 * https://github.com/mezis/git-whistles/blob/master/libexec/git-merge-po.sh
 * https://stackoverflow.com/questions/16214067/wheres-the-3-way-git-merge-driver-for-po-gettext-files/29535676#29535676
 * https://stackoverflow.com/questions/2006351/gettext-po-files-under-version-control/11291001#11291001
 * https://gist.github.com/SebCorbin/d196a96b1b5f30f3c3947c3d35fe420b

Signed-off-by: Osamu Aoki <osamu@debian.org>
2024-01-26 13:21:26 +09:00

19 lines
693 B
INI

#[po_directory] po
# reduce useless runs over for some langs below some translation
[po4a_langs] @LANGPO@
[po4a_paths] po/debian-reference.pot $lang:po/$lang.po
[options] opt:"--keep 0"
[options] opt:"--master-charset UTF-8"
[options] opt:"--localized-charset UTF-8"
[options] opt:"--verbose"
[options] opt:"--no-translations"
[options] opt:"--porefs file"
[options] opt:"--copyright-holder "Copyright (C) 2009-2024 Osamu Aoki <osamu@debian.org>""
[options] opt:"--package-name "Debian Reference""
[options] opt:"--package-version @DVERSION@"
[options] opt:"--msgmerge-opt --verbose"
[type: docbook] debian-reference.en.xmlt \
$lang:debian-reference.$lang.xmlt \
add_$lang:?po/$lang.add