diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-08-25 18:30:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-08-25 18:30:57 +0900 |
commit | 8f2c2712a375f7a8713cfc999f003e7a7464db6e (patch) | |
tree | d35c0bf00e720c69fbfc838c04e3eb63f2790fe7 /kcontrol | |
parent | 9a50f724141434ba1fab1c22681a08a63b659398 (diff) | |
download | tdebase-8f2c2712a375f7a8713cfc999f003e7a7464db6e.tar.gz tdebase-8f2c2712a375f7a8713cfc999f003e7a7464db6e.zip |
Added translation capabilities for <default> display profile. This resolves issue #167.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/displayconfig/displayconfig.cpp | 12 |
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); |