NLS: Put list of available languages into LINGUAS files

Peter Eisentraut <peter@eisentraut.org>

Commit: 88dad06b47eb80f699211c9b0b7a1c6d9016ad19
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-07-13T06:19:17Z
Releases: 16.0
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

Files

PathChange+/−
doc/src/sgml/nls.sgml modified +10 −13
src/backend/nls.mk modified +0 −1
src/backend/po/LINGUAS added +1 −0
src/bin/initdb/nls.mk modified +0 −1
src/bin/initdb/po/LINGUAS added +1 −0
src/bin/pg_amcheck/nls.mk modified +0 −1
src/bin/pg_amcheck/po/LINGUAS added +1 −0
src/bin/pg_archivecleanup/nls.mk modified +0 −1
src/bin/pg_archivecleanup/po/LINGUAS added +1 −0
src/bin/pg_basebackup/nls.mk modified +0 −1
src/bin/pg_basebackup/po/LINGUAS added +1 −0
src/bin/pg_checksums/nls.mk modified +0 −1
src/bin/pg_checksums/po/LINGUAS added +1 −0
src/bin/pg_config/nls.mk modified +0 −1
src/bin/pg_config/po/LINGUAS added +1 −0
src/bin/pg_controldata/nls.mk modified +0 −1
src/bin/pg_controldata/po/LINGUAS added +1 −0
src/bin/pg_ctl/nls.mk modified +0 −1
src/bin/pg_ctl/po/LINGUAS added +1 −0
src/bin/pg_dump/nls.mk modified +0 −1
src/bin/pg_dump/po/LINGUAS added +1 −0
src/bin/pg_resetwal/nls.mk modified +0 −1
src/bin/pg_resetwal/po/LINGUAS added +1 −0
src/bin/pg_rewind/nls.mk modified +0 −1
src/bin/pg_rewind/po/LINGUAS added +1 −0
src/bin/pg_test_fsync/nls.mk modified +0 −1
src/bin/pg_test_fsync/po/LINGUAS added +1 −0
src/bin/pg_test_timing/nls.mk modified +0 −1
src/bin/pg_test_timing/po/LINGUAS added +1 −0
src/bin/pg_upgrade/nls.mk modified +0 −1
src/bin/pg_upgrade/po/LINGUAS added +1 −0
src/bin/pg_verifybackup/nls.mk modified +0 −1
src/bin/pg_verifybackup/po/LINGUAS added +1 −0
src/bin/pg_waldump/nls.mk modified +0 −1
src/bin/pg_waldump/po/LINGUAS added +1 −0
src/bin/psql/nls.mk modified +0 −1
src/bin/psql/po/LINGUAS added +1 −0
src/bin/scripts/nls.mk modified +0 −1
src/bin/scripts/po/LINGUAS added +1 −0
src/interfaces/ecpg/ecpglib/nls.mk modified +0 −1
src/interfaces/ecpg/ecpglib/po/LINGUAS added +1 −0
src/interfaces/ecpg/preproc/nls.mk modified +0 −1
src/interfaces/ecpg/preproc/po/LINGUAS added +1 −0
src/interfaces/libpq/nls.mk modified +0 −1
src/interfaces/libpq/po/LINGUAS added +1 −0
src/nls-global.mk modified +5 −1
src/pl/plperl/nls.mk modified +0 −1
src/pl/plperl/po/LINGUAS added +1 −0
src/pl/plpgsql/src/nls.mk modified +0 −1
src/pl/plpgsql/src/po/LINGUAS added +1 −0
src/pl/plpython/nls.mk modified +0 −1
src/pl/plpython/po/LINGUAS added +1 −0
src/pl/tcl/nls.mk modified +0 −1
src/pl/tcl/po/LINGUAS added +1 −0

Documentation touched

Discussion