You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/07/25 16:27:46 UTC

git commit: Add information about the locale and style in the MissingResourceException.

Updated Branches:
  refs/heads/wicket-1.5.x bcb535a0a -> c3101d446


Add information about the locale and style in the MissingResourceException.

Should help when the resource is found in BrowserX but not in BrowserY because one of them has different locale.


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/c3101d44
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/c3101d44
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/c3101d44

Branch: refs/heads/wicket-1.5.x
Commit: c3101d4461fce32b003eef75a2e7bba307db7eb8
Parents: bcb535a
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Wed Jul 25 17:26:08 2012 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Wed Jul 25 17:27:34 2012 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/wicket/Localizer.java |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/c3101d44/wicket-core/src/main/java/org/apache/wicket/Localizer.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Localizer.java b/wicket-core/src/main/java/org/apache/wicket/Localizer.java
index a4b4df9..ececa1c 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Localizer.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Localizer.java
@@ -236,6 +236,7 @@ public class Localizer
 				message.append(component.getPageRelativePath());
 				message.append(" [class=").append(component.getClass().getName()).append("]");
 			}
+			message.append(". Locale: ").append(locale).append(", style: ").append(style).append(", variation: ");
 
 			throw new MissingResourceException(message.toString(), (component != null
 				? component.getClass().getName() : ""), key);