From 88dad06b47eb80f699211c9b0b7a1c6d9016ad19 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 13 Jul 2022 07:51:43 +0200 Subject: 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 Discussion: https://www.postgresql.org/message-id/flat/557a9f5c-e871-edc7-2f58-a4140fb65b7b@enterprisedb.com --- doc/src/sgml/nls.sgml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/nls.sgml b/doc/src/sgml/nls.sgml index d49f44f3f23..4b683458f9c 100644 --- a/doc/src/sgml/nls.sgml +++ b/doc/src/sgml/nls.sgml @@ -175,10 +175,11 @@ make init-po Copy this file to language.po and edit it. To make it known that the new language is available, - also edit the file nls.mk and add the - language (or language and country) code to the line that looks like: + also edit the file po/LINGUAS and add the + language (or language and country) code next to languages already listed, + like: -AVAIL_LANGUAGES := de fr +de fr (Other languages can appear, of course.) @@ -375,16 +376,6 @@ fprintf(stderr, gettext("panic level %d\n"), lvl); - - AVAIL_LANGUAGES - - - - List of provided translations — initially empty. - - - - GETTEXT_FILES @@ -424,6 +415,12 @@ fprintf(stderr, gettext("panic level %d\n"), lvl); + + + Add a file po/LINGUAS, which will contain the list + of provided translations — initially empty. + + -- cgit v1.2.3