pg.ddx.io pgsql-translators@postgresql.org mailing list archive
help / color / mirror / Atom feedSome localizable files are absent on https://babel.postgresql.org/
4+ messages / 2 participants
[nested] [flat]
* Some localizable files are absent on https://babel.postgresql.org/
@ 2016-12-21 08:12 Alexander Law <exclusion@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Alexander Law @ 2016-12-21 08:12 UTC (permalink / raw)
To: pgsql-translators
Hello,
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/
Best regards,
Alexander
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Some localizable files are absent on https://babel.postgresql.org/
@ 2016-12-23 15:06 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: Alexander Law <exclusion@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Peter Eisentraut @ 2016-12-23 15:06 UTC (permalink / raw)
To: Alexander Law <exclusion@gmail.com>; pgsql-translators
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.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-translators mailing list (pgsql-translators@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-translators
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Some localizable files are absent on https://babel.postgresql.org/
@ 2016-12-26 07:43 Alexander Law <exclusion@gmail.com>
parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
1 sibling, 0 replies; 4+ messages in thread
From: Alexander Law @ 2016-12-26 07:43 UTC (permalink / raw)
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; pgsql-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)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Some localizable files are absent on https://babel.postgresql.org/
@ 2017-02-10 21:12 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
1 sibling, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2017-02-10 21:12 UTC (permalink / raw)
To: Alexander Law <exclusion@gmail.com>; pgsql-translators
On 12/23/16 10:06 AM, Peter Eisentraut wrote:
> 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.
I have done the branching now.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-translators mailing list (pgsql-translators@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-translators
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2017-02-10 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21 08:12 Some localizable files are absent on https://babel.postgresql.org/ Alexander Law <exclusion@gmail.com>
2016-12-23 15:06 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2016-12-26 07:43 ` Alexander Law <exclusion@gmail.com>
2017-02-10 21:12 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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