func (VS *Server) isTranslation(c *gin.Context, i interface{}, id bson.ObjectId) bool {
	if getLanguage(c) != MainLanguage {
		trans, b := VS.getTranslationByIDInstanceAndLanguage(c, id, "h_functionality", "isTranslation", "trans := VS.getTranslationByIDInstanceAndLanguage")
		if !b {
			trans = Translation{
				ID:         bson.NewObjectId(),
				IDInstance: id,
				Instance:   i,
				Language:   getLanguage(c),
			}
		} else {
			trans.Instance = i
		}
		VS.addElementToDatabaseWithRegisterFromCentral(c, trans, trans.ID, "h_functionality", "isTranslation", "VS.addElementToDatabaseWithRegisterFromCentral")
		// VS.registerAuditAndEvent(c, VS.getAuditFromCentral(c, trans, id, Modified), trans, trans.ID)
		VS.goodFeedback(c, "/dashboard")
		return true
	}
	return false
}
// Stores the translation if the language is not the main one
Stores the translation if the language is not the main one
// Stores the translation if the language is not the main one
func (VS *Server) isTranslation(c *gin.Context, i interface{}, id bson.ObjectId) bool {
	if getLanguage(c) != MainLanguage {
		trans, b := VS.getTranslationByIDInstanceAndLanguage(c, id, "h_functionality", "isTranslation", "trans := VS.getTranslationByIDInstanceAndLanguage")
		if !b {
			trans = Translation{
				ID:         bson.NewObjectId(),
				IDInstance: id,
				Instance:   i,
				Language:   getLanguage(c),
			}
		} else {
			trans.Instance = i
		}
		VS.addElementToDatabaseWithRegisterFromCentral(c, trans, trans.ID, "h_functionality", "isTranslation", "VS.addElementToDatabaseWithRegisterFromCentral")
		VS.goodFeedback(c, "/dashboard")
		return true
	}
	return false
}
func ( VS * Server ) isTranslation ( c * gin . Context , i interface { } , id bson . ObjectId ) bool { if getLanguage ( c ) != MainLanguage { trans , b := VS . getTranslationByIDInstanceAndLanguage ( c , id , " " , " " , " " ) if ! b { trans = Translation { ID : bson . NewObjectId ( ) , IDInstance : id , Instance : i , Language : getLanguage ( c ) , } } else { trans . Instance = i } VS . addElementToDatabaseWithRegisterFromCentral ( c , trans , trans . ID , " " , " " , " " ) VS . goodFeedback ( c , " " ) return true } return false }
Stores the translation if the language is not the main one
Stores the translation if the language is not the main one
// VS.registerAuditAndEvent(c, VS.getAuditFromCentral(c, trans, id, Modified), trans, trans.ID)