NLS: Put list of available languages into LINGUAS files
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 13 Jul 2022 05:51:43 +0000 (07:51 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 13 Jul 2022 06:19:17 +0000 (08:19 +0200)
commit88dad06b47eb80f699211c9b0b7a1c6d9016ad19
tree8168c17cdfd7c3d960b8a530d2e43500b978e8f8
parentf29199d3190ffdc48f40233f58a346bbb906c060
NLS: Put list of available languages into LINGUAS files

This moves the list of available languages from nls.mk into a separate
file called po/LINGUAS.  Advantages:

- It keeps the parts notionally managed by programmers (nls.mk)
  separate from the parts notionally managed by translators (LINGUAS).

- It's the standard practice recommended by the Gettext manual
  nowadays.

- The Meson build system also supports this layout (and of course
  doesn't know anything about our custom nls.mk), so this would enable
  sharing the list of languages between the two build systems.

(The MSVC build system currently finds all po files by globbing, so it
is not affected by this change.)

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/557a9f5c-e871-edc7-2f58-a4140fb65b7b@enterprisedb.com
54 files changed:
doc/src/sgml/nls.sgml
src/backend/nls.mk
src/backend/po/LINGUAS [new file with mode: 0644]
src/bin/initdb/nls.mk
src/bin/initdb/po/LINGUAS [new file with mode: 0644]
src/bin/pg_amcheck/nls.mk
src/bin/pg_amcheck/po/LINGUAS [new file with mode: 0644]
src/bin/pg_archivecleanup/nls.mk
src/bin/pg_archivecleanup/po/LINGUAS [new file with mode: 0644]
src/bin/pg_basebackup/nls.mk
src/bin/pg_basebackup/po/LINGUAS [new file with mode: 0644]
src/bin/pg_checksums/nls.mk
src/bin/pg_checksums/po/LINGUAS [new file with mode: 0644]
src/bin/pg_config/nls.mk
src/bin/pg_config/po/LINGUAS [new file with mode: 0644]
src/bin/pg_controldata/nls.mk
src/bin/pg_controldata/po/LINGUAS [new file with mode: 0644]
src/bin/pg_ctl/nls.mk
src/bin/pg_ctl/po/LINGUAS [new file with mode: 0644]
src/bin/pg_dump/nls.mk
src/bin/pg_dump/po/LINGUAS [new file with mode: 0644]
src/bin/pg_resetwal/nls.mk
src/bin/pg_resetwal/po/LINGUAS [new file with mode: 0644]
src/bin/pg_rewind/nls.mk
src/bin/pg_rewind/po/LINGUAS [new file with mode: 0644]
src/bin/pg_test_fsync/nls.mk
src/bin/pg_test_fsync/po/LINGUAS [new file with mode: 0644]
src/bin/pg_test_timing/nls.mk
src/bin/pg_test_timing/po/LINGUAS [new file with mode: 0644]
src/bin/pg_upgrade/nls.mk
src/bin/pg_upgrade/po/LINGUAS [new file with mode: 0644]
src/bin/pg_verifybackup/nls.mk
src/bin/pg_verifybackup/po/LINGUAS [new file with mode: 0644]
src/bin/pg_waldump/nls.mk
src/bin/pg_waldump/po/LINGUAS [new file with mode: 0644]
src/bin/psql/nls.mk
src/bin/psql/po/LINGUAS [new file with mode: 0644]
src/bin/scripts/nls.mk
src/bin/scripts/po/LINGUAS [new file with mode: 0644]
src/interfaces/ecpg/ecpglib/nls.mk
src/interfaces/ecpg/ecpglib/po/LINGUAS [new file with mode: 0644]
src/interfaces/ecpg/preproc/nls.mk
src/interfaces/ecpg/preproc/po/LINGUAS [new file with mode: 0644]
src/interfaces/libpq/nls.mk
src/interfaces/libpq/po/LINGUAS [new file with mode: 0644]
src/nls-global.mk
src/pl/plperl/nls.mk
src/pl/plperl/po/LINGUAS [new file with mode: 0644]
src/pl/plpgsql/src/nls.mk
src/pl/plpgsql/src/po/LINGUAS [new file with mode: 0644]
src/pl/plpython/nls.mk
src/pl/plpython/po/LINGUAS [new file with mode: 0644]
src/pl/tcl/nls.mk
src/pl/tcl/po/LINGUAS [new file with mode: 0644]