From 6caa9368cb639c14691713feb5aa16c9c0976240 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sun, 25 Mar 2012 22:32:55 -0400 Subject: [PATCH] Externalized a bunch of strings for translation --- src/com/gitblit/wicket/pages/GravatarProfilePage.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/gitblit/wicket/pages/GravatarProfilePage.java b/src/com/gitblit/wicket/pages/GravatarProfilePage.java index 1d702a7..e8a96fd 100644 --- a/src/com/gitblit/wicket/pages/GravatarProfilePage.java +++ b/src/com/gitblit/wicket/pages/GravatarProfilePage.java @@ -49,9 +49,12 @@ profile = ActivityUtils.getGravatarProfile(object); } } catch (IOException e) { - error(MessageFormat.format("Failed to find Gravatar profile for {0}", object), e, true); + error(MessageFormat.format(getString("gb.failedToFindGravatarProfile"), object), e, true); } - + + if (profile == null) { + error(MessageFormat.format(getString("gb.failedToFindGravatarProfile"), object), true); + } add(new Label("displayName", profile.displayName)); add(new Label("username", profile.preferredUsername)); add(new Label("location", profile.currentLocation)); -- Gitblit v1.9.1