code: function(key, context) {
          var dictionary = OpenLayers.Lang[OpenLayers.Lang.getCode()];
          var message = dictionary && dictionary[key];
          if(!message) {
              // Message not found, fall back to message key
              message = key;
          }
          if(context) {
              message = OpenLayers.String.format(message, context);
          }
          return message;
      }
docs: APIMethod: translate
  Looks up a key from a dictionary based on the current language string.
  The value of <getCode> will be used to determine the appropriate
  dictionary.  Dictionaries are stored in <OpenLayers.Lang>.
  
  Parameters:
  key - {String} The key for an i18n string value in the dictionary.
  context - {Object} Optional context to be used with
  <OpenLayers.String.format>.
  
  Returns:
  {String} A internationalized string.