code: private String getLocalizationMessages(CmsMessages messages) {
  
          JSONObject result = new JSONObject();
          try {
              result.put("search", messages.key(Messages.GUI_CODEMIRROR_LANG_SEARCH_0));
              result.put("hint", messages.key(Messages.GUI_CODEMIRROR_LANG_HINT_0));
              result.put("replace", messages.key(Messages.GUI_CODEMIRROR_LANG_REPLACE_0));
              result.put("replacewith", messages.key(Messages.GUI_CODEMIRROR_LANG_REPLACE_WITH_0));
              result.put("replaceconfirm", messages.key(Messages.GUI_CODEMIRROR_LANG_REPLACE_CONFIRM_0));
              result.put("replaceyes", messages.key(Messages.GUI_CODEMIRROR_LANG_REPLACE_YES_0));
              result.put("replaceno", messages.key(Messages.GUI_CODEMIRROR_LANG_RELACE_NO_0));
              result.put("replacestop", messages.key(Messages.GUI_CODEMIRROR_LANG_REPLACE_STOP_0));
  
              result.put("fontsize", messages.key(Messages.GUI_CODEMIRROR_LANG_FONT_SIZE_0));
          } catch (org.opencms.json.JSONException e) {
              // should never happen
          }
          return result.toString();
      }
docs: Returns the code mirror localization JSON.<p>
  
  @param messages the message bundle to use
  
  @return the localization