diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-15 15:25:48 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-04-15 15:25:48 +0300 |
commit | 5770b6544d3476e27d77a0ab11f162c941aa0cae (patch) | |
tree | c6e60cc32fc4a8fa5fe089a530a6446d3a03756e /app/services/members | |
parent | 0c0be8d68e8f899da4e80dd4bdf44a01dfa54cee (diff) |
Externalize strings detected by rubocop-i18n
- Externalize strings in milestones_helper
- Externalize strings in app/services
- Update PO file
Diffstat (limited to 'app/services/members')
-rw-r--r-- | app/services/members/create_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/members/create_service.rb b/app/services/members/create_service.rb index cf710fef52b..f6bad74736c 100644 --- a/app/services/members/create_service.rb +++ b/app/services/members/create_service.rb @@ -5,11 +5,11 @@ module Members DEFAULT_LIMIT = 100 def execute(source) - return error('No users specified.') if params[:user_ids].blank? + return error(s_('AddMember|No users specified.')) if params[:user_ids].blank? user_ids = params[:user_ids].split(',').uniq - return error("Too many users specified (limit is #{user_limit})") if + return error(s_("AddMember|Too many users specified (limit is %{user_limit})") % { user_limit: user_limit }) if user_limit && user_ids.size > user_limit members = source.add_users( |