Easier to translate psql help
Peter Eisentraut <peter_e@gmx.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_database.sgml | modified | +2 −2 |
| doc/src/sgml/ref/alter_function.sgml | modified | +2 −2 |
| doc/src/sgml/ref/alter_role.sgml | modified | +2 −2 |
| doc/src/sgml/ref/alter_table.sgml | modified | +2 −2 |
| doc/src/sgml/ref/alter_user.sgml | modified | +2 −2 |
| doc/src/sgml/ref/begin.sgml | modified | +2 −2 |
| doc/src/sgml/ref/create_domain.sgml | modified | +3 −3 |
| doc/src/sgml/ref/create_group.sgml | modified | +2 −2 |
| doc/src/sgml/ref/create_role.sgml | modified | +2 −2 |
| doc/src/sgml/ref/create_table.sgml | modified | +5 −5 |
| doc/src/sgml/ref/create_user.sgml | modified | +2 −2 |
| doc/src/sgml/ref/fetch.sgml | modified | +2 −2 |
| doc/src/sgml/ref/grant.sgml | modified | +4 −4 |
| doc/src/sgml/ref/lock.sgml | modified | +2 −2 |
| doc/src/sgml/ref/select.sgml | modified | +3 −3 |
| doc/src/sgml/ref/set_transaction.sgml | modified | +2 −2 |
| doc/src/sgml/ref/start_transaction.sgml | modified | +2 −2 |
| src/bin/psql/create_help.pl | modified | +83 −18 |
| src/bin/psql/help.c | modified | +8 −7 |
| src/bin/psql/Makefile | modified | +5 −3 |
| src/bin/psql/nls.mk | modified | +2 −2 |