[Scons-users] error with gettext (translate) on some systems

Philipp Kraus philipp.kraus at flashpixx.de
Thu Jun 6 16:27:53 EDT 2013


On 2013-06-06 12:01:55 +0200, Fòram na Gàidhlig said:


> 05/06/2013 21:23, sgrìobh Dirk Bächle:

>> On 05.06.2013 10:14, Fòram na Gàidhlig wrote:

>>>>>> [...]

>>>>

>>>> for using the gettext Tool you need to have the programs "xgettext",

>>>> "msginit", "msgmerge" and "msgfmt" installed and in your path. Please

>>>> check whether you have the "gettext" package installed...

>>>

>>> Hi,

>>>

>>> I do and it's in /usr/bin

>>>

>>> Cheers

>>>

>>> GC

>>

>> Okay,

>>

>> here are a few more things to try:

>>

>> 1.) Calling only the 'gettext' Tool

>>

>> env = Environment(tools=['gettext'])

>>

>> 2.) Calling another Tool, that lives parallel to 'gettext' in the source

>> tree

>>

>> env = Environment(tools=['textfile'])

>>

>> 3.) Setting the absolute path to the 'gettext' Tool

>>

>> env = Environment(tools=['gettext'],

>> toolpath=['/usr/local/lib/scons-2.1.0/SCons/Tool'])

>>

>> Does any of these work?

>>

>> Regards,

>>

>> Dirk

>

> 1. Did take care for the error message, but I still needed the

> defaultlater on. I tried switching them and it worked!

>

> env = Environment( tools = ['gettext','default'] )


I don't use this initialisation for gettext, it creates on OSX &
Windows problems.
So I do this:
env = Environment( tools = ["default", ....."] )
env.Tool("gettext")

So I add the gettext initialisation after creating the environment
object, this seems to be working

Phil

P.S.: I see your are using my earlier thread :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130606/86e57e99/attachment.htm


More information about the Scons-users mailing list