<%= t('api.key') %> <%= @user.authentication_token %>
+<%= t('key', :scope => 'spree.api') %> <%= @user.authentication_token %>
<%= form_tag spree.clear_api_key_admin_user_path(@user), :method => :put do %> - <%= button t('api.clear_key') %> + <%= button t('clear_key', :scope => 'spree.api') %> <% end %> <%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %> - <%= button t('api.regenerate_key') %> + <%= button t('regenerate_key', :scope => 'spree.api') %> <% end %> <% else %> -<%= t('api.no_key') %>
+<%= t('no_key', :scope => 'spree.api') %>
<%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %> - <%= button t('api.generate_key') %> + <%= button t('generate_key', :scope => 'spree.api') %> <% end %> <% end %> diff --git a/api/config/locales/en.yml b/api/config/locales/en.yml index 98893840938..036a7118025 100644 --- a/api/config/locales/en.yml +++ b/api/config/locales/en.yml @@ -8,7 +8,14 @@ en: resource_not_found: "The resource you were looking for could not be found." gateway_error: "There was a problem with the payment gateway: %{text}" credit_over_limit: "This payment can only be credited up to %{limit}. Please specify an amount less than or equal to this number." - + access: "API Access" + key: "Key" + clear_key: "Clear key" + regenerate_key: "Regenerate Key" + no_key: "No key" + generate_key: "Generate API key" + key_generated: "Key generated" + key_cleared: "Key cleared" order: could_not_transition: "The order could not be transitioned. Please fix the errors and try again." invalid_shipping_method: "Invalid shipping method specified."