Rhodri James wrote:
> On Tue, 21 Jul 2009 18:19:44 +0100, Paul McNett <p...@ulmcnett.com> wrote:
> 
>> Rhodri James wrote:
>>> I've seen this crop up once or twice in the archives, but I'm not sure  
>>> what
>>> the solution is from my perspective.
>> I don't know what the solution is, either. All I know is that everyone
>> that's reported this seems to be running Python 2.6, which we don't
>> really support yet.
>>
>> Can you try with Python 2.5?
> 
> Same problem, which may, of course, be because 2.5 isn't my default.
> I reinstalled (using 2.5) before trying this:
> 
> rho...@gnudebst:~/Tools/dabo/demo$ python2.5 DaboDemo.py
> Traceback (most recent call last):
>    File "DaboDemo.py", line 6, in <module>
>      import dabo
>    File "/usr/lib/python2.5/site-packages/dabo/__init__.py", line 130, in  
> <module>
>      dLocalize.install("dabo")
>    File "/usr/lib/python2.5/site-packages/dabo/dLocalize.py", line 56, in  
> install
>      setLanguage(_defaultLanguage, _defaultEncoding)
>    File "/usr/lib/python2.5/site-packages/dabo/dLocalize.py", line 76, in  
> setLanguage
>      daboTranslation = gettext.translation("dabo", daboLocaleDir,  
> languages=lang, codeset=charset)
>    File "/usr/lib/python2.5/gettext.py", line 484, in translation
>      raise IOError(ENOENT, 'No translation file found for domain', domain)
> IOError: [Errno 2] No translation file found for domain: 'dabo'

Could you modify dLocalize.py:

> pmcn...@lin:~/dabo/dabo$ svn diff
> Index: dLocalize.py
> ===================================================================
> --- dLocalize.py      (revision 5299)
> +++ dLocalize.py      (working copy)
> @@ -73,6 +73,8 @@
>       daboTranslation = None
>       daboLocaleDir = _domains.get("dabo", None)
>       if daboLocaleDir:
> +             import os
> +             print daboLocaleDir, os.path.exists(daboLocaleDir)
>               daboTranslation = gettext.translation("dabo", daboLocaleDir, 
> languages=lang, codeset=charset)
>  #            daboTranslation.install()  ## No, don't globally bind _
>               _currentTrans = daboTranslation.ugettext

Run a dabo app and then post the output of the print statement? Mine is:

   /home/pmcnett/dabo-full/trunk/dabo/locale True

Paul


_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/4a66391a.8050...@ulmcnett.com

Reply via email to