Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-08-08 09:38:39 +0300
committerMark Chao <mchao@gitlab.com>2018-08-14 12:30:51 +0300
commitf8ee861cd42b35ff5d35c18dafbe4d1c425af926 (patch)
treea0cda839964f56f22ebad65b7d8bafc72f0b799f /app/models/notification_setting.rb
parentbf88e9afe70e6589dd0c1c089a5a73c8d2b687c6 (diff)
Move N_ calls into separate files
These are dynamic translations, so has to be marked explicitly using `N_`, but they are not used in runtime, so can exist in separate file. https://github.com/grosser/gettext_i18n_rails#unfound-translations-with-rake-gettextfind
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r--app/models/notification_setting.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb
index c5d49bd00ca..1600acfc575 100644
--- a/app/models/notification_setting.rb
+++ b/app/models/notification_setting.rb
@@ -45,6 +45,7 @@ class NotificationSetting < ActiveRecord::Base
:success_pipeline
].freeze
+ # Update unfound_translations.rb when events are changed
def self.email_events(source = nil)
EMAIL_EVENTS
end