Add CALAMARES_RETRANSLATE_WIDGET
This commit is contained in:
parent
a70306e54f
commit
8a02522d60
@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -50,7 +50,9 @@ private:
|
|||||||
|
|
||||||
} // namespace CalamaresUtils
|
} // namespace CalamaresUtils
|
||||||
|
|
||||||
#define CALAMARES_RETRANSLATE(a) \
|
#define CALAMARES_RETRANSLATE(body) \
|
||||||
CalamaresUtils::Retranslator::attachRetranslator( this, [=] { a } );
|
CalamaresUtils::Retranslator::attachRetranslator( this, [=] { body } );
|
||||||
|
#define CALAMARES_RETRANSLATE_WIDGET(widget,body) \
|
||||||
|
CalamaresUtils::Retranslator::attachRetranslator( widget, [=] { body } );
|
||||||
|
|
||||||
#endif // CALAMARESUTILS_RETRANSLATOR_H
|
#endif // CALAMARESUTILS_RETRANSLATOR_H
|
||||||
|
Loading…
Reference in New Issue
Block a user