changed layout of translate feature, fixing bug

where only one language specified result in a JSON error
fixed translation error

when only one language was specified it failed on certain languages, if
only one language is specified it is to designate the originating
language.