generic: adjust to KLocalizedString changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-18 00:36:52 +03:00
parent 8b8886fe8e
commit 016fea783c
4 changed files with 26 additions and 24 deletions

View file

@ -247,8 +247,8 @@ void TrashConfigModule::setupGui()
mUseTimeLimit = new QCheckBox( i18n( "Delete files older than:" ), this );
mUseTimeLimit->setWhatsThis( i18nc( "@info:whatsthis",
"<para>Check this box to allow <b>automatic deletion</b> of files that are older than the value specified. "
"Leave this disabled to <b>not</b> automatically delete any items after a certain timespan</para>" ) );
"<p>Check this box to allow <b>automatic deletion</b> of files that are older than the value specified. "
"Leave this disabled to <b>not</b> automatically delete any items after a certain timespan</p>" ) );
daysLayout->addWidget( mUseTimeLimit );
mDays = new KIntSpinBox( this );
@ -256,8 +256,8 @@ void TrashConfigModule::setupGui()
mDays->setSingleStep( 1 );
mDays->setSuffix( i18np(" day", " days", mDays->value()) );
mDays->setWhatsThis( i18nc( "@info:whatsthis",
"<para>Set the number of days that files can remain in the trash. "
"Any files older than this will be automatically deleted.</para>" ) );
"<p>Set the number of days that files can remain in the trash. "
"Any files older than this will be automatically deleted.</p>" ) );
daysLayout->addWidget( mDays );
daysLayout->addStretch();
@ -266,8 +266,8 @@ void TrashConfigModule::setupGui()
mUseSizeLimit = new QCheckBox( i18n( "Limit to maximum size" ), this );
mUseSizeLimit->setWhatsThis( i18nc( "@info:whatsthis",
"<para>Check this box to limit the trash to the maximum amount of disk space that you specify below. "
"Otherwise, it will be unlimited.</para>" ) );
"<p>Check this box to limit the trash to the maximum amount of disk space that you specify below. "
"Otherwise, it will be unlimited.</p>" ) );
sizeLayout->addRow( mUseSizeLimit );
mSizeWidget = new QWidget( this );
@ -284,12 +284,12 @@ void TrashConfigModule::setupGui()
mPercent->setSingleStep( 1 );
mPercent->setSuffix( " %" );
mPercent->setWhatsThis( i18nc( "@info:whatsthis",
"<para>This is the maximum percent of disk space that will be used for the trash.</para>" ) );
"<p>This is the maximum percent of disk space that will be used for the trash.</p>" ) );
maximumSizeLayout->addWidget( mPercent );
mSizeLabel = new QLabel( mSizeWidget );
mSizeLabel->setWhatsThis( i18nc( "@info:whatsthis",
"<para>This is the calculated amount of disk space that will be allowed for the trash, the maximum.</para>" ) );
"<p>This is the calculated amount of disk space that will be allowed for the trash, the maximum.</p>" ) );
maximumSizeLayout->addWidget( mSizeLabel );
sizeWidgetLayout->addRow( i18n( "Maximum size:" ), maximumSizeLayout );
@ -302,8 +302,8 @@ void TrashConfigModule::setupGui()
mLimitReachedAction->addItem( i18n( "Delete Oldest Files From Trash" ) );
mLimitReachedAction->addItem( i18n( "Delete Biggest Files From Trash" ) );
mLimitReachedAction->setWhatsThis( i18nc( "@info:whatsthis",
"<para>When the size limit is reached, it will prefer to delete the type of files that you specify, first. "
"If this is set to warn you, it will do so instead of automatically deleting files.</para>" ) );
"<p>When the size limit is reached, it will prefer to delete the type of files that you specify, first. "
"If this is set to warn you, it will do so instead of automatically deleting files.</p>" ) );
sizeWidgetLayout->addRow( 0, mLimitReachedAction );
layout->addStretch();

View file

@ -52,7 +52,7 @@ ViewContainerTabBar::ViewContainerTabBar(QWidget* parent, TabbedViewContainer* c
setWhatsThis(i18nc("@info:whatsthis",
"<title>Tab Bar</title>"
"<para>The tab bar allows you to switch and move tabs. You can double-click a tab to change its name.</para>"));
"<p>The tab bar allows you to switch and move tabs. You can double-click a tab to change its name.</p>"));
}
void ViewContainerTabBar::dragEnterEvent(QDragEnterEvent* event)

View file

@ -259,15 +259,17 @@ FilterOptions::FilterOptions(const KComponentData &componentData, QWidget *paren
QString FilterOptions::quickHelp() const
{
return i18nc("@info:whatsthis", "<para>In this module you can configure the web shortcuts feature. "
"Web shortcuts allow you to quickly search or lookup words on "
"the Internet. For example, to search for information about the "
"KDE project using the Google engine, you simply type <emphasis>gg:KDE</emphasis> "
"or <emphasis>google:KDE</emphasis>.</para>"
"<para>If you select a default search engine, then you can search for "
"normal words or phrases by simply typing them into the input widget "
"of applications that have built-in support for such a feature, e.g "
"Konqueror.</para>");
return i18nc(
"@info:whatsthis", "<p>In this module you can configure the web shortcuts feature. "
"Web shortcuts allow you to quickly search or lookup words on "
"the Internet. For example, to search for information about the "
"KDE project using the Google engine, you simply type <emphasis>gg:KDE</emphasis> "
"or <emphasis>google:KDE</emphasis>.</p>"
"<p>If you select a default search engine, then you can search for "
"normal words or phrases by simply typing them into the input widget "
"of applications that have built-in support for such a feature, e.g "
"Konqueror.</p>"
);
}
void FilterOptions::setDefaultEngine(int index)

View file

@ -76,13 +76,13 @@ int main(int argc, char* argv[])
QString question = i18nc("@info", "<b>Application \"%1\" is not responding</b>", appname);
question += isLocal
? i18nc("@info", "<para>You tried to close window \"%1\" from application \"%2\" (Process ID: %3) but the application is not responding.</para>",
? i18nc("@info", "<p>You tried to close window \"%1\" from application \"%2\" (Process ID: %3) but the application is not responding.</p>",
caption, appname, pidString)
: i18nc("@info", "<para>You tried to close window \"%1\" from application \"%2\" (Process ID: %3), running on host \"%4\", but the application is not responding.</para>",
: i18nc("@info", "<p>You tried to close window \"%1\" from application \"%2\" (Process ID: %3), running on host \"%4\", but the application is not responding.</p>",
caption, appname, pidString, hostname);
question += i18nc("@info",
"<para>Do you want to terminate this application?</para>"
"<para><warning>Terminating the application will close all of its child windows. Any unsaved data will be lost.</warning></para>"
"<p>Do you want to terminate this application?</p>"
"<p><warning>Terminating the application will close all of its child windows. Any unsaved data will be lost.</warning></p>"
);
KGuiItem continueButton = KGuiItem(i18n("&Terminate Application %1", appname), "edit-bomb");