OSDN Git Service

t#30220:i18n system error message
[pettanr/pettanr.git] / app / models / license.rb
index ff138c1..9505026 100644 (file)
@@ -51,7 +51,7 @@ class License < ActiveRecord::Base
     attr['credit_pictures'] = attr['credit_pictures'].to_json
     l = License.modify_object name, attr
     if r == false
-      l.errors.add :base, 'system picture can not create'
+      l.errors.add :base, SystemPicture.model_name.human + I18n.t('errors.not_create')
     else
       l.save
     end