Re: [dabo-users] Dabo-users Digest, Vol 80, Issue 2

Author: K C Tang

Posted: 2011-02-01 at 22:15:32

Hi,

Latest results of executing "C:\dabo\demo>dabodemo.py" after doing a web

update:

If Windows language format = "[zh_CN]" or "[zh_SG]" or "zh_TW]" or

"[zh_MO]", no translation error reported, but Dabodemo cannot proceed with

the following message:

C:\dabo\demo>dabodemo.py

Traceback (most recent call last):

File "C:\dabo\demo\DaboDemo.py", line 6, in <module>

import dabo

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\__init__.py", li

ne 148, in <module>

dLocalize.install("dabo")

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\dLocalize.py", l

ine 56, in install

setLanguage(_defaultLanguage, _defaultEncoding)

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\dLocalize.py", l

ine 85, in setLanguage

dabo.log.error("""

AttributeError: 'module' object has no attribute 'log'

If Windows language format = "[zh_HK]", no translation error reported, but

Dabodemo cannot proceed with the following message:

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line

1464

0, in <lambda>

lambda event: event.callable(*event.args, **event.kw) )

File "C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\dApp.py",

line 3

82, in initUIApp

self.uiApp.setup()

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\ui\uiwx\uiApp.py

", line 415, in setup

frm = self.dApp.MainForm = dabo.ui.createForm(mfc)

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\ui\uiwx\__init__

.py", line 1226, in createForm

cls = createClass(srcFile)

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\ui\uiwx\__init__

.py", line 1207, in createClass

cls = conv.classFromText(srcFile)

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\lib\DesignerClas

sConverter.py", line 81, in classFromText

self.createClassText(dct)

File

"C:\Python27\lib\site-packages\dabo-0.9.3-py2.7.egg\dabo\lib\DesignerClas

sConverter.py", line 379, in createClassText

self.classText = ct.encode(self._encoding)

LookupError: unknown encoding: A

This time, "[zh_MO]" behaves like others with "[zh_HK]" the only exception.

"[en_AU]" is OK.

Regards,

K C Tang

Message: 3

Date: Tue, 1 Feb 2011 20:54:21 +0800

From: "K C Tang" <kctang@kctang.com.hk>

To: <dabo-users@leafe.com>

Subject: Re: [dabo-users] Locale

Message-ID: <C270A963171A474497A0EB3FA3022A04@KcTangASUS>

Content-Type: text/plain; format=flowed; charset="UTF-8";

reply-type=response

Hi,

Correction:

The last report was based on a different computer having a different system

locale.

To conclude after different tests:

when Windows system locale = Hong Kong, codeset = cp950

when Windows system locale = China (PRC), codeset = cp936

but hehaviour the same in both cases:

when Windows language format = ?[zh_CN]? or "[zh_SG]? or ?[zh_TW]?,

translation error appears, but Dabodemo can run.

when Windows language format = ?[zh_HK]? or "[zh_MO]?, translation error

appears, ?LookupError: unknown encoding: A? appears, and Dabodemo cannot

proceed.

Regards,

K C Tang

_______________________________________________

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/B65D0BD5F39F42AC8F9CDD7B2D25A0D9@KcTangASUS

©2011 K C Tang