From 8a02522d60bfb680c59cb68fa0d050702f9bebd2 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 7 May 2015 15:30:58 +0200 Subject: [PATCH] Add CALAMARES_RETRANSLATE_WIDGET --- src/libcalamares/utils/Retranslator.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libcalamares/utils/Retranslator.h b/src/libcalamares/utils/Retranslator.h index 61c8a5dc5..3f888863a 100644 --- a/src/libcalamares/utils/Retranslator.h +++ b/src/libcalamares/utils/Retranslator.h @@ -1,6 +1,6 @@ /* === This file is part of Calamares - === * - * Copyright 2014, Teo Mrnjavac + * Copyright 2014-2015, Teo Mrnjavac * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +50,9 @@ private: } // namespace CalamaresUtils -#define CALAMARES_RETRANSLATE(a) \ - CalamaresUtils::Retranslator::attachRetranslator( this, [=] { a } ); +#define CALAMARES_RETRANSLATE(body) \ + CalamaresUtils::Retranslator::attachRetranslator( this, [=] { body } ); +#define CALAMARES_RETRANSLATE_WIDGET(widget,body) \ + CalamaresUtils::Retranslator::attachRetranslator( widget, [=] { body } ); #endif // CALAMARESUTILS_RETRANSLATOR_H