From ae9e157ef4e6a3708489725d4436cc15d273308f Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 07 Jun 2012 17:30:18 -0400
Subject: [PATCH] Try multiple encodings when working with string blobs (issue 97)

---
 src/com/gitblit/wicket/pages/GravatarProfilePage.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/com/gitblit/wicket/pages/GravatarProfilePage.java b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
index 0fa9009..e8a96fd 100644
--- a/src/com/gitblit/wicket/pages/GravatarProfilePage.java
+++ b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
@@ -49,11 +49,11 @@
 				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("Failed to find Gravatar profile for {0}", object), true);
+			error(MessageFormat.format(getString("gb.failedToFindGravatarProfile"), object), true);
 		}
 		add(new Label("displayName", profile.displayName));
 		add(new Label("username", profile.preferredUsername));

--
Gitblit v1.9.1