问题描述
我有一个使用CakePHP框架构建的Web应用程序,现在我正在进行国际化。我开始使用以下文章中概述的基本设置 -
并且根据我上一个问题添加一些自定义
为了使我的网络应用程序完全国际化,我将需要翻译我的下拉/查找内容,如 - 类别,收藏,国家,桶列表等。
什么是设计我的表和CakePHP样品?有人能用一个简单的例子和类来解释吗?链接或文章?
假设我们有类似 -
用户可以创建多个帖子,帖子在下拉列表中有一个类别[科学文章,匹配文章]等,我们也需要国际化下拉菜单。
两个提示:
- 阅读cakephp的手册。
- 查看代码的可用应用程式(也许)
I have a web application built using CakePHP framework and now I am in the process of internationalizing it. I started with the base set-up as outlined in the below article -
http://puskin.in/blog/2010/08/cakephp-manage-multiple-language-in-application/
and also add little bit of customization based on my previous question -
CakePHP: Internationalizing Web Application
To completely internationalize my web app, I would need to translate my drop-down/look-up content as well, like - categories, favorites, countries, bucket list etc.
What is the best way to design my tables and CakePHP samples? Can someone explain with a simple example and classes? Links or articles?
Lets say we have something like -
A user can create multiple posts, and each post has a category [science article, match article] etc in the drop-down and same we need to internationalize drop-down as well.
Two hints:
- Read the manual of cakephp.
- Look into the code of a available application (maybe croogo)
这篇关于CakePHP:国际化Web应用程序 - 设计和示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!