This commit is contained in:
guinux
2014-11-19 14:46:44 +01:00
parent 93bd73a3fc
commit bdb1c679d8
53 changed files with 5370 additions and 5341 deletions

View File

@@ -21,8 +21,6 @@
const string GETTEXT_PACKAGE = "pamac";
const string update_icon_name = "pamac-tray-update";
const string update_info = _("%u available updates");
const string one_update_info = _("1 available update");
const string noupdate_icon_name = "pamac-tray-no-update";
const string noupdate_info = _("Your system is up-to-date");
@@ -134,12 +132,8 @@ namespace Pamac {
uint updates_nb = updates.length;
if (updates_nb == 0) {
this.update_icon (noupdate_icon_name, noupdate_info);
} else if (updates_nb == 1) {
this.update_icon (update_icon_name, one_update_info);
if (pamac_run == false)
show_notification (one_update_info);
} else {
string info = update_info.printf (updates_nb);
string info = ngettext ("%u available update", "%u available updates", updates_nb).printf (updates_nb);
this.update_icon (update_icon_name, info);
if (pamac_run == false)
show_notification (info);

View File

@@ -174,11 +174,8 @@ namespace Pamac {
if (updates_nb == 0) {
top_label.set_markup("<b>%s</b>".printf (dgettext (null, "Your system is up-to-date")));
apply_button.set_sensitive (false);
} else if (updates_nb == 1) {
top_label.set_markup("<b>%s</b>".printf (dgettext (null, "1 available update")));
apply_button.set_sensitive (true);
} else {
top_label.set_markup("<b>%s</b>".printf (dgettext (null, "%u available updates").printf (updates_nb)));
top_label.set_markup("<b>%s</b>".printf (dngettext (null, "%u available update", "%u available updates", updates_nb).printf (updates_nb)));
apply_button.set_sensitive (true);
}
if (dsize != 0) {