                  Adding a translation to Pronto
                  -------------------------------

1) Extract the strings from the source
--------------------------------------
In the Pronto! toplevel directory, create the .po template (.pot):

	xgettext -k_ -kN_  ../Pronto/*.pm ../Pronto/Data/*.pm ../pronto-main ../prontolib ../prontosend ../prontoget  -o ../locale/pronto.pot
	or run ./makepot script (ignore warnings)

2) Update or create .po files
-----------------------------
If there are any existing translations, XX.po files, then merge them:

	cd locale
	msgmerge XX.po  pronto.pot > XX.po.new
	mv XX.po.new XX.po

Or, if this is a new translation, copy the template:

	cd locale
	cp pronto.pot XX.po


3) Add translations
-------------------
Edit XX.po to add translations for new strings, fix broken translations,
and touch up fuzzy translations.


4) Make and install Pronto with i18n enabled
---------------------------------------------
You must have Locale::gettext module installed for translations to occur

You can explicitely control the i18n enabling for each make step
like this:

Then the install step:

	make install enable_nls=1


In either case, a make install will for each XX.po file create a XX.mo file
and copy it to:

	$LOCALEDIR/XX/LC_MESSAGES/pronto.mo

If there is no LOCALEDIR environment variable, then the default install
will be to:

	/usr/share/locale/XX/LC_MESSAGES/pronto.mo



But, if you want a different explicite install directory, for example:

	make install enable_nls=1 LOCALEDIR=/usr/local/share/locale

or (for bash)
	export LOCALEDIR=/usr/local/share/locale
	make install enable_nls=1

Other export lines:
	sh:  export LOCALEDIR; LOCALEDIR=/usr/local/share/locale
	csh: setenv LOCALEDIR /usr/local/share/locale

