dictionary

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

dictionary

Post by ddragas »

I've look at viewtopic.php?t=2248 threat and I'm interested in translation, and in book I've bougt I've found script for translating, but without "dictionary.txt" file. Now I've got file in access mdb file whole dictionary (English - Croatian).

What I want to know is how should "dictionary.txt" file be written?

English word, Croatian word

or

English word Croatian word

or

English word = Croatian word

or how?

please help me
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

any suggestions?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

i would sat

Code: Select all

english,croatian
english,crottian
Do you have to use a text file, a MySQL DB would be far better

Mark
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

I know it would, but I have dthat dictionary in access file. It's much easier to transform it in txt file. Is it posible to put it from access to mysql db? Have some script that will do this?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

yeah, its easy.

You really should install something like SQLyog. This is a MySQL GUI that is great for managing your DB's. You can import to MySQL directly from the access database, but this takes a little bit getting used to.

An easier way is to export the data a a CSV file from Access, then use MySQLyog to import the CSV into the MySQL DB.

Give it a try, if you get stuck, gimme a shout.

Mark
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

I will.
Thank you
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Turn it into a text file, then use PHP to put it into a MySQL database :)
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Also, you can browse http://wiktionary.org/ and see how they do it.
Post Reply