Skip to content
This repository was archived by the owner on Jul 5, 2019. It is now read-only.
This repository was archived by the owner on Jul 5, 2019. It is now read-only.

Add translation suggestion based on users known languages #203

@m-iancu

Description

@m-iancu

The MathHub User module allows users to declare the languages they know. This should be used
to suggest them to translate documents that are missing in multilingual libraries (i.e. smglom).
I.E. user browsing node in language en, his known languages include (en, de) and de version
for this node is missing, then suggest to the user to translate the node to german.
For now that can simply forward to /mh/add-document but we need to improve that later.
See also #84 .

Should probably be added as part of mathhub_user module by implementing hook_node_view and adding some html/js if the conditions described above hold.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions