Share » Forums » Developer » One translation not displaying...

One translation not displaying default objects

One translation not displaying default objects

Friday 03 December 2004 2:55:34 am - 14 replies

Author Message

Balazs Halasy

Friday 03 December 2004 3:51:56 am

Hmm,

This sounds a bit strange - can you doublecheck please? Might be a bug, in that case: report it! By the way: which version are you running?

Balazs

Eirik Alfstad Johansen

Friday 03 December 2004 4:06:31 am

Hi Balazs,

What exactly do you want me to double-check?

I'm running v. 3.4.0.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Monday 06 December 2004 4:03:32 am

Bump.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 6:05:29 am

I see this too. Im going to dig a little further to try to get more info.

What is clear is if i try to view a page in german which 'defaults' correctly for all other languages, with english as the default, i get a kernel error (I think) 'Objekt ist nicht verfügbar'

paul

Paul Forsyth

Monday 06 December 2004 6:19:25 am

Error template used is: kernel/3.tpl

paul

Paul Forsyth

Monday 06 December 2004 6:22:38 am

http://ez.no/community/bug_reports/when_viewing_in_german_objects_in_the_default_language_are_not_displayed

Eirik Alfstad Johansen

Monday 06 December 2004 6:23:35 am

Hi Paul,

The same is the case with me. I think this is due to ezP looking for a german version of the main node (node id 2), because when I translate it to german, the main page appears fine.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 6:34:15 am

Hmmm, puzzling. Our objects are translated into German, including the root node.

paul

Paul Forsyth

Monday 06 December 2004 6:41:50 am

Eirik,

Do all nodes/objects underneath default to the base language in the german view now?

paul

Eirik Alfstad Johansen

Monday 06 December 2004 6:48:19 am

Hi Paul

<quote>
Hmmm, puzzling. Our objects are translated into German, including the root node.
</quote>

What do you mean? When are they translated into German?

<quote>
Do all nodes/objects underneath default to the base language in the german view now?
</quote>

I don't understand the question.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 7:11:24 am

Hi Eirik,

I think i've found the problem and it involves db corruption :(

When a new object is created the table ezcontentobect_name gets an entry for the content_translation as 'ger-DE@euro' not 'ger-DE'. When you edit the object in german it gets set correctly. But not when the object is first created i think.

This is why, i believe, other objects without the german translation dont show. The sql query cannot match 'ger-DE' to 'ger-DE@euro'.

Looking at the files in 'share/locale' i see 'ger-DE@euro.ini' before 'ger-DE.ini'. Is the file matching routine picking the first one it finds? I cant find any mention of 'euro' in my own files that might cause this...

paul

Eirik Alfstad Johansen

Monday 06 December 2004 7:41:36 am

Hi Paul,

That sounds about right. Editing the content_translation file for one of the rows in ezcontentobject_name, causes the related object to appear.

I too have no mention of 'ger-DE@euro' that I could find.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Monday 06 December 2004 12:58:14 pm

Think i've fixed it. It looks to be initially caused by a user error when setting up translations.

Have a read of the bug report for more.

But, the system shouldnt have behaved as it did.

Paul

Eirik Alfstad Johansen

Tuesday 07 December 2004 2:08:29 am

Thanks a lot, Paul! I did what you suggested, and now the german translation work as supposed to.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu