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.
But no, it's not correct language file location.
The correct one is 'dabo/locale/<lang-id>/LC_MESSAGES/dabo.mo'.

-- 
Regards
Jacek Kałucki


_______________________________________________
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]

Reply via email to