Sync the I18N section with the latest gettext updates.

Reviewed by:	sobomax
Approved by:	sobomax
This commit is contained in:
Joe Marcus Clarke 2002-04-16 15:53:52 +00:00
parent 8f2f0b916c
commit b8e9ca9978
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=12811

View file

@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!ENTITY base CDATA "../..">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.16 2002/02/27 17:18:26 sobomax Exp $">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.17 2002/04/07 16:00:11 marcus Exp $">
<!ENTITY title "FreeBSD GNOME Project: How To Make a Port">
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
@ -143,30 +143,19 @@ port(s):
<!-- Begine GNOME I18N -->
<h2>GNOME Internationalization</h2>
<p>GNOME relies on the <tt>gettext</tt> port to do
internationalization (I18N). FreeBSD currently supports two versions
of <tt>gettext</tt>: 0.10.35 and 0.11.1. Most ports can use
0.10.35. However, if, when compiling your port, you get an error
building the .po translation files similar to the following you will
need to use the newer version of <tt>gettext</tt>:</p>
internationalization (I18N). FreeBSD currently supports two
versions of <tt>gettext</tt>: 0.10.35 and 0.11.1. Most ports can
use 0.11.1. However, if, when compiling your port, you get an
error building the .po translation files need to use the older
version of <tt>gettext</tt>.</p>
<pre>
/usr/local/bin/msgfmt -o zh_TW.mo zh_TW.po
zh_TW.po:255: end-of-line within string
zh_TW.po:912: illegal control sequence
zh_TW.po:2806: end-of-line within string
zh_TW.po:2856: end-of-line within string
zh_TW.po:2879: illegal control sequence
zh_TW.po:2982: end-of-line within string
found 6 fatal errors
</pre>
<p>To use the newer <tt>gettext</tt>, add the following to your port's
Makefile:</p>
<p>To use the older <tt>gettext</tt>, add the following to your
port's Makefile:</p>
<pre>
BUILD_DEPENDS= msgfmt-new:${PORTSDIR}/devel/gettext
CONFIGURE_ENV+= MSGFMT=${LOCALBASE}/bin/msgfmt-new \
XGETTEXT=${LOCALBASE}/bin/xgettext-new
BUILD_DEPENDS= msgfmt-old:${PORTSDIR}/devel/gettext-old
CONFIGURE_ENV+= MSGFMT=${LOCALBASE}/bin/msgfmt-old \
XGETTEXT=${LOCALBASE}/bin/xgettext-old
</pre>
<p>When installing GNOME applications, make sure the translation