Skip to content

Commit

Permalink
i18n - fix extraction of variables in strings (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
domcleal authored and mbacovsky committed Jun 21, 2016
1 parent 2dc0be9 commit 3a0e078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hammer_cli/defaults_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def added_default_message(key, value)
end

def provider_prob_message(namespace)
print_message(_("Provider #{namespace} was not found. See `hammer defaults providers` for available providers."))
print_message(_("Provider %{name} was not found. See `hammer defaults providers` for available providers.") % {:name => namespace})
end

def defaults_not_supported_by_provider
Expand Down
2 changes: 1 addition & 1 deletion lib/hammer_cli/output/adapter/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def print_collection(all_fields, collection)

if collection.meta.pagination_set? && collection.count < collection.meta.subtotal
pages = (collection.meta.subtotal.to_f/collection.meta.per_page).ceil
puts _("Page #{collection.meta.page} of #{pages} (use --page and --per-page for navigation)")
puts _("Page %{page} of %{total} (use --page and --per-page for navigation)") % {:page => collection.meta.page, :total => pages}
end
end

Expand Down

0 comments on commit 3a0e078

Please sign in to comment.