Merge pull request #2165 from Pistos/issue-2136-wrong-aspect-button-text

Issue 2136 wrong aspect button text
This commit is contained in:
Gonzalo 2011-10-12 18:47:27 -07:00
commit 12ddf00e16
4 changed files with 18 additions and 13 deletions

View file

@ -158,7 +158,7 @@ en:
work: "Work"
acquaintances: "Acquaintances"
friends: "Friends"
index:
index:
mentions: "Mentions"
featured_users: "Featured Users"
community_members: "Featured Diaspora* members"
@ -253,7 +253,7 @@ en:
all_contacts: "All Contacts"
only_sharing_with_me: "Only sharing with me"
remove_person_from_aspect: "Remove %{person_name} from \"%{aspect_name}\""
many_people_are_you_sure: "Are you sure you want to start a private conversation with more than %{suggested_limit} contacts? Posting to this aspect may be a better way to contact them."
many_people_are_you_sure: "Are you sure you want to start a private conversation with more than %{suggested_limit} contacts? Posting to this aspect may be a better way to contact them."
featured:
featured_users: "Featured Users"
@ -276,7 +276,7 @@ en:
sending: "Sending..."
abandon_changes: "Abandon changes?"
helper:
new_messages:
new_messages:
zero: "No new messages"
one: "1 new messages"
two: "%{count} new messages"
@ -462,7 +462,7 @@ en:
index:
notifications: "Notifications"
mark_all_as_read: "Mark All as Read"
and_others:
and_others:
zero: "and nobody else"
one: "and one more"
two: "and %{count} others"
@ -833,14 +833,14 @@ en:
index:
revoke_access: "Revoke Access"
no_applications: "You haven't registered any applications yet."
streams:
mentions:
title: "Your Mentions"
title: "Your Mentions"
contacts_title: "People who mentioned you"
tags:
title: "Posts tagged: %{tags}"
contacts_title: "People who dig these tags"
contacts_title: "People who dig these tags"
public:
title: "Public Activity"
contacts_title: "Recent Posters"
@ -898,7 +898,7 @@ en:
connect_to_your_other_social_networks: "Connect to your other social networks"
connect_to_your_other_social_networks_explanation_p1: "Connecting to services will allow you to publish out to these services."
connect_to_your_other_social_networks_explanation_p2: "With Facebook, you also be able to find friends already on Diaspora and invite others."
connect_with_people: "Connect with cool people"
connect_with_people_explanation_pt1: "Connect with people by placing them into one or more of your %{bold}."

View file

@ -37,9 +37,10 @@ en:
disconnected: "The websocket is closed; posts will no longer be streamed live."
aspect_dropdown:
add_to_aspect: "Add contact"
select_aspects: "Select aspects"
all_aspects: "All aspects"
toggle:
zero: "Add contact"
zero: "Select aspects"
one: "In {{count}} aspect"
two: "In {{count}} aspects"
few: "In {{count}} aspects"

View file

@ -11,10 +11,14 @@ var AspectsDropdown = {
if (number == 0) {
button.removeClass(inAspectClass);
replacement = Diaspora.I18n.t("aspect_dropdown.toggle.zero");
if( dropdown.closest('#publisher').length ) {
replacement = Diaspora.I18n.t("aspect_dropdown.select_aspects");
} else {
replacement = Diaspora.I18n.t("aspect_dropdown.add_to_aspect");
}
}else if (selectedAspects == allAspects) {
replacement = Diaspora.I18n.t('aspect_dropdown.all_aspects');
}else if (number == 1) {
}else if (number == 1) {
button.addClass(inAspectClass);
replacement = dropdown.find(".selected").first().text();
}else if (number < 3) {
@ -28,7 +32,7 @@ var AspectsDropdown = {
button.text(replacement + ' ▼');
},
toggleCheckbox: function(check) {
check.toggleClass('selected');
}

View file

@ -18,7 +18,7 @@ var ContactEdit = {
if (number == 0) {
button.removeClass("in_aspects");
replacement = Diaspora.I18n.t("aspect_dropdown.toggle.zero");
}else if (number == 1) {
}else if (number == 1) {
button.addClass("in_aspects");
replacement = dropdown.find(".selected").first().text();
}else if (number < 3) {