Messages.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. define([ "require" ], function(require) {
  2. "use strict";
  3. var Messages = {
  4. defaultErrorMessage: "发生了错误",
  5. addSuccessMessage: " 创建成功",
  6. addErrorMessage: " 不能被创建",
  7. removeTag: "删除与分类的关联",
  8. deleteSuccessMessage: " 删除成功",
  9. deleteErrorMessage: " 不能被移除",
  10. removeSuccessMessage: " 已成功删除",
  11. removeErrorMessage: " 不能被移除",
  12. editSuccessMessage: " 已成功更新",
  13. assignDeletedEntity: "已被删除,分类无法进行关联",
  14. assignTermDeletedEntity: "已被删除,术语无法进行关联",
  15. conformation: {
  16. deleteMessage: "是否确认删除 "
  17. },
  18. search: {
  19. noRecordForPage: "没有找到对应数据于第",
  20. onSamePage: "你已在同一页了!",
  21. notExists: "无效的表达式或者原有的分类/类型被删除了",
  22. favoriteSearch: {
  23. save: "你希望覆盖原有条件吗 ",
  24. notSelectedFavoriteElement: "请选择任意一个收藏的搜索条件",
  25. notSelectedSearchFilter: "请至少选择一个条件"
  26. }
  27. },
  28. tag: {
  29. addAttributeSuccessMessage: "分类属性添加成功",
  30. updateTagDescriptionMessage: "分类描述更新成功"
  31. },
  32. glossary: {
  33. removeTermfromCategory: "移除术语分配",
  34. removeTermfromEntity: "移除术语分配",
  35. removeCategoryfromTerm: "移除类别分配"
  36. },
  37. getAbbreviationMsg: function(abbrev, type) {
  38. var msg = '';
  39. return msg + this[type];
  40. }
  41. };
  42. return Messages;
  43. });