This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
修复:项目语言验证信息统一
pull/313/head
yystopf
3 years ago
parent
cad7e24299
commit
64d9c334ce
2 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/project_language.rb
+2
-0
config/locales/zh-CN.yml
+ 1
- 1
app/models/project_language.rb
View File
@@ -13,5 +13,5 @@
class ProjectLanguage < ApplicationRecord
include Projectable
validates :name, uniqueness:
true
validates :name, uniqueness:
{ message: "已存在" }
end
+ 2
- 0
config/locales/zh-CN.yml
View File
@@ -223,6 +223,8 @@ zh-CN:
platform: '直播平台'
live_time: '开播时间'
duration: '直播时长'
project_language:
name: '项目语言'
license:
name: '许可证名称'
content: '许可证内容'
Write
Preview
Loading…
Cancel
Save