Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2011 at 08:48 UTC
Updated:
1 Feb 2012 at 16:19 UTC
This project adds a function to drupal which returns a link to a translated page. When given the source node id of the node, the function creates the link based on the current language, or the language given to the function. When no translation is found, the source can be returned OR FALSE is returned.
I haven't found anything like this.
This is the link to the sandbox: http://drupal.org/sandbox/fabianderijk/1281268
For now it's a D6 module. But if something like this doesn't exist for D7 it will be ported.
Comments
Comment #1
hazaComment #2
sreynen commentedHi fabianderijk,
This is very simple, just a single function that only does something when called from somewhere else. Could this possibly be added to an existing module, maybe translation or i18n?
If not, I suggest thinking about how you expect people to use this function and adding some of those use cases to the module as options. For example, if you expect people to use this with links in content, maybe add an input filter for that. If you expect it to be used in node links, an implementation of hook_nodeapi would be good. Currently, it seems too simple for a full project. There's already a documentation page with similar code.
Comment #3
misc commented@fabianderijk has been contacted to ask if the application is abandoned.
http://drupal.org/node/894256
Comment #4
fabianderijkThis application can be fixed. This won't be added as a module.