Click here to Skip to main content
15,918,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If you have ever downloaded "pleco", that is what i want to program. But, i want to make a multi language version. I want to add Japanese and Korean. I want the same features like the dictionary tab, have it divide the characters to show individual meanings, words that contain that character, and example sentences. I also want to add a synonym and antonym tab.

But I don't know how to go about making the database to store every character and synonyms, sentences, etc.

What I have tried:

I have searched online and came across this type of dictionary:

----------------------------------------------------------------------

class StudentName
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int ID { get; set; }
}

class CollInit
{
Dictionary<int, StudentName> students = new Dictionary<int, StudentName>()
{
{ 111, new StudentName {FirstName="Sachin", LastName="Karnik", ID=211}},
{ 112, new StudentName {FirstName="Dina", LastName="Salimzianova", ID=317}},
{ 113, new StudentName {FirstName="Andy", LastName="Ruth", ID=198}}
};
}

----------------------------------------------------------------------------------

however, this doesn't seem to fit my need for matching language word translations, sentences, etc.

(This is going to be programmed for android)

for example,

挺:very;to straighten
蛮:very
好:good

蛮好看啊!very good!(蛮 and 好 both link to this sentence)
but 挺 蛮 link as synonyms.

and how would i link 挺to the two meanings?
---------------------------------------------------

please show me visual code for how to link them and store them in c#
Posted
Updated 7-May-18 17:30pm

1 solution

There's already quite comprehensive answer at How do I go about making the database for a multi language dictionary?[^] so no need to repost.

As an addition to the previous answer. Have a look at Many-to-many (data model) - Wikipedia[^]. It explains quite well the relationship you need.
 
Share this answer
 
Comments
Maciej Los 8-May-18 4:03am    
5ed!
Wendelius 8-May-18 14:29pm    
Thanks!
BillWoodruff 8-May-18 7:40am    
+5
Wendelius 8-May-18 14:29pm    
Thank you!
Member 13816219 8-May-18 21:45pm    
i didn't get a good answer in that question..... he didnt explain how..... I asked for a visual example....... thanks for reading and completely ignoring my question and answering it however the f*** you feel. even though i asked specifically how..... thanks for the help

not having a visual code example to look at is actually what i asked for and really helps me understand (Sarcasm)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900