Easier to translate psql help
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 18 Sep 2009 05:00:42 +0000 (05:00 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 18 Sep 2009 05:00:42 +0000 (05:00 +0000)
commitc2a12fe29628c8cd50781d02efd4f19199686d88
tree582322712d0a4600a9400d5d442540601e326663
parent2aa5405e323ce29c03148d4f7f7ae0e1e7471112
Easier to translate psql help

Instead of requiring translators to translate the entire SQL command
synopses, change create_help.pl to only require them to translate the
placeholders, and paste those into the synopsis using a printf mechanism.
Make some small updates to the markup to make it easier to parse.

Note: This causes msgmerge of gettext 0.17 to segfault.  You will need
the patch from https://savannah.gnu.org/bugs/?27474 to make it work.
msgmerge usually only runs on babel.postgresql.org, however.
21 files changed:
doc/src/sgml/ref/alter_database.sgml
doc/src/sgml/ref/alter_function.sgml
doc/src/sgml/ref/alter_role.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/alter_user.sgml
doc/src/sgml/ref/begin.sgml
doc/src/sgml/ref/create_domain.sgml
doc/src/sgml/ref/create_group.sgml
doc/src/sgml/ref/create_role.sgml
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_user.sgml
doc/src/sgml/ref/fetch.sgml
doc/src/sgml/ref/grant.sgml
doc/src/sgml/ref/lock.sgml
doc/src/sgml/ref/select.sgml
doc/src/sgml/ref/set_transaction.sgml
doc/src/sgml/ref/start_transaction.sgml
src/bin/psql/Makefile
src/bin/psql/create_help.pl
src/bin/psql/help.c
src/bin/psql/nls.mk