For multilingual sites the translation of an announcement should not lead to the creation of a new announcement that is visible as a separate new announcement. This is what it happens now and makes your module inappropriate for multilingual sites.

Please correct me if I am wrong (in such a case please instruct me how to have the described functionality)

I use drupal 6.8 just in case this is helpful.

CommentFileSizeAuthor
#5 announcements_newweights.patch1.29 KBnhck

Comments

dddave’s picture

This is to be solved in your view settings. i18n supports view integration (make sure it is enabled). This makes it possible to use "Contenttranslation" as a filter.

Does this solve the problem?

Not using this module but thinking about it. Therefore I might have understood your request incorrect.

nancydru’s picture

I don't have any multilingual sites, so I can't test anything. It is my understanding that i18n will create a new node - and you really want that. Perhaps I need to look at my queries to see if I need to do anything more for i18n.

nancydru’s picture

My queries include db_rewrite_sql which should give i18n the opportunity to limit the language. Have you opened an issue with i18n? Their developer docs are terrible to non-existent.

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)
nhck’s picture

Priority: Normal » Minor
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.29 KB

You need to activate multilanguage through the workflow settings of this content-type at

admin/content/node-type/announcements

However I would still suggest to change the weights for the Annoucment-form, so the Language-Swichter doesn't float around in the middle of the form.

nancydru’s picture

Thanks, Niels. What does this do to sites that don't translate?

nhck’s picture

Nothing.
The Translation-module injects a little language-selector-form-field via hook_form_alter, they use a negative weight to float on top. In the annoucement.module, negative weights are used as well, so the language-selector-form-field just floats around somewhere.

I changed the current form to use positive values (heavier), now the language-selector-form-field is on top like when you create a page.

nancydru’s picture

Status: Needs review » Needs work

This ends up putting the dates and abstract below the body -- not good.

nancydru’s picture

Status: Needs work » Fixed

I did the best I can.

Committed to both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.