how to install the po translations on Android

Hans-Christoph Steiner hans at guardianproject.info
Mon Feb 24 23:37:54 CET 2014


On 02/24/2014 03:07 PM, Hans-Christoph Steiner wrote:
> 
> 
> On 02/24/2014 02:41 PM, Werner Koch wrote:
>> On Mon, 24 Feb 2014 19:40, hans at guardianproject.info said:
>>> I see that the translation files are spread across 'gnupg' and 'libgpg-error',
>>> but the  files generated from .po (.mo and .gmo?)  don't seem to be installed
>>> anywhere.
>>
>> You might have missed them because they are renamed during instalaltion.
>> For example the de.po files from all packages will be installed below
>>
>>   /usr/local/share/locale/de/LC_MESSAGES/
>>
>> Thus after installing gnupg and libgpg-error you should have at least
>> theses file:
>>
>>   /usr/local/share/locale/de/LC_MESSAGES/libgpg-error.mo
>>   /usr/local/share/locale/de/LC_MESSAGES/gnupg2.mo
>>
>> "gnupg2" is used to avoid conflicts with transations from GnuPG-1.
> 
> Is this new in 2.1?  I'm looking at the Ubuntu package gnupg2 2.0.17 and it
> doesn't include any of those files.

It doesn't seem to be doing anything in the po dir.  This is basically how its
configured (minus cross-compiler stuff):

./configure --enable-static --host=arm-linux-androideabi

Then:

Making all in po
make[3]: Entering directory
`/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/libgpg-error/po'
make[3]: Leaving directory
`/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/libgpg-error/po'


Making install in po
make[2]: Entering directory
`/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/libgpg-error/po'
if test "libgpg-error" = "gettext-tools"; then \
	  /bin/mkdir -p
/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/data/data/info.guardianproject.gpg/app_opt/share/gettext/po;
\
	  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed
en at quot.header en at boldquot.header insert-header.sin Rules-quot
Makevars.template; do \
	    /usr/bin/install -c -m 644 ./$file \
			
/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/data/data/info.guardianproject.gpg/app_opt/share/gettext/po/$file;
\
	  done; \
	  for file in Makevars; do \
	    rm -f
/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/data/data/info.guardianproject.gpg/app_opt/share/gettext/po/$file;
\
	  done; \
	else \
	  : ; \
	fi
make[2]: Leaving directory
`/var/lib/jenkins/workspace/gnupg-for-android-eighthave/external/libgpg-error/po'


That test there is pretty strange.  Why would libgpg-error only install its
translations if the PACKAGE is called "gettext-tools"?

.hc

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81



More information about the Gnupg-devel mailing list