Commit 1924e500 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Don't translate `Commit#change_type_title` now

parent 11c957f5
# coding: utf-8
class Commit class Commit
extend ActiveModel::Naming extend ActiveModel::Naming
...@@ -139,7 +138,7 @@ class Commit ...@@ -139,7 +138,7 @@ class Commit
safe_message.split("\n", 2)[1].try(:chomp) safe_message.split("\n", 2)[1].try(:chomp)
end end
def description? def description?
description.present? description.present?
end end
...@@ -292,7 +291,7 @@ class Commit ...@@ -292,7 +291,7 @@ class Commit
end end
def change_type_title(user) def change_type_title(user)
merged_merge_request?(user) ? s_('ChangeType|merge request') : s_('ChangeType|commit') merged_merge_request?(user) ? 'merge request' : 'commit'
end end
# Get the URI type of the given path # Get the URI type of the given path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment