To help others and myself learn new human natural languages I want to create a program for translating phrases shared between generally all such languages ("basic phrases").
Although, using this program should require to know the writing system of the language that a user desires to translate to.
With Drupal, such program would likely contain two content types:
The English content type will include one node named English, containing headings and underlying tables of basic phrases:
<h2>English</h2> <h3>Greetings</h3> |[node:tltle]| |------------| | Hello | | Please | <h3>Conditionals</h3> |[node:tltle]| |------------| | If | | Else |
A user could add a node of the Translation content type and this node should have the name of a Non-English language; say, Russian.
The Russian node would automatically look like this:
<h2>Russian</h2> Dear user, please double click a basic phrase to translate it, per how you assume it should be translated: <h3>Greetings</h3> |[node:tltle]| |------------| | Hello | | Please | <h3>Conditionals</h3> |[node:tltle]| |------------| | If | | Else |
After double-clinking a cloned English term for in-place translating, and translating correctly:
Hello → Здравствуйте
Please → пожалуйста
If → Если
Else → еще
I don't know how to automatically give Translation nodes the same content of English node.
I also don't know how to allow the user to actually double click to in-place translate the already-copied English basic phrase in that Translation node (without going to in-place edit mode before).
Unifying nodes content by a view page:
- Creating a pattern node with a list of headings and empty underlying tables contexts created from plain text fields with one or more values
- Manually copying that pattern node to both English node and Russian node and manually filling these nodes with basic terms in each language
- Creating a view page combining both nodes and properly format so that for the end user both nodes will appear as two adjacent groups of headings and underlying tables (two adjacent contexts)
This is a complicated solution forcing users to do identical architectural changes in two or more nodes each time:
Imagine you have to update the same contextual group in two or more language nodes instead doing level-headed changes in two or more columns of the same table rows, in a single node.
As the Views solution is hard to maintain, is there another solution?