[PATCH] BZ809760 enforce use of additional translation strings
tzumainn at redhat.com
tzumainn at redhat.com
Tue Sep 25 15:52:23 UTC 2012
From: Tzu-Mainn Chen <tzumainn at redhat.com>
---
.../views/deployables/_new_from_image.html.haml | 4 ++--
src/app/views/providers/_edit.html.haml | 6 +++---
src/config/locales/en.yml | 4 +++-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/app/views/deployables/_new_from_image.html.haml b/src/app/views/deployables/_new_from_image.html.haml
index beb4d42..c241aaf 100644
--- a/src/app/views/deployables/_new_from_image.html.haml
+++ b/src/app/views/deployables/_new_from_image.html.haml
@@ -48,9 +48,9 @@
str.push($(this).parent().text());
});
if (str.length > 1){
- return "Multiple";
+ return t('deployables.form.multiple');
}else if (str.length == 0){
- return "None";
+ return t('deployables.form.none');
}else{
return str.join(', ');
}
diff --git a/src/app/views/providers/_edit.html.haml b/src/app/views/providers/_edit.html.haml
index 22ab0db..bf920c8 100644
--- a/src/app/views/providers/_edit.html.haml
+++ b/src/app/views/providers/_edit.html.haml
@@ -5,6 +5,6 @@
%fieldset.options
- if can_edit
.button-group
- = f.submit "Save Changes", :class => "submit button pill", :id => 'save'
- = link_to "Test Connection", edit_provider_path(@provider, :test_provider => true), :class => 'button pill'
- = link_to 'Delete Provider', provider_path(@provider), :method => :delete, :confirm => t('providers.confirm_delete'), :class => "button pill danger", :id => "delete"
+ = f.submit "#{t'providers.form.save_changes'}", :class => "submit button pill", :id => 'save'
+ = link_to "#{t'providers.form.test_connection'}", edit_provider_path(@provider, :test_provider => true), :class => 'button pill'
+ = link_to "#{t'providers.form.delete_provider'}", provider_path(@provider), :method => :delete, :confirm => t('providers.confirm_delete'), :class => "button pill danger", :id => "delete"
diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml
index c730306..ec6bf0f 100644
--- a/src/config/locales/en.yml
+++ b/src/config/locales/en.yml
@@ -1110,7 +1110,7 @@ en:
edit_xml_after_save: Edit XML file after save
deployable_xml_url: URL of Deployable XML
none: None
- multiple: None
+ multiple: Multiple
flash:
error:
attribute_not_exist: "Some attribute(s) are missing in the XML. Please check the file."
@@ -1199,7 +1199,9 @@ en:
select_type_of_provider: Select type of Provider
caution_alt_text: Caution
enter_correct_url_msg: Please enter a correct URL format.
+ save_changes: Save Changes
test_connection: Test Connection
+ delete_provider: Delete Provider
required_field: Required field.
caution_image: Caution
confirm_terminate:
--
1.7.6.5
More information about the aeolus-devel
mailing list