i18n 打破涡轮齿轮设置 -wiki20 教程

发布于 2024-12-12 03:26:19 字数 992 浏览 0 评论 0原文

作为 Turbogears 新手,

我正在使用 win7、python 2.7.2(我猜我的计算机区域设置是希伯来语,但一开始我计划进行英语开发),我认为 Turbogears 版本是 2.1.3

。我运行“pasterserve --reloaddevelopment.ini”,

我在 localhost:8085 中获得(我将默认应用程序端口更改为 8085) 带有以下消息的服务器错误页面: AttributeError: 'AcceptLanguage' 对象没有属性 'best_matches'

我检查了我的 i18n 库,发现有一个名为 ru 的子文件夹,并且只有该子文件夹(猜测这代表俄语)

我尝试取消注释development.ini 中的 lang= 并将其设置为 lang =en 或 lang=en_EN 或 lang = en_US 或 lang = en-US 或 lang = he 但在所有情况下错误消息只是改为: LanguageError: IOError: [Errno 2] 找不到翻译文件 域名:'wiki20' 我还尝试遵循本地化指南并设置“他”语言和翻译文件等,遵循完整的指南,但是 - 这根本没有帮助

我在 stackoverflow 中发现了另一个人有同样的问题,但没有答案 TurboGears 2 快速入门立即显示错误 原始回溯在这里: http://pylonshq.com/tracebacks/089af51be2370022eb0029ef6106168c

一开始我实际上更愿意禁用所有这些国际化的东西..但我不知道如何做到这一点

我会很高兴对此有任何帮助

ollowing the 20wiki tutorial as a Turbogears newbie

I'm using win7, python 2.7.2 (I guess the my computer locale is hebrew, but for the beginning I was planning on english development) and I think the turbogears version is 2.1.3

when I run the "paster serve --reload development.ini

I get in the localhost:8085 (I changed the default application port to
8085)
a server error page with the following message:
AttributeError: 'AcceptLanguage' object has no attribute 'best_matches'

I checked my i18n library and found there a sub folder with name ru , and only that subfolder (guess this stands for russian)

I tried to uncomment the lang= in development.ini and set it as lang =en or lang=en_EN or lang = en_US or lang = en-US or lang = he but in all cases the error message just changed to:
LanguageError: IOError: [Errno 2] No translation file found for
domain: 'wiki20'
I also tried following the localization guide and setting 'he' language and translation files etc' followed the complete guide but - this didn't help at all

I found another person with the same problem in stackoverflow, but without an answer TurboGears 2 quickstart shows error immediately
the original traceback is here:
http://pylonshq.com/tracebacks/089af51be2370022eb0029ef6106168c

for the beginning I would actually prefer to disable all this i18n stuff .. but I can't find out how to do this

I'll be glad for any help with this

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梓梦 2024-12-19 03:26:19

此处回答了这个问题:TurboGears 2 快速入门立即显示错误

webob 的问题 - 您应该通过轻松安装来卸载当前的 webob 版本(1.2b 或类似版本),然后

easy_install webob==1.1.1

它就会工作
我还在turbogears google group中得到了以下建议:
为了确保您得到正确的东西,请始终安装涡轮齿轮:

easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools 

this was answered here: TurboGears 2 quickstart shows error immediately

problem with webob - you should uninstall with easy install the current webob version (1.2b or something like that) and

easy_install webob==1.1.1

after that it'll work
I also got the following advice in the turbogears google group:
To be sture that you get the right things always install turbogears with:

easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文