function translateString(stringToTranslate) {

  if (typeof stringToTranslate == "undefined") {
    conInfo("stringToTranslate = undefined");
    return;
  }

  var arrSearchStrings = stringToTranslate.match(/\${\S+}/g);
  if (arrSearchStrings == null) {
    return stringToTranslate;
  } else {
     jQuery.each(arrSearchStrings, function (index, val) {
      var transKey = val.substring(val.search(/\$\{/) + 2 , val.search(/\}/)),
        tmpString = stringToTranslate.replace(val, translateKey(transKey));
       stringToTranslate = tmpString;
    });
    return stringToTranslate;
  }
}
Translates an ordinary string
@param stringToTranslate
@return {*}