Devrim GUNDUZ wrote:
> Hi Peter,
>
> On Fri, 2006-10-20 at 15:37 +0200, Peter Eisentraut wrote:
> > > Did you look at how the debian guys handle this?
> >
> > pei@bell:~$ ls -1 /usr/share/locale/de/LC_MESSAGES/p*
> <snip>
>
> Quick question: Could you please point me a way to change the names
> of .mo files and make each PostgreSQL release see its own locale
> directory?
The package files are here:
http://packages.debian.org/unstable/misc/postgresql-8.1
you can find the patch Debian applies following a link below (the
diff.gz), on which you see the method for doing this.
ISTM these parts of that patch should be applied to our code:
+--- postgresql-8.1beta3-old/src/bin/pg_controldata/pg_controldata.c 2005-10-03 02:28:41.000000000 +0200
++++ postgresql-8.1beta3/src/bin/pg_controldata/pg_controldata.c 2005-10-13 18:00:42.000000000 +0200
+@@ -73,7 +73,7 @@
+ char *strftime_fmt = "%c";
+ const char *progname;
+
+- set_pglocale_pgservice(argv[0], "pg_controldata");
++ set_pglocale_pgservice(argv[0], "pg_controldata-8.1");
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support