Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite542036

Browse files
committed
Native Language Support (NLS)
Use --enable-nls to turn it on; see installation instructions for details.See developer's guide how to make use of it in programs and how to addtranslations.psql sources have been almost fully prepared and an incomplete Germantranslation has been provided. In the backend, only elog() calls arecurrently translatable, and the provided German translation file is moreof a placeholder.
1 parent58193c5 commite542036

27 files changed

+13816
-602
lines changed

‎config/programs.m4

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.4 2001/02/10 22:31:42 petere Exp $
1+
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.5 2001/06/02 18:25:16 petere Exp $
22

33

44
# PGAC_PATH_FLEX
@@ -99,3 +99,34 @@ if test "$pgac_cv_check_readline" != no ; then
9999
else
100100
AC_MSG_RESULT(no)
101101
fi])# PGAC_CHECK_READLINE
102+
103+
104+
105+
# PGAC_CHECK_GETTEXT
106+
# ------------------
107+
108+
AC_DEFUN([PGAC_CHECK_GETTEXT],
109+
[
110+
AC_SEARCH_LIBS(gettext,intl,[],
111+
[AC_MSG_ERROR([a gettext implementation is required for NLS])])
112+
AC_CHECK_HEADER([libintl.h],[],
113+
[AC_MSG_ERROR([header file <libintl.h> is required for NLS])])
114+
AC_CHECK_PROGS(MSGFMT,msgfmt)
115+
if test -z "$MSGFMT"; then
116+
AC_MSG_ERROR([msgfmt is required for NLS])
117+
fi
118+
AC_CHECK_PROGS(MSGMERGE,msgmerge)
119+
dnl FIXME: We should probably check for version >=0.10.36.
120+
AC_CHECK_PROGS(XGETTEXT,xgettext)
121+
122+
# Note: share/locale is always the default, independent of $datadir
123+
if test x"$prefix" = x"NONE"; then
124+
localedir="$ac_default_prefix/share/locale"
125+
else
126+
localedir="$prefix/share/locale"
127+
fi
128+
129+
AC_SUBST(localedir)
130+
AC_DEFINE_UNQUOTED(LOCALEDIR,["$localedir"],
131+
[location of locale files])
132+
])# PGAC_CHECK_GETTEXT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp