In short, the node teaser gets lost when translating a node, if a manual teaser break has been inserted and the 'Show summary in full view' checkbox is unchecked.

Steps to reproduce:

1) create new node.
2) write something in the body field.
3) insert a manual teaser break (<!--break-->).
4) uncheck the 'Show summary in full view' checkbox.
5) save the node.
6) click on the translate tab.
7) click one of the 'add a translation' links.
8) ... the teaser/summary is lost

Comments

jose reyero’s picture

Status: Active » Closed (fixed)

This is not handled by i18n. You can reopen the issue for Drupal core.

mrfelton’s picture

Project: Internationalization » Drupal core
Version: 6.x-1.x-dev » 6.17
Component: Code » language system
Status: Closed (fixed) » Active
mrfelton’s picture

Version: 6.17 » 6.19
Status: Active » Needs review
StatusFileSize
new656 bytes

Attached patch seems to resolve this.

rolodmonkey’s picture

Version: 6.19 » 6.x-dev
chaugi’s picture

#3 resolves an issue, why this is still not included in Drupal 6.20?!

rolodmonkey’s picture

chaugi,

There is a set procedure for getting a patch committed to the core. Even if a patch fixes a problem, it needs to be reviewed to make sure that it doesn't break something else.

First, the patch needs to be re-submitted in order to go through automated testing. I would do this myself, but the last time I tried, I had a lot of problems with that part of the system: http://drupal.org/node/357021#comment-3666750

After that, the patch still needs to be reviewed by other members of the community. If it looks okay, they can change the status to 'Ready to be committed'. Only then, will the patch be available to roll into the next release.

I can understand your frustration, but this process is necessary. You would be surprised how often a patch that looks really simple breaks something else that no-one thought about.

chaugi’s picture

RoloDMonkey
Thank you very much for your kind explanation!

loparr’s picture

Hi, your patch resolves this issue but only for the first time. After you go back to your translated node and edit it, there is no teaser again. What can be done here?
Thank you

VolkerLanz’s picture

There are two orthogonal issues here that need attention.

The first is that a newly created page translation does not have the teaser preset with the original language's version. This is a small glitch that is indeed fixed by the patch provided above.

The second, much graver issue is that if you uncheck "Show summary in full view" in a translated page the teaser will only be saved once and be lost after the first (and each subsequent) update.

I've tracked this issue down to the translation management modules, namely to the nodeapi implementation in the icl_content module. Disabling _all_ translation management modules (each of them will register the icl_content hook, apparently) fixes the behaviour for me.

Of course disabling all those modules will also make the translation management features basically nonexistant.

loparr’s picture

Hi,
The lost summary is quite annoying because it seems there is no way to put the teaser back. The only option was to create a new node etc... Before someone skilled would post a patch, I would just reenter the missing summary into database.

noup’s picture

Subscribing.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.