From c006b337ad5e4c4a10501eed479839975c89638a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 1 Sep 2015 08:42:23 +0200 Subject: [PATCH] =?utf8?q?Added=20title=20for=20mini=20basket=20Signed-off?= =?utf8?q?-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/java/org/mxchange/localization/bundle_de_DE.properties | 1 + src/java/org/mxchange/localization/bundle_en_US.properties | 1 + .../mxchange/pizzaapplication/tags/basket/MiniBasketTag.java | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 35d75a9f..f13ba238 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -20,3 +20,4 @@ MiniBasketTag.basket_is_empty=Der Warenkorb ist leer. MiniBasketTag.last_item=Zuletzt hinzugefügt: {0} MiniBasketTag.additional_items=Es befinden sich noch {0} weitere Produkte im Warenkorb. MiniBasketTag.to_basket=Zum Warenkorb +MiniBasketTag.header=Warenkorb diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 646cd4e4..1dc42122 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -20,3 +20,4 @@ MiniBasketTag.basket_is_empty=The basket is empty. MiniBasketTag.last_item=Last added item: {0} MiniBasketTag.additional_items=There are {0} items in the basket. MiniBasketTag.to_basket=To basket +MiniBasketTag.header=Basket diff --git a/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java b/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java index f487690e..9cdd3cd2 100644 --- a/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java +++ b/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java @@ -124,6 +124,9 @@ public class MiniBasketTag extends BodyTagSupport implements BasketTag { // Output all out.append("
\n"); //NOI18N + out.append("
\n"); //NOI18N + out.append(" ").append(this.getBasket().getMessageStringFromKey("MiniBasketTag.header")).append("\n"); //NOI18N + out.append("
\n"); //NOI18N out.append("
\n"); //NOI18N out.append(" ").append(MessageFormat.format(this.getBasket().getMessageStringFromKey("MiniBasketTag.last_item"), product.getTitle())); //NOI18N out.append("
\n"); //NOI18N -- 2.39.5