Change welcomeMsg from TQString to const char* and use I18N_NOOP.

This resolves FTBFS with TQT_NO_ASCII_CAST and ensure that
the string will be added to the translation template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/4/head
Slávek Banko 5 years ago
parent 7e4b17f262
commit db37455b62
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -58,7 +58,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )

@ -106,7 +106,8 @@ KoolDock::KoolDock(TQWidget* parent, const char* name) :
if (fFirstRun)
{
// Show welcome dialog.
TQString welcomeMsg("<center><B>Welcome</B></center>It appears to be the first time you run KoolDock.<br>"
const char* welcomeMsg =
I18N_NOOP("<center><B>Welcome</B></center>It appears to be the first time you run KoolDock.<br>"
"By default the dock is hidden at the botton of the screen, move your mouse"
" to the bottom edge of the screen and the dock will appear.<br>"
"Right click on the dock for a menu that allows you to configure it<br>"

Loading…
Cancel
Save