非英语友好的 MVC Web 框架
我尝试过几种 MVC Web 开发框架(例如 Ruby on Rails 和 cakePHP),它们都很棒。
然而,由于它们的“约定优于配置”理念,它们似乎不太适合非英语项目,最明显的是因为在对象关系映射和 URL 中强制使用英语复数。
需要/希望其数据库表和 URL 使用非英语的开发人员通常会做什么?是否有一个真正适合这个的框架,或者他们是否调整/修改路由和 ORM?如果是这样,哪些框架使这种配置最方便?
I've tried several MVC web development frameworks (like Ruby on Rails and cakePHP), and they are great.
However, because of their "convention over configuration" philosophy, they seem to be not very well suited for non-English projects, most notably because of forcing English plural in object-relational mapping and URLs.
What do developers that need/want their database tables and URLs to be in non-English usually do? Is there a framework that is really good with this, or do they tweak/hack routing and ORM? If so, which frameworks make this configurations most convinient?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Ruby on Rails 允许您定义在映射和 URL 中创建复数的规则。只需在 Rails 中查找有关您母语的 inflections.rb 的信息,您可能会发现有人已经找到了正确的信息。
Ruby on Rails allows you to define rules for creating plurals in mappings and URLs. Just look for information on inflections.rb in Rails for your native language and you might find somebody already figured out the proper ones.