Messages.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. define([ "require" ], function(require) {
  2. "use strict";
  3. var Messages = {
  4. defaultErrorMessage: "Something went wrong",
  5. addSuccessMessage: " created successfully",
  6. addErrorMessage: " could not be Created",
  7. removeTag: "Remove Classification Assignment",
  8. deleteSuccessMessage: " deleted successfully",
  9. deleteErrorMessage: " could not be deleted",
  10. removeSuccessMessage: " removed successfully",
  11. removeErrorMessage: " could not be removed",
  12. editSuccessMessage: " updated successfully",
  13. assignDeletedEntity: " is deleted, Classification cannot be assigned",
  14. assignTermDeletedEntity: " is deleted, Term cannot be assigned",
  15. conformation: {
  16. deleteMessage: "Are you sure you want to delete "
  17. },
  18. search: {
  19. noRecordForPage: "No record found at ",
  20. onSamePage: "You are on the same page!",
  21. notExists: "Invalid Expression or Classification/Type has been deleted.",
  22. favoriteSearch: {
  23. save: "Do you want to overwrite ",
  24. notSelectedFavoriteElement: "Please select any one favorite search",
  25. notSelectedSearchFilter: "Please select at least one filter"
  26. }
  27. },
  28. tag: {
  29. addAttributeSuccessMessage: "Classification attribute is added successfully",
  30. updateTagDescriptionMessage: "Classification description is updated successfully"
  31. },
  32. glossary: {
  33. removeTermfromCategory: "Remove Term Assignment",
  34. removeTermfromEntity: "Remove Term Assignment",
  35. removeCategoryfromTerm: "Remove Category Assignment"
  36. },
  37. getAbbreviationMsg: function(abbrev, type) {
  38. var msg = abbrev ? "s were" : " was";
  39. return msg + this[type];
  40. }
  41. };
  42. return Messages;
  43. });