summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-08-08 14:38:39 +0800
committerMark Chao <mchao@gitlab.com>2018-08-14 17:30:51 +0800
commitf8ee861cd42b35ff5d35c18dafbe4d1c425af926 (patch)
treea0cda839964f56f22ebad65b7d8bafc72f0b799f /locale
parentbf88e9afe70e6589dd0c1c089a5a73c8d2b687c6 (diff)
downloadgitlab-ce-f8ee861cd42b35ff5d35c18dafbe4d1c425af926.tar.gz
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 'locale')
-rw-r--r--locale/unfound_translations.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/locale/unfound_translations.rb b/locale/unfound_translations.rb
new file mode 100644
index 00000000000..0826d64049b
--- /dev/null
+++ b/locale/unfound_translations.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+# Dynamic translations which needs to be marked by `N_` so they can be found by `rake gettext:find`, see:
+# https://github.com/grosser/gettext_i18n_rails#unfound-translations-with-rake-gettextfind
+
+# NotificationSetting.email_events
+N_('NotificationEvent|New note')
+N_('NotificationEvent|New issue')
+N_('NotificationEvent|Reopen issue')
+N_('NotificationEvent|Close issue')
+N_('NotificationEvent|Reassign issue')
+N_('NotificationEvent|New merge request')
+N_('NotificationEvent|Close merge request')
+N_('NotificationEvent|Reassign merge request')
+N_('NotificationEvent|Merge merge request')
+N_('NotificationEvent|Failed pipeline')