So... you want to take each word by itself and translate it? Language doesn't work that way... just look at the junk Google Translate and similar services produce. (Though nowadays Google Translate seems to have gotten a bit better than I remember because it relies on actual human translations or some fancy magic tricks

)
With translations the context is very important, as different words can mean different things depending on what you're talking about... synonyms and homonyms and all that stuff. Also, idioms and whatnot. Okay I'm partly just trying to use fancy words here, but it's still true.
I'm just saying that because it sounds like that is your plan - if it's not then just ignore this post.

Actually, rereading your post, you said it's just for web calculator tools or something? But even there the translator could easily pick an unfitting translation if they don't know the context. Just sayin'. :3
The tool or script itself is probably easily created, just reading a list of word-pairs and replace one with the other whereever it occurs in the file... just make sure you only replace actual words, you don't want to turn 'word' into 'woderd' for example just by replacing 'or' with 'oder' (would be german translation in this case I guess

)