summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-08-25 18:30:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-08-25 18:57:04 +0900
commit9378f4abd030b015909414b8f065375b4f4b1348 (patch)
tree9fe976dbc5647ad797e7fd28bab2ce8c237dc04a
parent8d118cbec2f7299cbcb5c4b51f8a00972cd8c4b0 (diff)
downloadtdebase-9378f4abd030b015909414b8f065375b4f4b1348.tar.gz
tdebase-9378f4abd030b015909414b8f065375b4f4b1348.zip
Added translation capabilities for <default> display profile. This resolves issue #167.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 8f2c2712a375f7a8713cfc999f003e7a7464db6e)
-rw-r--r--kcontrol/displayconfig/displayconfig.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kcontrol/displayconfig/displayconfig.cpp b/kcontrol/displayconfig/displayconfig.cpp
index ca8b867ac..8311b428e 100644
--- a/kcontrol/displayconfig/displayconfig.cpp
+++ b/kcontrol/displayconfig/displayconfig.cpp
@@ -986,7 +986,7 @@ void KDisplayConfig::loadProfileFromDiskHelper(bool forceReload) {
void KDisplayConfig::selectProfile (int slotNumber) {
TQString selectedProfile = base->displayProfileList->currentText();
- if (selectedProfile == "<default>") {
+ if (selectedProfile == i18n("<default>")) {
selectedProfile = "";
}
activeProfileName = selectedProfile;
@@ -1141,7 +1141,7 @@ void KDisplayConfig::updateStartupProfileLabel()
{
TQString friendlyName = startupProfileName;
if (friendlyName == "") {
- friendlyName = "<default>";
+ friendlyName = i18n("<default>");
}
base->startupDisplayProfileList->setCurrentItem(friendlyName, false);
@@ -1150,7 +1150,7 @@ void KDisplayConfig::updateStartupProfileLabel()
void KDisplayConfig::selectDefaultProfile(int slotNumber)
{
TQString selectedProfile = base->startupDisplayProfileList->currentText();
- if (selectedProfile == "<default>") {
+ if (selectedProfile == i18n("<default>")) {
selectedProfile = "";
}
@@ -1695,7 +1695,7 @@ void KDisplayConfig::createHotplugRulesGrid() {
}
KComboBox* combo = new KComboBox(base->profileRulesGridWidget, (TQString("%1").arg(i)).ascii());
connect(combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()));
- combo->insertItem("<default>");
+ combo->insertItem(i18n("<default>"));
for (TQStringList::Iterator it3 = availableProfileNames.begin(); it3 != availableProfileNames.end(); ++it3) {
combo->insertItem(*it3);
}
@@ -1800,8 +1800,8 @@ void KDisplayConfig::profileListChanged() {
// Clear and reload the combo boxes
base->displayProfileList->clear();
base->startupDisplayProfileList->clear();
- base->displayProfileList->insertItem("<default>");
- base->startupDisplayProfileList->insertItem("<default>");
+ base->displayProfileList->insertItem(i18n("<default>"));
+ base->startupDisplayProfileList->insertItem(i18n("<default>"));
for (TQStringList::Iterator it = availableProfileNames.begin(); it != availableProfileNames.end(); ++it) {
base->displayProfileList->insertItem(*it);
base->startupDisplayProfileList->insertItem(*it);