Re: Re : R: Re: [Centurion-project] Multilingual module

36 views
Skip to first unread message

Laurent Chenay

unread,
Jan 16, 2012, 10:06:49 AM1/16/12
to centurio...@googlegroups.com
Multilingual is working, and is in production in many siteweb (almost all).

Your infinite loop is strange.
Could you tell us more about it ?

Fork us on github and push on your own branch. I will test directly your source code on my webserver.

Laurent Chenay
--


http://www.centurion-project.org
Lead developer of Centurion CMF



2012/1/9 Aurelien <aurelie...@gmail.com>
I saw that multiling is commented in CMS module
if I uncomment it, it is not really usable (not able to save pages translations)
so, what is the stability level of i18n in Centurion 0.2?

Aurelien

unread,
Jan 16, 2012, 11:10:50 AM1/16/12
to Centurion project
hello

I tried to make a new module from scratch, to be sure
no more infinite loop but now I have an exception: "Exception
Zend_View_Exception script 'admin-country/form.phtml' not found in
path"

the infinite loop comes when I add a class name in $_dependentTables
of the translated model:

class xxx_Model_DbTable_Country
extends Centurion_Db_Table_Abstract
implements Translation_Traits_Model_DbTable_Interface
{
protected $_name = 'xxx_country';
protected $_primary = array('id');
protected $_rowClass = 'xxx_Model_DbTable_Row_Country';
protected $_referenceMap = array();
protected $_dependentTables = array('xxx_Model_DbTable_Man');
...
}


On 16 jan, 16:06, Laurent Chenay <l...@centurion-project.org> wrote:
> Multilingual is working, and is in production in many siteweb (almost all).
>
> Your infinite loop is strange.
> Could you tell us more about it ?
>
> Fork us on github and push on your own branch. I will test directly your
> source code on my webserver.
>
> Laurent Chenay
> --
>
> http://www.centurion-project.org
> Lead developer of Centurion CMF
>
> 2012/1/9 Aurelien <aurelien.mil...@gmail.com>

Aurelien

unread,
Jan 16, 2012, 11:41:05 AM1/16/12
to Centurion project
unfortunately, I have never used GitHub for now and I can't learn
right now how to use it :-/
If you want, you can download an archive of my module here:
http://public.aurelien-millet.fr/centurion_test_module.zip (also
contains SQL schema)

you will see that commenting $_dependentTables in
Test_Model_DbTable_Country will make the application work
but uncomment this line and you will get this error: Fatal error:
Maximum execution time of 120 seconds exceeded in /home/www/default/
aurelien/centurion_test/library/Centurion/Db/Table/Abstract.php on
line 1054

thanks in advance for your help
best regards
Aurélien

Laurent Chenay

unread,
Jan 23, 2012, 12:01:18 PM1/23/12
to centurio...@googlegroups.com
Pretty good bug that you have here.

You have wrong written the variable $_dependentTables in your Test_Model_DbTable_Country.
It must be like this:

$_dependentTables = array(
    'name_of_relation' => 'Class',
    'name_of_relation2' => 'Class2',
    ...
);

You forget the key value.

Laurent Chenay
--


http://www.centurion-project.org
Lead developer of Centurion CMF



2012/1/16 Aurelien <aurelie...@gmail.com>

Aurelien

unread,
Jan 24, 2012, 4:41:45 AM1/24/12
to Centurion project
hello

thank you for taking time to look at this problem

I modified with: protected $_dependentTables = array('players' =>
'Test_Model_DbTable_Player');
although, ZF doc never tells to use keys in $_dependentTables array

I do not have infinite loop anymore but still have this exception:
Zend_View_Exception: script 'admin-country/form.phtml' not found in
path (
.../application/modules/test/views/scripts/:
.../application/../library/Centurion/Contrib/translation/views/
scripts/:
.../application/../library/Centurion/Contrib/media/views/scripts/:
.../application/../library/Centurion/Contrib/admin/views/scripts/:
.../application/views/scripts/:
.../application/../library/Centurion/Contrib/core/views/scripts/
) thrown in .../library/Zend/View/Abstract.php on line 976



On 23 jan, 18:01, Laurent Chenay <l...@centurion-project.org> wrote:
> Pretty good bug that you have here.
>
> You have wrong written the variable $_dependentTables in
> your Test_Model_DbTable_Country.
> It must be like this:
>
> $_dependentTables = array(
>     'name_of_relation' => 'Class',
>     'name_of_relation2' => 'Class2',
>     ...
> );
>
> You forget the key value.
>
> Laurent Chenay
> --
>
> http://www.centurion-project.org
> Lead developer of Centurion CMF
>
> 2012/1/16 Aurelien <aurelien.mil...@gmail.com>

Laurent Chenay

unread,
Jan 24, 2012, 6:23:59 AM1/24/12
to centurio...@googlegroups.com
You're right. In Zend we haven't a key for dependant table.
I open a ticket on Github and will try to fix it.

Laurent Chenay
--


http://www.centurion-project.org
Lead developer of Centurion CMF



2012/1/24 Aurelien <aurelie...@gmail.com>

Aurelien

unread,
Jan 25, 2012, 4:29:21 AM1/25/12
to Centurion project
ok
do you have any idea for the exception which is thrown?
why would I have to create a form.phtml file?


On 24 jan, 12:23, Laurent Chenay <l...@centurion-project.org> wrote:
> You're right. In Zend we haven't a key for dependant table.
> I open a ticket on Github and will try to fix it.
>
> Laurent Chenay
> --
>
> http://www.centurion-project.org
> Lead developer of Centurion CMF
>
> 2012/1/24 Aurelien <aurelien.mil...@gmail.com>
Reply all
Reply to author
Forward
0 new messages