Re: App_controller function to obtain default.pot file ( i18n extract )
Well, we have different persons in charge of the translations. However, those persons don't know what is a terminal actually. Because we often add new functions and views in our website, we all also add new _('to be translated',true) tags in the code. We just want it to be easy, with a simple 'button' on the website, the persons who translate can have the last items that need to be translated without asking us every time. In this context, they feel free to translate the last version of the website, when they want. I asked this question because we use the http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs build_acl function, which was first a shell command. Might it be possible to run the i18n extract command in a background terminal? -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4501699.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Yeah you can easily set it up using a cron job. Just use the same command you use in the CLI in the cron. On Jun 18, 10:14 am, krisspnet christophe.pou...@gmail.com wrote: Well, we have different persons in charge of the translations. However, those persons don't know what is a terminal actually. Because we often add new functions and views in our website, we all also add new _('to be translated',true) tags in the code. We just want it to be easy, with a simple 'button' on the website, the persons who translate can have the last items that need to be translated without asking us every time. In this context, they feel free to translate the last version of the website, when they want. I asked this question because we use thehttp://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs build_acl function, which was first a shell command. Might it be possible to run the i18n extract command in a background terminal? -- View this message in context:http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtai... Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
On Jun 18, 2011, at 12:14, krisspnet wrote: Well, we have different persons in charge of the translations. However, those persons don't know what is a terminal actually. Because we often add new functions and views in our website, we all also add new _('to be translated',true) tags in the code. We just want it to be easy, with a simple 'button' on the website, the persons who translate can have the last items that need to be translated without asking us every time. In this context, they feel free to translate the last version of the website, when they want. You have a process for publishing the latest version of your web site to your production server, don't you? Include in that process running the extraction, and publishing the default.pot along with the rest of the web site. Then the translator doesn't need to generate anything; they just download the already-generated file. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Thank you very much. I will try it ! -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502127.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Thank you very much ;) -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502131.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
App_controller function to obtain default.pot file ( i18n extract )
Hi everyone, I am a new user of the cakephp framework and I find it really amazing for those who have few knowledge of website construction. My colleagues and I are working on a project that has to be shown each month into different languages. Therefore, we have started to build a multilingual interface with cake i18n extract shell command. Thanks to this page : http://cakephp.1045679.n5.nabble.com/create-po-file-from-database-table-multilingual-l10n-I18n-td1328082.html create-po-file-from-database-table-multilingual-l10n-I18n , we have build a simple interface to facilitate the life of our translators. However, our website is changing month after month, with the need to translate the new __('text to be translated',true). Hence, we have to re-construct the default.pot file each time. My question : Is there an App_controller function that can do the shell command : cake i18n extract shell If not, does anyone have an idea of how should it be written ? Thanks in advance. -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4495820.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
It should be done in the command line as attempting to do it in the browser will be really slow and most likely consume a lot of memory. Any specific reason you want it in the AppController? On Jun 16, 9:35 am, krisspnet christophe.pou...@gmail.com wrote: Hi everyone, I am a new user of the cakephp framework and I find it really amazing for those who have few knowledge of website construction. My colleagues and I are working on a project that has to be shown each month into different languages. Therefore, we have started to build a multilingual interface with cake i18n extract shell command. Thanks to this page :http://cakephp.1045679.n5.nabble.com/create-po-file-from-database-tab... create-po-file-from-database-table-multilingual-l10n-I18n , we have build a simple interface to facilitate the life of our translators. However, our website is changing month after month, with the need to translate the new __('text to be translated',true). Hence, we have to re-construct the default.pot file each time. My question : Is there an App_controller function that can do the shell command : cake i18n extract shell If not, does anyone have an idea of how should it be written ? Thanks in advance. -- View this message in context:http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtai... Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php