localization - how to use i18n for one language cakephp -
i need launch web app in spanish moment , need translate app...
i modified default.po , added configure::write('config.language', 'es') core.php...
what now? don't want add routing rigth now. suggestions?
pd: did in manual , @#$%^&%$@@ cant work
i18n tricky 1 head around. if you're producing website in spanish, there no need use it, use po messages matter of course, just in case.
there component lot: http://bakery.cakephp.org/articles/p0windah/2007/09/12/p28n-the-top-to-bottom-persistent-internationalization-tutorial
there used script allow translation of slugs seo direct right language. last time looked, had vanished, i'll try piece you.
for moment, used in router.php
//route switch locale router::connect('/lang/*', array('controller' => 'p28n', 'action' => 'change')); //forgiving routes allow users change lang of page router::connect('/eng?/*', array( 'controller' => "p28n", 'action' => "shuntrequest", 'lang' => 'en-gb' )); router::connect('/ca?/*', array( 'controller' => "p28n", 'action' => "shuntrequest", 'lang' => 'cat' )); router::connect('/es?/*', array( 'controller' => "p28n", 'action' => "shuntrequest", 'lang' => 'es_es' ));
i'll dig around url translation, may take while....
Comments
Post a Comment