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

haza’s picture

Status: Active » Needs review
sreynen’s picture

Status: Needs review » Needs work

Hi 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.

misc’s picture

@fabianderijk has been contacted to ask if the application is abandoned.

After ten weeks with a status of needs work: the applicant may be contacted by a reviewer to determine whether the application was indeed abandoned. The action taken by the reviewer should be documented in the project application issue.

http://drupal.org/node/894256

fabianderijk’s picture

Status: Needs work » Closed (won't fix)

This application can be fixed. This won't be added as a module.