issues with translatations

You need to be logged in to post messages in the forums. New users may register here.

Lars Eirik Ronning

Member since:
20 July 2009

Posts: 20

Friday 03 September 2010 1:28:40 pm

Hi.
Your extension is really great, however i have experienced some issues when i do the following:

Could you please verify that the following works:
create a new node $mynode in a non-default language (based on site.ini)
IN the same run please add some new subnodes in the same language as $mynode
Are you able to do this sucessfully?
$mynode should then have two children.


Can you verify that this works?
I get some errors saying that "attributes()" function is not correctly instantiated because the variable is not an object.

This does work if it is trying to import in the default language.


Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Friday 03 September 2010 11:22:41 pm

Hi Lars

Thank you for reporting this issue.
I'm enable reproduced it and am working on a fix :)
Up

Lars Eirik Ronning

Member since:
20 July 2009

Posts: 20

Friday 03 September 2010 11:49:15 pm

fantastic!
Please let me know once you have this fixed.
I will then fetch it from you trunk and try to merge it into my project.
Also would you bee so keen as to briefly indicate where you made the changes?

One more questions:
Is there an easy way to set the date for the content when i import it?
It currently only uses the day of the import, not the date which i would like to be able to set from the datasource xml..

Have a good day in France:)
Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Saturday 04 September 2010 12:10:52 am

Sure no problem :).
I think I found the problem : in SQLIContentFieldsetHolder on line 162, I make use of $object->availableLanguages() and the problem with this method is that it returns langs in your SiteLanguageList (site.ini).
I'm currently trying $object->allLanguages() instead, but there is no in-memory cache for that, so it might make the content creation less efficient...

About your other question, here's a tip : With SQLIContent, you can use all eZContentObject attributes as virtual properties (this is also the case for SQLILocation and eZContentObjectTreeNode) :
















Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Saturday 04 September 2010 11:31:39 am

Fixed in trunk, rev 8 - http://bit.ly/8Yqg0G
Changes happen in SQLIContentFieldsetHolder

I also fixed another issue with SQLIContentPublisher (see rev 9) - http://bit.ly/97MeKx
Up

Lars Eirik Ronning

Member since:
20 July 2009

Posts: 20

Saturday 04 September 2010 12:53:19 pm

Thanks for really helping out and making this extension better. It really is a pleasure to work with.

I did download the lateste php class version of the contentholder as well as the publisher.
This did not resolv my problem.
I get the following issue when i try to import the subnodes
An error occurred during "myimporthandler" import process : Unable to find eZContentObjectTreeNode with NodeID # 2393

It could be that i am doing something wrong, but i would really appreciate if you could include your process example where you add a node with its subnodes in a non-default language.

I have to admit that i have not donwloaded version 1.01 but instead manually updated the classes you indicate in your reply to my post here:)
Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Saturday 04 September 2010 4:11:14 pm

Lars

I'm glad you enjoy the extension :).
Here's the snippet I used to track the issue (my default language was fre-FR) :

















































































Up

Lars Eirik Ronning

Member since:
20 July 2009

Posts: 20

Sunday 05 September 2010 5:38:46 am

I updated the sqlcontent class as well as following your example.
However as long as my "non-default" language is not in the default siteaccess i get the same problems.
By adding the language it seems to work fine.

Have you verified that your test works when not having english present in the siteLanguageList in site.ini.append.php?

Just to let you know.. as this is in my case an example which is only for importing new content once, this is not a problem, with regards to scheduling on a live site, this will however be something that should be resolved.. just to make the product even better of course..

BTW adding new dates by following your example works nicely:)
Thanks for making this a better extension once again.

Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Sunday 05 September 2010 3:22:45 pm

Lars

I tried with languages that are not present in my SiteLanguageList (I retried with nor-NO just in case). But of course, you will need to add it to your system (Setup => Languages).
Can you please show me an extract of your code, so I can see what may be wrong ?

You can also try this snippet : http://pastebin.com/bz6Vd7wm . Save this snippet in the stubs/ directory of the extension and run it with a non-default language (you might alter the snippet for that of course :)).

My guess is that with all your past fatal errors, you introduced corrupted content objects in the database. Do you use remoteID ? Because if this is the case, this might be the origin of your problem as the content API would fetch the corrupted objects in the DB with the remoteID instead of creating new ones.
Up

Jérôme Vieilledent

Member since:
09 January 2008

Posts: 77

Monday 04 October 2010 1:57:59 am

Hi Lars

I think I found something, but I'm not sure if this is also affects you...
Can you please try to manually set your activeLanguage ?












Up

You need to be logged in to post messages in the forums. New users may register here.