Skip to content

Commit 0ebbfaa

Browse files
GabryBarbeJehan
authored andcommitted
dialogs: indicate when GIMP is up to date in About dialog
To make more clear to users that GIMP is up to date, the About dialog now shows "Up to date" along with the timestamp of the last update check. If there's a new update available, it will show only the timestamp of the last update check.
1 parent 2a00ccf commit 0ebbfaa

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

app/dialogs/about-dialog.c

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,20 @@ about_dialog_add_update (GimpAboutDialog *dialog,
510510
datetime = g_date_time_new_from_unix_local (config->check_update_timestamp);
511511
date = g_date_time_format (datetime, "%x");
512512
time = g_date_time_format (datetime, "%X");
513-
/* Translators: first string is the date in the locale's date
514-
* representation (e.g., 12/31/99), second is the time in the
515-
* locale's time representation (e.g., 23:13:48).
516-
*/
517-
subtext = g_strdup_printf (_("Last checked on %s at %s"), date, time);
513+
514+
if (config->last_known_release != NULL)
515+
/* Translators: first string is the date in the locale's date
516+
* representation (e.g., 12/31/99), second is the time in the
517+
* locale's time representation (e.g., 23:13:48).
518+
*/
519+
subtext = g_strdup_printf (_("Last checked on %s at %s"), date, time);
520+
else
521+
/* Translators: first string is the date in the locale's date
522+
* representation (e.g., 12/31/99), second is the time in the
523+
* locale's time representation (e.g., 23:13:48).
524+
*/
525+
subtext = g_strdup_printf (_("Up to date as of %s at %s"), date, time);
526+
518527
g_date_time_unref (datetime);
519528
g_free (date);
520529
g_free (time);

0 commit comments

Comments
 (0)