When I submit a node (for example this one: http://housetier.kicks-ass.net/index.php?q=en/de_test) and then create a translation (http://housetier.kicks-ass.net/index.php?q=en/en_test) I cannot use the neat flag at the bottom of the post to switch languages.

When I click on the flag I always see this:
======================
Primary links
2
======================
However I expected to see the corresponding translation of the node.

I use drupal 4.7.0-rc3 and i18n-cvs

Comments

nathandigriz’s picture

Has work on this even started? The cvs is probably the cvs for version 4.6

housetier’s picture

Title: cannot switch to translated nodes » yes i18n-cvs is being updated

According to here: viewcvs i18n there have very recent updates to the i18n module. Also I recall a conversation on irc on this topic:

Apr 27 18:00:06 <Nomad411> housetier: Hey hey! :)  D you know if the ecommerce and i18n are ready with it?
Apr 27 18:00:56 <housetier> Nomad411 i18n is not ready yet; dunno about ecommerce
Apr 27 18:01:56 <housetier> but this free taggable vocabulary thingy I *just* discovered is so cool
Apr 27 18:02:08 <housetier> its exactly what I wanted!
Apr 27 18:02:23 <hypa7ia>  Nomad411 and housetier, we just finished updating i18n for 4.7
Apr 27 18:02:25 <hypa7ia> for telecentre.org
Apr 27 18:02:28 <hypa7ia> check it out!
Apr 27 18:02:29 <hypa7ia> :)
Apr 27 18:02:40 <hypa7ia> i'll get on our coder to post the code
Apr 27 18:03:45 <housetier> hypa7ia oh thats lovely news
Apr 27 18:03:48 <housetier> <3
Apr 27 18:03:55 <housetier> hahahah I am so happy
Apr 27 18:04:22 <hypa7ia> :)
Apr 27 18:04:59 <hypa7ia> emailing right now.. send me an email at leigh @ takingitglobal.org and i'll let you know when it's been posted

I sent an email and received a response telling me about the updates.

housetier’s picture

Title: yes i18n-cvs is being updated » cannot switch to translated nodes

hmm ok in the above post the irc log came out garbled (the preview didnt show anything), dunno what I can do. Also, I changed the title back to what it was originally.

jose reyero’s picture

About the module, yes, it's being updated, nearly done, and the cvs version is intended to work with Drupal 4.7.

About the translated nodes, which is exactly the link that is not working?

Please, check the new options in both i18n.module and translation.module

profix898’s picture

Same problem here. I have a german page on node/13 and the according english page on node/12. Looking in translation tab the two nodes are listed to be translations of each other. I have 'language switcher' block enabled. First page is accessed from de/node/13, clicking on the english flag the path changes to en/node/13 and the interface language switches to english, but the page is still in german.

profix898’s picture

I just took a look into the db. Could this be an installation problem!? I18n added a new column 'language' to tables 'node' and 'term_data', but the field is empty for every entry in both tables. Also the new 'i18n_variable' table is empty. Table 'i18n_node' look like this

 nid | trid | language | status
 12  |  3   |      en       |    0
 13  |  3   |      de       |    0

.
Hope this helps. I'm using a clean 4.7 installation. To install i18n I added i18n.mysql to the db and enabled the two modules.

jose reyero’s picture

In this latest version -cvs-, there are two language blocks:

- One in i18n module, which is only a language switcher, which means doesnt handle translations.
- One in translation module, which is the one for links to translations.

Also, there are some options in translation module's settings about node links -the flags below the node body-

Hope this helps

profix898’s picture

So the 'language switcher' block is only to switch the interface language!? I cant find any difference between the two blocks you mentioned. They both seem to only switch the interface! I have translation module configured like this:
Language Management: Interface language depends on content
Links to node translations: Main page only
and i18n.module with default options (Only current language and no language).
Clicking on the flag below the node body points to the translated node (this works perfectly), but it doesnt change the interface language. Other way round clicking on the 'language switcher' block only the interface switches and the node/page remains.
From my understanding, with 'Interface language depends on content' at least the first version (click on flag below the node body) should also switch the interface, right?

Is it possible to make content depend on interface AND vice versa? What I want is:
Whenever someone clicks on the 'language switcher' flags the interface and the content switch to the selected language. It is very confusing for users, if only the interface changes and all pages remain in foreign language. 'Un-localized' nodes however should be visible for both languages (with option 'Only current language and no language' enabled).

profix898’s picture

Any statements? Would be great to know what the intended behaviour is like and whether this is a bug or not! ;)

jose reyero’s picture

Status: Active » Fixed

Yep, that was actually a bug. It should be fixed by now.

profix898’s picture

Much better. Thanks.

jose reyero’s picture

Status: Fixed » Closed (fixed)