translating the warning about removing the person from the last aspect
This commit is contained in:
parent
a06ba9105b
commit
7241177421
4 changed files with 9 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
$(this).closest('li').fadeOut(200);
|
||||
});
|
||||
$('.delete').bind('ajax:failure', function() {
|
||||
alert("#{h(t('.cannot_remove', :name => person.name))}");
|
||||
alert("#{t('status_message.destroy.failure')}");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -348,6 +348,8 @@ en:
|
|||
permalink: "permalink"
|
||||
helper:
|
||||
no_message_to_display: "No message to display."
|
||||
destroy:
|
||||
failure: "Failed to delete post"
|
||||
people:
|
||||
person:
|
||||
pending_request: "pending request"
|
||||
|
|
|
|||
|
|
@ -21,3 +21,7 @@ en:
|
|||
watch: "Watch this video on {{provider}}"
|
||||
unknown: "Unknown video type"
|
||||
search_for: "Search for {{name}}"
|
||||
shared:
|
||||
contact_list:
|
||||
cannot_remove: "Cannot remove person from last aspect. (If you want to disconnect from this person you must remove contact.)"
|
||||
|
||||
|
|
|
|||
|
|
@ -46,10 +46,11 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$('.added').live('ajax:failure', function(data, html, xhr) {
|
||||
Diaspora.widgets.alert.alert("#{t('.cannot_remove')}");
|
||||
alert(Diaspora.widgets.i18n.t('shared.contact_list.cannot_remove'));
|
||||
$(this).fadeTo(200,1);
|
||||
});
|
||||
|
||||
|
||||
$('.add').live('ajax:loading', function() {
|
||||
$(this).fadeTo(200,0.4);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue