traductor spanish to english
Posted: Fri Jul 25, 2008 2:33 pm
Friends.
Im making a traductor spanish to english.
I have a DB with this words (example)
KEYSPN (SPANISH KEYWORD) - KEY_ENG (ENGLISH TRADUCTION)
chicos child
mujer woman
aires air
buenos good
buenos aires buenos aires
i have this query in a search box = "chicos buenos of buenos aires"
To do the traduction of this string i do a query split by " " (blank space) and i get an array like this
[] = "chicos"
[] = "buenos"
[] = "de"
[] = "buenos"
[] = "aires"
The problem is that i need my script recognize "whole words",
For example
if i make a word by word traduction i get = "child good of good air".
but i need:
"child good of buenos aires"
I need that my script recognize "BUENOS AIRES" like a "whole word" not like 2 split strings
Have idea??
Thanks!!!
Im making a traductor spanish to english.
I have a DB with this words (example)
KEYSPN (SPANISH KEYWORD) - KEY_ENG (ENGLISH TRADUCTION)
chicos child
mujer woman
aires air
buenos good
buenos aires buenos aires
i have this query in a search box = "chicos buenos of buenos aires"
To do the traduction of this string i do a query split by " " (blank space) and i get an array like this
[] = "chicos"
[] = "buenos"
[] = "de"
[] = "buenos"
[] = "aires"
The problem is that i need my script recognize "whole words",
For example
if i make a word by word traduction i get = "child good of good air".
but i need:
"child good of buenos aires"
I need that my script recognize "BUENOS AIRES" like a "whole word" not like 2 split strings
Have idea??
Thanks!!!