I have just released a translation module: Ei18n.
Description
Ei18 is a translation module to allow Yii’ers to easily manage missing translations on application pages. It is heavily inspired by yii.translate developed by Gustavo Salomé Silva gusnips.
-----
Please use this forum thread for bugs, feedback, improvements, etc...
Extension link on Yii repository: http://www.yiiframew...xtension/ei18n/
-----
Hope you find it as useful as it is for me...
Cheers
Page 1 of 1
Ei18n Translation Module Ei18 is a translation module to allow Yii’ers to easily manage missing
#1
Posted 16 March 2012 - 07:20 PM
¿How long would it take for you to understand that you own nothing in this world?
www.ramirezcobos.com
www.ramirezcobos.com
#2
Posted 17 March 2012 - 02:12 AM
Thanx Antonio for sharing. It looks very interesting.
I've just downloaded it and went to download the requirements, and found that Fancybox is "Now licensed under Creative Commons Attribution-NonCommercial 3.0" :-(
So I guess if I want to use it, I should change it by CJuiDialog. What do you think?
I've just downloaded it and went to download the requirements, and found that Fancybox is "Now licensed under Creative Commons Attribution-NonCommercial 3.0" :-(
So I guess if I want to use it, I should change it by CJuiDialog. What do you think?
#3
Posted 17 March 2012 - 02:48 PM
tellibus, on 17 March 2012 - 02:12 AM, said:
Thanx Antonio for sharing. It looks very interesting.
I've just downloaded it and went to download the requirements, and found that Fancybox is "Now licensed under Creative Commons Attribution-NonCommercial 3.0" :-(
So I guess if I want to use it, I should change it by CJuiDialog. What do you think?
I've just downloaded it and went to download the requirements, and found that Fancybox is "Now licensed under Creative Commons Attribution-NonCommercial 3.0" :-(
So I guess if I want to use it, I should change it by CJuiDialog. What do you think?
I made use of Fancybox in order to make the module a bit nicer and thinking that as the task to manage translations are on development states (once all translations are done, is up to the backend to update them) the license wont affect it... but changing the module to CJuiDialog shouldn't be a hard task.
¿How long would it take for you to understand that you own nothing in this world?
www.ramirezcobos.com
www.ramirezcobos.com
#4
Posted 09 April 2012 - 08:05 PM
hi guys,
i wonder the line
thanks guys.
i wonder the line
'onMissingTranslation' => array('Ei18n', 'missingTranslation'), will cause my page become blanks, but it become ok when remove this line. Anyone know what cause this problem happens??
/* import the module */
'import'=>array(
/* ... */
'application.modules.translate.TranslateModule',
'components' => array(
'messages' => array(
'class' => 'CDbMessageSource',
'onMissingTranslation' => array('Ei18n', 'missingTranslation'), <---- this line
'sourceMessageTable' => 'tbl_source_message',
'translatedMessageTable' => 'tbl_message'
),
/* setup global translate application component */
'translate' => array(
'class' => 'translate.components.Ei18n',
'createTranslationTables' => true,
'connectionID' => 'db',
'languages' => array(
'en' => 'English',
'es' => 'Español',
'it' => 'Italiano'
)
),
/* setup the module */
'modules' => array(
'translate'
),
/* preload the global translate application component */
'preload'=> array(
'translate'
)thanks guys.
#5
Posted 10 April 2012 - 05:40 AM
jowen, on 09 April 2012 - 08:05 PM, said:
hi guys,
i wonder the line
thanks guys.
i wonder the line
'onMissingTranslation' => array('Ei18n', 'missingTranslation'), will cause my page become blanks, but it become ok when remove this line. Anyone know what cause this problem happens??
/* import the module */
'import'=>array(
/* ... */
'application.modules.translate.TranslateModule',
'components' => array(
'messages' => array(
'class' => 'CDbMessageSource',
'onMissingTranslation' => array('Ei18n', 'missingTranslation'), <---- this line
'sourceMessageTable' => 'tbl_source_message',
'translatedMessageTable' => 'tbl_message'
),
/* setup global translate application component */
'translate' => array(
'class' => 'translate.components.Ei18n',
'createTranslationTables' => true,
'connectionID' => 'db',
'languages' => array(
'en' => 'English',
'es' => 'Español',
'it' => 'Italiano'
)
),
/* setup the module */
'modules' => array(
'translate'
),
/* preload the global translate application component */
'preload'=> array(
'translate'
)thanks guys.
What that line says is that onMissingTranslation, the component should call Ei18n, have you preloaded the component? Check installation instructions.
¿How long would it take for you to understand that you own nothing in this world?
www.ramirezcobos.com
www.ramirezcobos.com
#6
Posted 10 April 2012 - 06:54 PM
hi Antonio Ramirez,
i follow the configuration Ei18n,unzip the file and copy the translate folder inside protected/modules. then
copy
Pls helps. Thanks
i follow the configuration Ei18n,unzip the file and copy the translate folder inside protected/modules. then
copy
Yii::app()->translate->renderMissingTranslationsEditor();to column2 in layouts. The config main also follow to ei18n. The problem still happens!!
Pls helps. Thanks
#7
Posted 04 April 2013 - 09:25 AM
Hi, its all working fine with the translations, the only problem I got is that when I make one ajax call rendering its return on a jQuery dialog, the translator doesn't recognize the new translations.
Is there a way to make it do that?
Is there a way to make it do that?
Share this topic:
Page 1 of 1

Help












