View Full Version : Substituting Letters


frenchfry
12-28-2004, 01:33 AM
Uh...

Well, my friend invented a language that's just substituting the letters, and I want to make two translators that when you type something in, it'll replace the letters and show you what it would look like in that language.

I want one translator to translate english into his language, and a translator to translate his language to english. I just want the basic code for it...

Help?

tucker
12-28-2004, 01:46 AM
that would use php. research the substr_replace() function.

salomeyasobko
12-28-2004, 01:49 AM
i don't know how to do it with PHP but i do know how to make a program like that in C/C++.. if you know C or C++ then you can make it yourself :) it's just standard input and output.

frenchfry
12-28-2004, 02:25 AM
You can do it in Javascript. There's a replace function in JavaScript.

My problem is I have no coding expertise, except in HTML, and you can't do what I want in HTML.

wergo
12-28-2004, 05:44 AM
You can pretty much do something like that in any programming language. Javascript, Java, C, C++, PHP, Pascal, VB. Since you want someone to code this enitrely with nothing to start with, I suggest you hit some advance programming sites and forums to ask someone to do this for you. In my opinion, this site is more for quick questions and answers (no offense Lissa). = ).

frenchfry
12-28-2004, 07:59 PM
I tried Google, and I hit some sites with samples, and I still don't get a lick of it. :buckt: But I'll just play with a few test codes and get some quick replacement tests in.

frenchfry
12-29-2004, 12:51 AM
Sorry for doubleposting, but I have a complete WORKING translator! :D

Here's the URL:

http://members.cox.net/drpeppergrl/translator/test.html