#MM-12130 - Fix incorrect key in en.json and changes some translations from service terms to terms of service (#9488)
* Fix incorrect key in en.json and changes some translations from service terms to terms of service * Improved translated messages
Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
a6fa2b72d1
Коммит
71e3afaf63
@@ -53,12 +53,12 @@ func ServiceTermsFromJson(data io.Reader) *ServiceTerms {
|
||||
}
|
||||
|
||||
func InvalidServiceTermsError(fieldName string, serviceTermsId string) *AppError {
|
||||
id := fmt.Sprintf("model.term.is_valid.%s.app_error", fieldName)
|
||||
id := fmt.Sprintf("model.service_terms.is_valid.%s.app_error", fieldName)
|
||||
details := ""
|
||||
if serviceTermsId != "" {
|
||||
details = "service_terms_id=" + serviceTermsId
|
||||
}
|
||||
return NewAppError("ServiceTerms.IsValid", id, nil, details, http.StatusBadRequest)
|
||||
return NewAppError("ServiceTerms.IsValid", id, map[string]interface{}{"MaxLength": POST_MESSAGE_MAX_RUNES_V2}, details, http.StatusBadRequest)
|
||||
}
|
||||
|
||||
func (t *ServiceTerms) PreSave() {
|
||||
|
||||
Ссылка в новой задаче
Block a user