From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: NLS: Put list of available languages into LINGUAS files |
Date: | 2022-07-13 06:35:57 |
Message-ID: | E1oBVyW-002YTL-3l@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)anarazel(dot)de>
Discussion: https://www.postgresql.org/message-id/flat/557a9f5c-e871-edc7-2f58-a4140fb65b7b(at)enterprisedb(dot)com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/88dad06b47eb80f699211c9b0b7a1c6d9016ad19
Modified Files
--------------
doc/src/sgml/nls.sgml | 23 ++++++++++-------------
src/backend/nls.mk | 1 -
src/backend/po/LINGUAS | 1 +
src/bin/initdb/nls.mk | 1 -
src/bin/initdb/po/LINGUAS | 1 +
src/bin/pg_amcheck/nls.mk | 1 -
src/bin/pg_amcheck/po/LINGUAS | 1 +
src/bin/pg_archivecleanup/nls.mk | 1 -
src/bin/pg_archivecleanup/po/LINGUAS | 1 +
src/bin/pg_basebackup/nls.mk | 1 -
src/bin/pg_basebackup/po/LINGUAS | 1 +
src/bin/pg_checksums/nls.mk | 1 -
src/bin/pg_checksums/po/LINGUAS | 1 +
src/bin/pg_config/nls.mk | 1 -
src/bin/pg_config/po/LINGUAS | 1 +
src/bin/pg_controldata/nls.mk | 1 -
src/bin/pg_controldata/po/LINGUAS | 1 +
src/bin/pg_ctl/nls.mk | 1 -
src/bin/pg_ctl/po/LINGUAS | 1 +
src/bin/pg_dump/nls.mk | 1 -
src/bin/pg_dump/po/LINGUAS | 1 +
src/bin/pg_resetwal/nls.mk | 1 -
src/bin/pg_resetwal/po/LINGUAS | 1 +
src/bin/pg_rewind/nls.mk | 1 -
src/bin/pg_rewind/po/LINGUAS | 1 +
src/bin/pg_test_fsync/nls.mk | 1 -
src/bin/pg_test_fsync/po/LINGUAS | 1 +
src/bin/pg_test_timing/nls.mk | 1 -
src/bin/pg_test_timing/po/LINGUAS | 1 +
src/bin/pg_upgrade/nls.mk | 1 -
src/bin/pg_upgrade/po/LINGUAS | 1 +
src/bin/pg_verifybackup/nls.mk | 1 -
src/bin/pg_verifybackup/po/LINGUAS | 1 +
src/bin/pg_waldump/nls.mk | 1 -
src/bin/pg_waldump/po/LINGUAS | 1 +
src/bin/psql/nls.mk | 1 -
src/bin/psql/po/LINGUAS | 1 +
src/bin/scripts/nls.mk | 1 -
src/bin/scripts/po/LINGUAS | 1 +
src/interfaces/ecpg/ecpglib/nls.mk | 1 -
src/interfaces/ecpg/ecpglib/po/LINGUAS | 1 +
src/interfaces/ecpg/preproc/nls.mk | 1 -
src/interfaces/ecpg/preproc/po/LINGUAS | 1 +
src/interfaces/libpq/nls.mk | 1 -
src/interfaces/libpq/po/LINGUAS | 1 +
src/nls-global.mk | 6 +++++-
src/pl/plperl/nls.mk | 1 -
src/pl/plperl/po/LINGUAS | 1 +
src/pl/plpgsql/src/nls.mk | 1 -
src/pl/plpgsql/src/po/LINGUAS | 1 +
src/pl/plpython/nls.mk | 1 -
src/pl/plpython/po/LINGUAS | 1 +
src/pl/tcl/nls.mk | 1 -
src/pl/tcl/po/LINGUAS | 1 +
54 files changed, 41 insertions(+), 40 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2022-07-13 07:18:27 | pgsql: Fix for make unportability |
Previous Message | David Rowley | 2022-07-13 05:01:59 | pgsql: Small cleanup of create_list_bounds() |