Needs review
Project:
Inline and link Drupal objects (Linodef)
Version:
6.x-1.0-rc5
Component:
Filter
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 15:37 UTC
Updated:
20 Feb 2010 at 16:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
pepe roni commentedI forgot: The node has currently no language, but I want to assign a language later to translate it.
Comment #2
Roi Danton commentedWhen previewing the joker is replaced after the validation and when viewing it is replaced before. So it is NULL indeed when the node has no language what means "empty value". To suppress that (technically correct message) I could replace the joker with the sites default language, see patch.
Maybe a status message like the deprecated messages could be filed, too. But I don't think a message is necessary for this case (and Linodef needs a better message system on a "per role base" anyway).
Comment #3
pepe roni commentedI don't think it is good to use the site's default language. You should simply ignore the translation option in this case and display the named node. Example:
Node 78 (german)
Node 79 (english, translation of node 78)
Node 80: [#78,translation="#"], no language
If the site's language was english, you would link to node 79, if it was german, you would link to node 78, if it was french, you would link to what? So it is better to link to node 78!
If I would like to link to node 79 as default, I would mention this node in the linodef tag instead.
Another approach could be to extent the translation option: [#78,translation="#,de,en,fr"].
You could read that: "link to the translation of node 78 in the following sequence (first match):
Syntactically you can enter a list of languages. In most cases # only makes sense in the first position.
Comment #4
Roi Danton commentedOkay, new patch attached.
Btw, I don't like multiple choices. The options translation is already confusing for most users as it is now and those sequences are likely to stay the same for all tags. So if such a feature might be required it would become an admin setting.