Make it multilingual, to work with i18n

agrigor1 - January 8, 2009 - 02:24
Project:Announcements
Version:6.x-1.2
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed
Description

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.

#1

dddave - January 13, 2009 - 15:20

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

NancyDru - January 18, 2009 - 21:49

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

NancyDru - January 18, 2009 - 21:52

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

NancyDru - January 18, 2009 - 21:52
Status:active» postponed (maintainer needs more info)

#5

Niels Hackius - January 31, 2009 - 19:49
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

NancyDru - February 1, 2009 - 07:36

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

#7

Niels Hackius - February 1, 2009 - 11:04

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

NancyDru - February 1, 2009 - 15:26
Status:needs review» needs work

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

#9

NancyDru - February 1, 2009 - 16:09
Status:needs work» fixed

I did the best I can.

Committed to both branches.

#10

System Message - February 15, 2009 - 16:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.