CakePHP: Internationalizing a web application - Design and Examples?

蹲街弑〆低调 提交于 2019-12-13 02:38:21

问题


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.


回答1:


Two hints:

  1. Read the manual of cakephp.
  2. Look into the code of a available application (maybe croogo)



回答2:


My open source project is translated. It call CandyCane. A port of Redmine into CakePHP. I also imported translation files from Redmine, so CandyCane supports numbers of languages from the beginning.

https://github.com/yandod/candycane

It might be helpful for you.



来源:https://stackoverflow.com/questions/8775649/cakephp-internationalizing-a-web-application-design-and-examples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!