2010/10/31 Jacek Kałucki <[email protected]>:
> Użytkownik Carl Karsten napisał:
>> I don't have a good works this way, broken this way, yet. working on
>> it, but it may take a while so maybe someone knows the problem.
>>
>> I am trying virtualenvwrapper
>> http://www.doughellmann.com/docs/virtualenvwrapper/
>> and when I installed dabo trunk I get:
>>
>> (foo)ju...@dhcp109:~/foo$ python -c "import dabo"
>> Traceback (most recent call last):
>> File "<string>", line 1, in<module>
>> File "/home/juser/foo/lib/python2.6/site-packages/dabo/__init__.py",
>> line 133, in<module>
>> dLocalize.install("dabo")
>> File "/home/juser/foo/lib/python2.6/site-packages/dabo/dLocalize.py",
>> line 56, in install
>> setLanguage(_defaultLanguage, _defaultEncoding)
>> File "/home/juser/foo/lib/python2.6/site-packages/dabo/dLocalize.py",
>> line 85, in setLanguage
>> dabo.log.error("""
>> AttributeError: 'module' object has no attribute 'log'
>>
>> it has the same problem as pip: drops dabo/local in the current dir,
>> so I moved it to site-packages/dabo/local:
>> (foo)ju...@dhcp109:~/foo$ mv dabo/locale lib/python2.6/site-packages/dabo
>> (foo)ju...@dhcp109:~/foo$ ls lib/python2.6/site-packages/dabo/locale/
>> dabo.pot
>>
>> That is the correct location, right?
>>
>
> Hi.
>
> It's because settings locale takes place before logging setup.
Is this new? on a working box I see:
(veyepar)c...@dc10:~/src/veyepar$ python -c 'import dabo'
2010-10-31 09:26:49 - ERROR -
No translation file found for domain 'dabo'.
Locale dir = /home/carl/src/veyepar/lib/python2.6/site-packages/dabo/locale
Languages = ['en_US']
Codeset = UTF8
(veyepar)c...@dc10:~/src/veyepar$ locate dabo.pot dabo.mo
/home/carl/src/veyepar/lib/python2.6/site-packages/dabo/locale/dabo.pot
> But no, it's not correct language file location.
> The correct one is 'dabo/locale/<lang-id>/LC_MESSAGES/dabo.mo'.
Um, .mo or .pot?
--
Carl K
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]