pg.ddx.io  pgsql-translators@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Law <exclusion@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-translators@postgresql.org
Subject: Re: Some localizable files are absent on https://babel.postgresql.org/
Date: Mon, 26 Dec 2016 10:43:34 +0300
Message-ID: <06d891a6-e655-45ae-6955-219cf22ef099@gmail.com> (raw)
In-Reply-To: <f8db58ee-5b55-27a6-c8a6-af4a106453c4@2ndquadrant.com>
References: <95cf0a86-c8ab-e4d2-d13a-6e8d464235a7@gmail.com>
	<f8db58ee-5b55-27a6-c8a6-af4a106453c4@2ndquadrant.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-translators>

Hello Peter,
It would be nice, I could translate these files to Russian before February.
Btw, what is your opinion regarding contrib localizations?
I found that with minor modifications we can get some extensions 
localizeable.
For example, see attached patch for file_fdfw.
Having the patch applied I can do `make update-po -C contrib` and get 
contrib/file_fdw/po/*.pot , *.po for translation.
And postgres uses my translation when I compile translated messages and 
place it in the LC_MESSAGES directory.
So I see no technical issues with translating contrib modules.
Maybe they should be maintained on https://babel.postgresql.org/ too?

Best regards,
Alexander

23.12.2016 18:06, Peter Eisentraut wrote:
> On 12/21/16 3:12 AM, Alexander Law wrote:
>> Please consider adding to https://babel.postgresql.org/ the following
>> .pot files for translation:
>> /src/bin/pg_test_timing/po/pg_test_timing.pot//
>> //src/bin/pg_upgrade/po/pg_upgrade.pot//
>> //src/bin/pg_xlogdump/po/pg_xlogdump.pot//
>> //src/bin/pg_archivecleanup/po/pg_archivecleanup.pot//
>> //src/bin/pg_test_fsync/po/pg_test_fsync.pot/
> We haven't branched that repository between 9.6 and 10 yet.
>
> We could do that now, if there is interest in getting started on the
> above.  Or otherwise we could do it after the minor releases in February.
>

-- 
Sent via pgsql-translators mailing list (pgsql-translators@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-translators

Attachments:

file_fdw.patch (text/x-patch, 1.2K) download diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index d325f53..ffed8d4 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -36,6 +36,12 @@ #include "utils/rel.h" #include "utils/sampling.h" +/* define our text domain for translations */ +#undef TEXTDOMAIN +#define TEXTDOMAIN PG_TEXTDOMAIN("file_fdw") + +extern void _PG_init(void); + PG_MODULE_MAGIC; /* @@ -162,6 +168,18 @@ static int file_acquire_sample_rows(Relation onerel, int elevel, /* + * _PG_init() - library load-time initialization + * + * DO NOT make this static nor change its name! + * + */ +void +_PG_init(void) +{ + pg_bindtextdomain(TEXTDOMAIN); +} + +/* * Foreign-data wrapper handler function: return a struct with pointers * to my callback routines. */ diff --git a/contrib/file_fdw/nls.mk b/contrib/file_fdw/nls.mk new file mode 100644 index 0000000..0b938df --- /dev/null +++ b/contrib/file_fdw/nls.mk @@ -0,0 +1,6 @@ +# contrib/file_fdw/nls.mk +CATALOG_NAME = file_fdw +AVAIL_LANGUAGES = +GETTEXT_FILES = file_fdw.c +GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) +GETTEXT_FLAGS = $(BACKEND_COMMON_GETTEXT_FLAGS)

view thread (4+ messages)  latest in thread

Message-ID: <06d891a6-e655-45ae-6955-219cf22ef099@gmail.com>
Permalink:  ../06d891a6-e655-45ae-6955-219cf22ef099@gmail.com/
Also on:    postgresql.org/message-id/06d891a6-e655-45ae-6955-219cf22ef099@gmail.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-translators@postgresql.org
  Cc: exclusion@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: Some localizable files are absent on https://babel.postgresql.org/
  In-Reply-To: <06d891a6-e655-45ae-6955-219cf22ef099@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox