Skip to content
Extraits de code Groupes Projets
Valider 72411774 rédigé par zhitomirskiyi's avatar zhitomirskiyi
Parcourir les fichiers

translating the warning about removing the person from the last aspect

parent a06ba910
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(this).closest('li').fadeOut(200); $(this).closest('li').fadeOut(200);
}); });
$('.delete').bind('ajax:failure', function() { $('.delete').bind('ajax:failure', function() {
alert("#{h(t('.cannot_remove', :name => person.name))}"); alert("#{t('status_message.destroy.failure')}");
}); });
}); });
......
...@@ -348,6 +348,8 @@ en: ...@@ -348,6 +348,8 @@ en:
permalink: "permalink" permalink: "permalink"
helper: helper:
no_message_to_display: "No message to display." no_message_to_display: "No message to display."
destroy:
failure: "Failed to delete post"
people: people:
person: person:
pending_request: "pending request" pending_request: "pending request"
......
...@@ -21,3 +21,7 @@ en: ...@@ -21,3 +21,7 @@ en:
watch: "Watch this video on {{provider}}" watch: "Watch this video on {{provider}}"
unknown: "Unknown video type" unknown: "Unknown video type"
search_for: "Search for {{name}}" 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() { ...@@ -46,10 +46,11 @@ $(document).ready(function() {
}); });
$('.added').live('ajax:failure', function(data, html, xhr) { $('.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); $(this).fadeTo(200,1);
}); });
$('.add').live('ajax:loading', function() { $('.add').live('ajax:loading', function() {
$(this).fadeTo(200,0.4); $(this).fadeTo(200,0.4);
}); });
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter