+ Updated translations.

This commit is contained in:
Mohamed Hassan
2022-02-21 09:22:07 +02:00
committed by Mohamed Hassan
parent 16a6dd8a40
commit 79673da1f1
4 changed files with 81 additions and 84 deletions
+12 -12
View File
@@ -31,9 +31,9 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Create{{.StructName}}(c *gin.Con
_ = c.ShouldBindJSON(&{{.Abbreviation}})
if err := {{.Abbreviation}}Service.Create{{.StructName}}({{.Abbreviation}}); err != nil {
global.GVA_LOG.Error(global.Translate("general.creationFail"), zap.Error(err))
response.FailWithMessage("general.creationFailErr", c)
response.FailWithMessage(global.Translate("general.creationFailErr"), c)
} else {
response.OkWithMessage("general.createSuccss", c)
response.OkWithMessage(global.Translate("general.createSuccss"), c)
}
}
@@ -51,9 +51,9 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Delete{{.StructName}}(c *gin.Con
_ = c.ShouldBindJSON(&{{.Abbreviation}})
if err := {{.Abbreviation}}Service.Delete{{.StructName}}({{.Abbreviation}}); err != nil {
global.GVA_LOG.Error(global.Translate("general.deleteFail"), zap.Error(err))
response.FailWithMessage("general.deletFailErr", c)
response.FailWithMessage(global.Translate("general.deletFailErr"), c)
} else {
response.OkWithMessage("general.deleteSuccess", c)
response.OkWithMessage(global.Translate("general.deleteSuccess"), c)
}
}
@@ -70,10 +70,10 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Delete{{.StructName}}ByIds(c *gi
var IDS request.IdsReq
_ = c.ShouldBindJSON(&IDS)
if err := {{.Abbreviation}}Service.Delete{{.StructName}}ByIds(IDS); err != nil {
global.GVA_LOG.Error("批量删除失败!", zap.Error(err))
response.FailWithMessage("批量删除失败", c)
global.GVA_LOG.Error(global.Translate("sys_operation_record.batchDeleteFail"), zap.Error(err))
response.FailWithMessage(global.Translate("sys_operation_record.batchDeleteFailErr"), c)
} else {
response.OkWithMessage("批量删除成功", c)
response.OkWithMessage(global.Translate("sys_operation_record.batchDeleteSuccess"), c)
}
}
@@ -91,9 +91,9 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
_ = c.ShouldBindJSON(&{{.Abbreviation}})
if err := {{.Abbreviation}}Service.Update{{.StructName}}({{.Abbreviation}}); err != nil {
global.GVA_LOG.Error(global.Translate("general.updateFail"), zap.Error(err))
response.FailWithMessage("general.updateFailErr", c)
response.FailWithMessage(global.Translate("general.updateFailErr"), c)
} else {
response.OkWithMessage("general.updateSuccess", c)
response.OkWithMessage(global.Translate("general.updateSuccess"), c)
}
}
@@ -111,7 +111,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Conte
_ = c.ShouldBindQuery(&{{.Abbreviation}})
if err, re{{.Abbreviation}} := {{.Abbreviation}}Service.Get{{.StructName}}({{.Abbreviation}}.ID); err != nil {
global.GVA_LOG.Error(global.Translate("general.queryFail"), zap.Error(err))
response.FailWithMessage("general.queryFailErr", c)
response.FailWithMessage(global.Translate("general.queryFailErr"), c)
} else {
response.OkWithData(gin.H{"re{{.Abbreviation}}": re{{.Abbreviation}}}, c)
}
@@ -131,13 +131,13 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}List(c *gin.Co
_ = c.ShouldBindQuery(&pageInfo)
if err, list, total := {{.Abbreviation}}Service.Get{{.StructName}}InfoList(pageInfo); err != nil {
global.GVA_LOG.Error(global.Translate("general.getDataFail"), zap.Error(err))
response.FailWithMessage("general.getDataFailErr", c)
response.FailWithMessage(global.Translate("general.getDataFailErr"), c)
} else {
response.OkWithDetailed(response.PageResult{
List: list,
Total: total,
Page: pageInfo.Page,
PageSize: pageInfo.PageSize,
}, "general.getDataSuccess", c)
}, global.Translate("general.getDataSuccess"), c)
}
}
+67 -68
View File
@@ -125,20 +125,20 @@
"date": "تاريخ",
"delete": "حذف",
"deleteSuccess": "نجاح الحذف!",
"edit": "",
"editSuccess": "",
"enable": "",
"hint": "",
"edit": "تعديل",
"editSuccess": "تم التحرير بنجاح!",
"enable": "مفتوح",
"hint": "ملحوظة",
"langSwitch": "!!تم تغيير اللغة بنجاح",
"no": "",
"operations": "",
"no": "لا",
"operations": "العمليات",
"pleaseSelect": "من فضلك إختار",
"selectAll": "",
"setupSuccess": "",
"undeleted": "",
"updateSuccess": "",
"warning": "",
"yes": ""
"selectAll": "اختر الكل",
"setupSuccess": "تم الإعداد بنجاح!!",
"undeleted": "إلغاء الحذف",
"updateSuccess": "تم التحديث بنجاح!!",
"warning": "تحذير",
"yes": "نعم"
},
"historyComponent": {
"closeAll": "إغلاق الكل",
@@ -195,40 +195,40 @@
},
"menu": {
"addMenu": "إضافة قائمة",
"addMenuParameters": "",
"addParameter": "",
"addRootMenu": "",
"addSubMenu": "",
"clickMe": "",
"closeTabNote": "",
"deleteAllRolesConfirm": "",
"displayName": "",
"editMenu": "",
"enterFilePathNote": "",
"enterMenuDisplayNameNote": "",
"enterMenuNameNote": "",
"filePath": "",
"hide": "",
"icon": "",
"keepAliveNote": "",
"newMenuNote": "",
"parameterType": "",
"parameterValue": "",
"paremeterKey": "",
"parent": "",
"parentId": "",
"rootDirctory": "",
"rootMenu": "",
"routeName": "",
"routeNameNote": "",
"routePath": "",
"routePathNote": "",
"show": "",
"sort": "",
"sortTags": "",
"subMenuNote": "",
"visibility": "",
"visibilityNote": ""
"addMenuParameters": "أضف معلمات القائمة",
"addParameter": "أضف معلمات",
"addRootMenu": "إضافة قائمة الجذر",
"addSubMenu": "إضافة قائمة فرعية",
"clickMe": "انقر فوق لي لضبط",
"closeTabNote": "ما إذا كان سيتم إغلاق علامة التبويب تلقائيًا",
"deleteAllRolesConfirm": "سيؤدي هذا الإجراء إلى حذف جميع الأدوار بشكل دائم ضمن هذه القائمة ، هل تريد المتابعة؟",
"displayName": "اسم العرض",
"editMenu": "عدل القائمة",
"enterFilePathNote": "الرجاء إدخال مسار الملف",
"enterMenuDisplayNameNote": "الرجاء إدخال اسم عرض القائمة",
"enterMenuNameNote": "الرجاء إدخال اسم القائمة",
"filePath": "مسار الملف",
"hide": "يخفي",
"icon": "أيقونة",
"keepAliveNote": "ما إذا كان KeepAlive يخزن الصفحات مؤقتًا أم لا",
"newMenuNote": "قائمة جديدة ، تحتاج إلى تكوين الأذونات في إدارة الأدوار لاستخدامها",
"parameterType": "نوع المعلمة",
"parameterValue": "قيمة المعلمة",
"paremeterKey": "مفتاح المعلمة",
"parent": "عقدة الأم",
"parentId": "معرف العقدة الأم",
"rootDirctory": "دليل الجذر",
"rootMenu": "القائمة الرئيسية",
"routeName": "اسم الطريق",
"routeNameNote": "اسم فريد باللغة الإنجليزية",
"routePath": "مسار الطريق",
"routePathNote": "يوصى بلصق المعلمات في الخلف فقط",
"show": "عرض",
"sort": "ترتيب",
"sortTags": "علامة الفرز",
"subMenuNote": "إذا كانت القائمة تحتوي على قوائم فرعية ، فقم بإنشاء صفحة توجيه ثانوية لعرض جهاز التوجيه أو",
"visibility": "سواء للاختباء",
"visibilityNote": "سواء للاختباء في القائمة"
},
"menus": {
"": "",
@@ -250,28 +250,27 @@
"systemConfig": ""
},
"user": {
"": "",
"addUser": "",
"anotherUserEdit": "",
"avatar": "",
"deleteUserConfrim": "",
"email": "",
"mediaLibrary": "",
"nickName": "",
"nickNameNote": "",
"password": "",
"passwordLenNote": "",
"passwordNote": "",
"phone": "",
"resetPassword": "",
"resetPasswordConfrim": "",
"roleSetNote": "",
"userAddedNote": "",
"userName": "",
"userNameLenNote": "",
"userNameNote": "",
"userRole": "",
"userRoleNote": ""
"addUser": "إضافة مستخدم",
"anotherUserEdit": "يوجد حاليا مستخدم تحرير",
"avatar": "الصورة الرمزية",
"deleteUserConfrim": "هل أنت متأكد أنك تريد حذف هذا المستخدم",
"email": "بريد",
"mediaLibrary": "اختر من مكتبة الوسائط",
"nickName": "اسم الشهرة",
"nickNameNote": "الرجاء إدخال اسم المستخدم المستعار",
"password": "كلمة المرور",
"passwordLenNote": "الحد الأدنى 6 أحرف",
"passwordNote": "الرجاء إدخال كلمة مرور المستخدم",
"phone": "رقم التليفون",
"resetPassword": "إعادة تعيين كلمة المرور",
"resetPasswordConfrim": "ما إذا كان سيتم إعادة تعيين كلمة مرور هذا المستخدم إلى 123456",
"roleSetNote": "تم تعيين الدور بنجاح",
"userAddedNote": "تم إنشاؤه بنجاح",
"userName": "اسم االمستخدم",
"userNameLenNote": "5 أحرف على الأقل",
"userNameNote": "الرجاء إدخال اسم المستخدم",
"userRole": "دور المستخدم",
"userRoleNote": "الرجاء تحديد دور المستخدم"
},
"view": {
"dashboard": {
+2 -3
View File
@@ -227,8 +227,8 @@
"sort": "Sort",
"sortTags": "Sort Tags",
"subMenuNote": "If the menu contains submenus, create a router-view secondary routing page or",
"visibility": "Visibility",
"visibilityNote": "Hide in the list"
"visibility": "Whether to hide",
"visibilityNote": "Whether to hide in the list"
},
"menus": {
"": "",
@@ -250,7 +250,6 @@
"systemConfig": "System Configuration"
},
"user": {
"": "",
"addUser": "Add User",
"anotherUserEdit": "There is currently a user who is editing",
"avatar": "Avatar",
-1
View File
@@ -250,7 +250,6 @@
"systemConfig": "系统配置"
},
"user": {
"": "",
"addUser": "新增用户",
"anotherUserEdit": "当前存在正在编辑的用户",
"avatar": "头像",