I18nUtil.java 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package com.hssx.cloudmodel.util;
  2. /**
  3. * Author: 吴涛涛 cuiyi@itany.com
  4. * Date : 2019 - 09 - 05 16:56
  5. * Description:<描述>
  6. * Version: 1.0
  7. */
  8. public class I18nUtil {
  9. //由于前端可以转换,所以直接交给前端配置转换就可以了,此util暂时作废
  10. // public static String getEnus(String zhcn, Integer language) {
  11. // if (0 == language) {
  12. // if ("用户不存在或者未登录".equals(zhcn)) {
  13. // return "User does not exist or is not logged in";
  14. // } else if ("数据不可为空".equals(zhcn)) {
  15. // return "Data cannot be empty";
  16. // } else if ("公司已存在,请勿重复添加".equals(zhcn)) {
  17. // return "The company already exists, please do not add it repeatedly";
  18. // } else if ("当前公司所关联的生产方公司中已被用用到项目,不可执行修改操作。".equals(zhcn)) {
  19. // return "The current production company associated with the company has been used in the project, and the modification operation cannot be performed.";
  20. // } else if ("当前公司所关联的资产方公司已被用用到项目,不可执行修改操作。".equals(zhcn)) {
  21. // return "The current asset company associated with the company has been used in the project and no modification operations can be performed.";
  22. // } else if ("该公司已被应用到用户中,暂不提供删除操作".equals(zhcn)) {
  23. // return "The company has been applied to users, and no deletion is provided at this time.";
  24. // } else if ("当前设备编号已存在,请重新输入其他模具编号".equals(zhcn)) {
  25. // return "The current device number already exists. Please re-enter other mold numbers";
  26. // } else if ("该设备没有所属公司,请添加所属公司后再启用".equals(zhcn)) {
  27. // return "This device does not have a company, please add your company and then enable it.";
  28. // } else if ("对不起,您不是超级管理员,不具备启用设备的权限".equals(zhcn)) {
  29. // return "Sorry, you are not a super administrator and do not have permission to enable the device.";
  30. // } else if ("对不起,您不含有查看该列表的权利".equals(zhcn)) {
  31. // return "Sorry, you do not have the right to view this list.";
  32. // } else if ("云模盒编号已被占用,请修改后重新上传".equals(zhcn)) {
  33. // return "The cloud model box number is already occupied. Please re-upload after modification.";
  34. // } else if ("只有生产方和资产方审批人才能审核".equals(zhcn)) {
  35. // return "Only producer and asset approvers can review";
  36. // } else if ("暂无文件".equals(zhcn)) {
  37. // return "No file";
  38. // } else if ("您没有该权限!".equals(zhcn)) {
  39. // return "Data cannot be empty";
  40. // } else if ("数据不可为空".equals(zhcn)) {
  41. // return "Data cannot be empty";
  42. // } else if ("数据不可为空".equals(zhcn)) {
  43. // return "Data cannot be empty";
  44. // } else if ("数据不可为空".equals(zhcn)) {
  45. // return "Data cannot be empty";
  46. // } else if ("数据不可为空".equals(zhcn)) {
  47. // return "Data cannot be empty";
  48. // } else if ("数据不可为空".equals(zhcn)) {
  49. // return "Data cannot be empty";
  50. // } else if ("数据不可为空".equals(zhcn)) {
  51. // return "Data cannot be empty";
  52. // } else if ("数据不可为空".equals(zhcn)) {
  53. // return "Data cannot be empty";
  54. // } else if ("数据不可为空".equals(zhcn)) {
  55. // return "Data cannot be empty";
  56. // } else if ("数据不可为空".equals(zhcn)) {
  57. // return "Data cannot be empty";
  58. // } else if ("数据不可为空".equals(zhcn)) {
  59. // return "Data cannot be empty";
  60. // } else if ("数据不可为空".equals(zhcn)) {
  61. // return "Data cannot be empty";
  62. // } else if ("数据不可为空".equals(zhcn)) {
  63. // return "Data cannot be empty";
  64. // } else if ("数据不可为空".equals(zhcn)) {
  65. // return "Data cannot be empty";
  66. // } else if ("数据不可为空".equals(zhcn)) {
  67. // return "Data cannot be empty";
  68. // }
  69. //
  70. // }else{
  71. // return zhcn;
  72. // }
  73. // return null;
  74. // }
  75. }