Updated Branches: refs/heads/master 55efe2724 -> 0c3dfda71
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/0c3dfda7 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0c3dfda7 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0c3dfda7 Branch: refs/heads/master Commit: 0c3dfda713a866359402dfa2b8a9d95e152d92a5 Parents: 7a7a278 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Wed Jul 25 17:26:08 2012 +0300 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Wed Jul 25 17:26:08 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/0c3dfda7/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 63642ed..f6cfd0a 100644 --- a/wicket-core/src/main/java/org/apache/wicket/Localizer.java +++ b/wicket-core/src/main/java/org/apache/wicket/Localizer.java @@ -233,6 +233,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);
