ts<<i18n("The requested theme \"%1\" is already set as the theme for the current Plasma session.",requestedScheme)<<endl;
ts<<i18n("The requested theme \"%1\" is already set as the theme for the current Plasma session.",requestedScheme)<<Qt::endl;
// Not an error condition, no reason to set the theme, but basically this is fine
}elseif(!requestedScheme.isEmpty()){
intnewSchemeIndex{-1};
...
...
@@ -92,28 +92,32 @@ int main(int argc, char **argv)
settings->setColorScheme(requestedScheme);
applyScheme(settings,model);
settings->save();
ts<<i18n("Successfully applied the color scheme %1 to your current Plasma session",requestedScheme)<<endl;
ts<<i18n("Successfully applied the color scheme %1 to your current Plasma session",requestedScheme)<<Qt::endl;
}else{
ts<<i18n("Could not find theme \"%1\". The theme should be one of the following options: %2",requestedScheme,availableThemes.join(QLatin1String{", "}))<<endl;
ts<<i18n("Could not find theme \"%1\". The theme should be one of the following options: %2",
requestedScheme,
availableThemes.join(QLatin1String{", "}))
<<Qt::endl;
}
}else{
// This shouldn't happen, but let's catch it and make angry noises, just in case...
ts<<i18n("You have managed to pass an empty color scheme name, which isn't supported behavior.")<<endl;
ts<<i18n("You have managed to pass an empty color scheme name, which isn't supported behavior.")<<Qt::endl;
exitCode=-1;
}
}else{
ts<<i18n("The file you attempted to set as your scheme, %1, could not be identified as a color scheme.",parser->positionalArguments().first())<<endl;
ts<<i18n("The file you attempted to set as your scheme, %1, could not be identified as a color scheme.",parser->positionalArguments().first())
ts<<i18n("The requested theme \"%1\" is already set as the theme for the current Plasma session.",requestedTheme)<<endl;
ts<<i18n("The requested theme \"%1\" is already set as the theme for the current Plasma session.",requestedTheme)<<Qt::endl;
// Not an error condition really, let's just ignore that
}else{
boolfound{false};
...
...
@@ -70,21 +70,24 @@ int main(int argc, char **argv)
availableThemes<<currentTheme;
}
if(found){
ts<<i18n("The current Plasma session's theme has been set to %1",requestedTheme)<<endl;
ts<<i18n("The current Plasma session's theme has been set to %1",requestedTheme)<<Qt::endl;
}else{
ts<<i18n("Could not find theme \"%1\". The theme should be one of the following options: %2",requestedTheme,availableThemes.join(QLatin1String{", "}))<<endl;
ts<<i18n("Could not find theme \"%1\". The theme should be one of the following options: %2",
@@ -52,7 +52,11 @@ int main(int argc, char **argv)
if(wallpaperFile.contains(QStringLiteral("\'"))){
// If this happens, we might very well assume that there is some kind of funny business going on
// even if technically it could just be a possessive. But, security first, so...
ts<<i18n("There is a stray single quote in the filename of this wallpaper (') - please contact the author of the wallpaper to fix this, or rename the file yourself: %1",wallpaperFile)<<endl;
ts<<i18n(
"There is a stray single quote in the filename of this wallpaper (') - please contact the author of the wallpaper to fix this, or rename the "
"file yourself: %1",
wallpaperFile)
<<Qt::endl;
errorCode=-1;
}else{
if(wallpaperInfo.exists()){
...
...
@@ -87,19 +91,19 @@ int main(int argc, char **argv)