see web\auth.py,
it's not in the form of _('....')
does this lead to the login page error?
def get_navigation_items(self, req): if req.authname and
req.authname != 'anonymous': yield ('metanav', 'login', 'logged in
as %s' % req.authname) yield ('metanav', 'logout',
tag.a('Logout', href=req.href.logout())) else: yield
('metanav', 'login', tag.a('Login', href=req.href.login()))
I'd like to change 'login','logout' into other language, so something must
change?
http://Trac.iKeeper.cn-----------------------Trac in Chinese,zh_CN
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: [Trac] trac_0.11_i18n, login not
workingDate: Sun, 3 Feb 2008 06:22:53 +0000
so , seems like everything is OK now. except that the login page always
showssome error.--------------------------------------Following latest
instruction from http://trac.edgewall.org/wiki/TracL10N ,I tried
http://svn.edgewall.org/repos/trac/sandbox/i18neasy_install Babelsvn checkout
http://svn.edgewall.org/repos/trac/sandbox/i18n trac cd tracsetup.py
compile_catalog -f -l zh_CNsetup.py build setup.py install md
\traci18n\python25\Scripts\trac-admin.exe \traci18n
initenv\python25\Scripts\tracd.exe \traci18ntrac-admin.exe \traci18n
-s...Server starting in PID 3984.Serving on 0.0.0.0:80 view at
http://127.0.0.1:80/------------------------------so , seems like everything is
OK now. except that the login page always showssome error: Traceback (most
recent call last):
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\web\api.py",
line 340, in send_error
'text/html')
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\web\chrome.py",
line 673, in render_template
data = self.populate_data(req, data)
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\web\chrome.py",
line 577, in populate_data
d['chrome'].update(req.chrome)
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\web\api.py",
line 169, in __getattr__
value = self.callbacks[name](self)
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\web\chrome.py",
line 449, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\admin\web_ui.py",
line 66, in get_navigation_items
title=_('Administration'))
File
"E:\Python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\builder.py", line
248, in __call__
self.attrib |= Attrs(_kwargs_to_attrs(kwargs))
File
"E:\Python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\builder.py", line
153, in _kwargs_to_attrs
for k, v in kwargs.items() if v is not None]
File
"E:\Python25\lib\site-packages\genshi-0.4.4-py2.5.egg\genshi\builder.py", line
149, in _value_to_unicode
return unicode(value)
File "e:\python25\lib\site-packages\Babel-0.9.1-py2.5.egg\babel\support.py",
line 207, in __unicode__
return unicode(self.value)
File "e:\python25\lib\site-packages\Babel-0.9.1-py2.5.egg\babel\support.py",
line 183, in value
value = self._func(*self._args, **self._kwargs)
File
"e:\python25\lib\site-packages\Trac-0.11dev_r6438-py2.5.egg\trac\util\translation.py",
line 38, in _gettext
trans = get_translations().ugettext(string)
TypeError: unbound method ugettext() must be called with NullTranslations
instance as first argument (got str instance instead)
any suggestion ?
_________________________________________________________________
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---