Skip to content

Commit

Permalink
feat(ProfileCover): show unshortened unit in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Nov 20, 2023
1 parent 8038e8f commit ef5f1ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Widgets/ProfileCover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,19 @@ protected class Tuba.Widgets.Cover : Gtk.Box {

// translators: the variable is the amount of posts a user has made
var btn = build_profile_stats_button (_("%s Posts").printf (Tuba.Units.shorten (account.statuses_count)));
btn.tooltip_text = _("%s Posts").printf (account.statuses_count.to_string ());
btn.clicked.connect (() => timeline_change ("statuses"));
box.append (btn);

// translators: the variable is the amount of people a user follows
btn = build_profile_stats_button (_("%s Following").printf (Tuba.Units.shorten (account.following_count)));
btn.tooltip_text = _("%s Following").printf (account.following_count.to_string ());
btn.clicked.connect (() => timeline_change ("following"));
box.append (btn);

// translators: the variable is the amount of followers a user has
btn = build_profile_stats_button (_("%s Followers").printf (Tuba.Units.shorten (account.followers_count)));
btn.tooltip_text = _("%s Followers").printf (account.followers_count.to_string ());
btn.clicked.connect (() => timeline_change ("followers"));
box.append (btn);

Expand Down

0 comments on commit ef5f1ea

Please sign in to comment.