浏览代码

提交project文件夹下的的gantt文件翻译

Lijy 10 月之前
父节点
当前提交
54c5c9c1ba

+ 50 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1782,5 +1782,54 @@
   "shangChuan": "upload",
   "wuXinZiRenYuanLieBiao": "List of unpaid personnel",
   "xuanZeBuFenXiangMu": "Select some projects",
-  "yiShangRenYuanDangYueYiTianXieGongShiQingDaoRuTaMenDeXinZi": "*The above personnel have already filled in their working hours for the current month. Please import their salaries."
+  "yiShangRenYuanDangYueYiTianXieGongShiQingDaoRuTaMenDeXinZi": "*The above personnel have already filled in their working hours for the current month. Please import their salaries.",
+  "10Yue": "October",
+  "11Yue": "November",
+  "12Yue": "December",
+  "1Yue": "January",
+  "2Yue": "February",
+  "3Yue": "March",
+  "4Yue": "April",
+  "5Yue": "May",
+  "6Yue": "June",
+  "7Yue": "July",
+  "8Yue": "August",
+  "9Yue": "September",
+  "anRenYuanChaKan": "View by Personnel",
+  "baYue": "August",
+  "chiXuShiJian": "Duration",
+  "erYue": "February",
+  "fenZhong": "minute",
+  "guanLian": "relation",
+  "jiangBeiShanChu": "place it on clipboard",
+  "jieShu": "(End)",
+  "jinTian": "today",
+  "jiuYue": "September",
+  "kaiShi": "(Start)",
+  "liuYue": "June",
+  "nian": "year",
+  "qiYue": "July",
+  "qingQueRenShiFouCheXiaoXiuGai": "Please confirm if the modification has been revoked!",
+  "renWuMing": "Task Name",
+  "ri": "day",
+  "sanYue": "March",
+  "shiErYue": "December",
+  "shiFouShanChuRiCheng": "Do you want to delete the schedule?",
+  "shiJianFanWei": "time frame",
+  "shiYiYue": "November",
+  "shiYue": "October",
+  "siYue": "April",
+  "thisTWuyue": "this.$t('wuYue')",
+  "wuYue": "May",
+  "xiangXi": "detailed",
+  "xinJianRiCheng": "New Schedule",
+  "xingQiEr": "Tuesday",
+  "xingQiLiu": "Saturday",
+  "xingQiRi": "Sunday",
+  "xingQiSan": "Wednesday",
+  "xingQiSi": "Thursday",
+  "xingQiWu": "Friday",
+  "xingQiYi": "Monday",
+  "yiYue": "January",
+  "zhou": "week"
 }

+ 50 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1782,5 +1782,54 @@
   "yiShangRenYuanDangYueYiTianXieGongShiQingDaoRuTaMenDeXinZi": "*以上人员当月已填写工时,请导入他们的薪资。",
   "quanBuYiTianBaoXiangMu": "全部已填报项目",
   "xuanZeBuFenXiangMu": "选择部分项目",
-  "paiChuBuFenXiangMu": "排除部分项目"
+  "paiChuBuFenXiangMu": "排除部分项目",
+  "yiYue": "一月",
+  "erYue": "二月",
+  "sanYue": "三月",
+  "siYue": "四月",
+  "wuYue": "五月",
+  "liuYue": "六月",
+  "qiYue": "七月",
+  "baYue": "八月",
+  "thisTWuyue": "this.$t('wuYue')",
+  "jiuYue": "九月",
+  "shiYue": "十月",
+  "shiYiYue": "十一月",
+  "shiErYue": "十二月",
+  "1Yue": "1月",
+  "2Yue": "2月",
+  "3Yue": "3月",
+  "4Yue": "4月",
+  "5Yue": "5月",
+  "6Yue": "6月",
+  "7Yue": "7月",
+  "8Yue": "8月",
+  "9Yue": "9月",
+  "10Yue": "10月",
+  "11Yue": "11月",
+  "12Yue": "12月",
+  "xingQiRi": "星期日",
+  "xingQiYi": "星期一",
+  "xingQiEr": "星期二",
+  "xingQiSan": "星期三",
+  "xingQiSi": "星期四",
+  "xingQiWu": "星期五",
+  "xingQiLiu": "星期六",
+  "ri": "日",
+  "jinTian": "今天",
+  "zhou": "周",
+  "xinJianRiCheng": "新建日程",
+  "xiangXi": "详细",
+  "qingQueRenShiFouCheXiaoXiuGai": "请确认是否撤销修改!",
+  "shiFouShanChuRiCheng": "是否删除日程?",
+  "shiJianFanWei": "时间范围",
+  "renWuMing": "任务名",
+  "chiXuShiJian": "持续时间",
+  "guanLian": "关联",
+  "jiangBeiShanChu": "将被删除",
+  "kaiShi": "(开始)",
+  "jieShu": "(结束)",
+  "fenZhong": "分钟",
+  "nian": "年",
+  "anRenYuanChaKan": "按人员查看"
 }

+ 36 - 36
fhKeeper/formulahousekeeper/timesheet/src/views/project/gantt.vue

@@ -36,52 +36,52 @@ export default {
     gantt.clearAll()
     gantt.locale={
     date: {
-        month_full: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
-        month_short: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
-        day_full: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
-        day_short: ["日", "一", "二", "三", "四", "五", "六"]
+        month_full: [this.$t('yiYue'), this.$t('erYue'), this.$t('sanYue'), this.$t('siYue'), this.$t('thisTWuyue'), this.$t('liuYue'), this.$t('qiYue'), this.$t('baYue'), this.$t('jiuYue'), this.$t('shiYue'), this.$t('shiYiYue'), this.$t('shiErYue')],
+        month_short: [this.$t('1Yue'), this.$t('2Yue'), this.$t('3Yue'), this.$t('4Yue'), this.$t('5Yue'), this.$t('6Yue'), this.$t('7Yue'), this.$t('8Yue'), this.$t('9Yue'), this.$t('10Yue'), this.$t('11Yue'), this.$t('12Yue')],
+        day_full: [this.$t('xingQiRi'), this.$t('xingQiYi'), this.$t('xingQiEr'), this.$t('xingQiSan'), this.$t('xingQiSi'), this.$t('xingQiWu'), this.$t('xingQiLiu')],
+        day_short: [this.$t('ri'), "一", "二", "三", "四", "五", "六"]
     },
     labels: {
-        dhx_cal_today_button: "今天",
-        day_tab: "日",
-        week_tab: "周",
-        month_tab: "月",
-        new_event: "新建日程",
-        icon_save: "保存",
-        icon_cancel: "关闭",
-        icon_details: "详细",
-        icon_edit: "编辑",
-        icon_delete: "删除",
-        confirm_closing: "请确认是否撤销修改!", //Your changes will be lost, are your sure?
-        confirm_deleting: "是否删除日程?",
-        section_description: "描述",
-        section_time: "时间范围",
-        section_type: "类型",
+        dhx_cal_today_button: this.$t('jinTian'),
+        day_tab: this.$t('weekDay.day'),
+        week_tab: this.$t('zhou'),
+        month_tab: this.$t('weekDay.month'),
+        new_event: this.$t('xinJianRiCheng'),
+        icon_save: this.$t('save'),
+        icon_cancel: this.$t('Shutdown'),
+        icon_details: this.$t('xiangXi'),
+        icon_edit: this.$t('bian-ji'),
+        icon_delete: this.$t('btn.delete'),
+        confirm_closing: this.$t('qingQueRenShiFouCheXiaoXiuGai'), //Your changes will be lost, are your sure?
+        confirm_deleting: this.$t('shiFouShanChuRiCheng'),
+        section_description: this.$t('other.describe'),
+        section_time: this.$t('shiJianFanWei'),
+        section_type: this.$t('types'),
 
         /* grid columns */
 
-        column_text: "任务名",
-        column_start_date: "开始时间",
-        column_duration: "持续时间",
+        column_text: this.$t('renWuMing'),
+        column_start_date: this.$t('starttimes'),
+        column_duration: this.$t('chiXuShiJian'),
         column_add: "",
 
         /* link confirmation */
 
-        link: "关联",
-        confirm_link_deleting: "将被删除",
-        link_start: " (开始)",
-        link_end: " (结束)",
+        link: this.$t('guanLian'),
+        confirm_link_deleting: this.$t('jiangBeiShanChu'),
+        link_start: this.$t('kaiShi'),
+        link_end: this.$t('jieShu'),
 
-        type_task: "任务",
-        type_project: "项目",
-        type_milestone: "里程碑",
+        type_task: this.$t('other.task'),
+        type_project: this.$t('other.project'),
+        type_milestone: this.$t('other.milestone'),
 
-        minutes: "分钟",
-        hours: "小时",
-        days: "天",
-        weeks: "周",
-        months: "月",
-        years: "年"
+        minutes: this.$t('fenZhong'),
+        hours: this.$t('time.hour'),
+        days: this.$t('time.day'),
+        weeks: this.$t('zhou'),
+        months: this.$t('weekDay.month'),
+        years: this.$t('nian')
     }
 };
     // gantt.config.autosize = true;
@@ -90,7 +90,7 @@ export default {
       gantt.config.drag_move = false;
     gantt.config.xml_date = "%Y-%m-%d";
     gantt.config.columns=[
-        {name:"text",label:(this.stafforpro == "按人员查看" ? "姓名" : "项目名称"), align: "left", tree:true},
+        {name:"text",label:(this.stafforpro == this.$t('anRenYuanChaKan') ? this.$t('lable.name') : this.$t('headerTop.projectName')), align: "left", tree:true},
         // {name:"time",label:"计划工时(h)", align: "center" }
         // {name:"start_date", label:"开始时间", width:'*' , align: "center" },
         // {name:"duration",   label:"工时(天)", width:'*' ,   align: "center" }