in src/main/java/com/googlesource/gerrit/plugins/quota/RateMsgHelper.java [50:61]
public RateMsgHelper(Type limitsConfigType, String templateMsg) {
String rateLimitTypeName =
limitsConfigType == Type.UPLOADPACK ? UPLOADPACK_INLINE_NAME : RESTAPI_INLINE_NAME;
messageFormatMsg = templateMsg == null ? getDefaultTemplateMsg(rateLimitTypeName) : templateMsg;
messageFormatMsg = messageFormatMsg.replace(RATE_LIMIT_TOKEN, RATE_LIMIT_FORMAT_DOUBLE);
messageFormatMsgWithBursts =
templateMsg == null ? getDefaultTemplateMsgWithBursts(rateLimitTypeName) : templateMsg;
messageFormatMsgWithBursts =
messageFormatMsgWithBursts
.replace(RATE_LIMIT_TOKEN, RATE_LIMIT_FORMAT_DOUBLE)
.replace(BURSTS_LIMIT_TOKEN, RATE_LIMIT_FORMAT_INT);
}