Download & Extend

Make it multilingual, to work with i18n

Project:Announcements
Version:6.x-1.2
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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.

#2

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.

#3

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.

#4

Status:active» postponed (maintainer needs more info)

#5

Priority:normal» minor
Status:postponed (maintainer needs more info)» needs review

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.

AttachmentSize
announcements_newweights.patch 1.29 KB

#6

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

#7

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.

#8

Status:needs review» needs work

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

#9

Status:needs work» fixed

I did the best I can.

Committed to both branches.

#10

Status:fixed» closed (fixed)

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