mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Improve translatability of error messages for external modules by tweaking
the ereport macro. Included in this commit are enough files for starting plpgsql, plpython, plperl and pltcl translations.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.167 2008/03/27 17:24:16 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.168 2008/10/09 17:24:05 alvherre Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1212,3 +1212,17 @@ process_local_preload_libraries(void)
|
||||
"local_preload_libraries",
|
||||
true);
|
||||
}
|
||||
|
||||
void
|
||||
set_text_domain(const char *domain)
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
if (my_exec_path[0] != '\0')
|
||||
{
|
||||
char locale_path[MAXPGPATH];
|
||||
|
||||
get_locale_path(my_exec_path, locale_path);
|
||||
bindtextdomain(domain, locale_path);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user