improve several text strings

* tdecore/tdehw: replace several obscure strings with something closer
  to reality
* tderandr: remove i18n from a string whic shouldn't be translated
* tdeutils/kdeglobals.kcfg: various config comments improvements

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
other/string-fixes
Alexander Golubev 2 years ago
parent c1de664777
commit 2c5b85e464

@ -709,7 +709,7 @@ int TDECryptographicCardDevice::decryptDataEncryptedWithCertPublicKey(TQValueLis
int ret = -1;
if (!m_watcherObject) {
if (errstr) *errstr = i18n("Card watcher object not available");
if (errstr) *errstr = i18n("Internal error: card watcher object not available");
return -1;
}

@ -227,13 +227,18 @@ TQString TDEGenericDevice::busID() {
TQString TDEGenericDevice::friendlyName() {
if (m_friendlyName.isNull()) {
if (type() == TDEGenericDeviceType::RootSystem) {
m_friendlyName = "Linux System";
#ifdef __linux__
m_friendlyName = i18n("Linux System");
#else // __linux__
// Just in case this somehow can be supported on a non-linux system
m_friendlyName = i18n("Local System");
#endif // __linux__
}
else if (type() == TDEGenericDeviceType::Root) {
TQString friendlyDriverName = systemPath();
friendlyDriverName.truncate(friendlyDriverName.length()-1);
friendlyDriverName.remove(0, friendlyDriverName.findRev("/")+1);
m_friendlyName = friendlyDriverName;
m_friendlyName = i18n("Device directory (%1)").arg(friendlyDriverName);
}
else if (m_modAlias.lower().startsWith("pci")) {
m_friendlyName = TDEGlobal::hardwareDevices()->findPCIDeviceName(m_vendorID, m_modelID, m_subvendorID, m_submodelID);

@ -2389,6 +2389,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
}
else if (usbInterfaceClass == 14) {
// Fingerprint Reader
// NOTE: usb class 14 is actually for "Video" devices but uvc devices (webcams) should have been handled above
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::BiometricSecurity);
}
else if (usbInterfaceClass == 254) {
@ -4200,10 +4201,12 @@ TQString TDEHardwareDevices::getFriendlyDeviceTypeStringFromType(TDEGenericDevic
// Keep this in sync with the TDEGenericDeviceType definition in the header
if (query == TDEGenericDeviceType::Root) {
ret = i18n("Root");
//i18n: this represents a pseudo device type of a device class directory like /sys/devices/* on linux
ret = i18n("Device directory");
}
else if (query == TDEGenericDeviceType::RootSystem) {
ret = i18n("System Root");
//i18n: this represents the whole local system and /sys/devices/ directory
ret = i18n("Root System");
}
else if (query == TDEGenericDeviceType::CPU) {
ret = i18n("CPU");
@ -4278,7 +4281,7 @@ TQString TDEHardwareDevices::getFriendlyDeviceTypeStringFromType(TDEGenericDevic
ret = i18n("Camera");
}
else if (query == TDEGenericDeviceType::TextIO) {
ret = i18n("Text I/O");
ret = i18n("TTY Device");
}
else if (query == TDEGenericDeviceType::Serial) {
ret = i18n("Serial Communications Controller");

@ -1220,7 +1220,7 @@ TQPtrList<SingleScreenData> KRandrSimpleAPI::readCurrentDisplayConfiguration() {
// Create new data object
screendata = new SingleScreenData;
screenInfoArray.append(screendata);
screendata->screenUniqueName = TQString(i18n("%1:%2")).arg(":0").arg(capitalizeString(output_info->name)); // [FIXME] How can I get the name of the Xorg graphics driver currently in use?
screendata->screenUniqueName = TQString::fromLatin1("%1:%2").arg(":0").arg(capitalizeString(output_info->name); // [FIXME] How can I get the name of the Xorg graphics driver currently in use?
screendata->screenFriendlyName = TQString(i18n("%1. %2 output on %3")).arg(i+1).arg(capitalizeString(output_info->name)).arg(":0"); // [FIXME] How can I get the name of the Xorg graphics driver currently in use?
screendata->generic_screen_detected = false;

@ -394,8 +394,8 @@
<entry key="Width 1024" type="String" name="Width 1024" />
<entry key="Recent URLs" type="Path" name="Recent URLs" >
<label>The recent URLs recently visited</label>
<whatsthis>Used for auto completion in file dialogs for example.</whatsthis>
<label>The recent URLs</label>
<whatsthis>Recently visited URLs. Used for auto completion in file dialogs for example.</whatsthis>
</entry>
<entry key="Show Preview" type="Bool" name="Show Preview" >
@ -435,7 +435,8 @@
<default>C</default>
</entry>
<entry key="Language" type="String" >
<label>What language to display text in</label>
<label>Text language</label>
<whatsthis>What language to display text in</whatsthis>
</entry>
<entry key="PositiveSign" type="String" >
<label>Character used for indicating positive numbers</label>
@ -520,8 +521,8 @@
<default>true</default>
</entry>
<entry key="IconText" type="Bool">
<label>Show text on toolbar icons </label>
<whatsthis>Whether text should be shown in addition to icons on toolbar icons</whatsthis>
<label>Show text on toolbar buttons</label>
<whatsthis>Whether text should be shown in addition to icons on toolbar buttons</whatsthis>
<default>false</default>
</entry>
<entry key="TransparentMoving" type="Bool" >
@ -558,7 +559,7 @@
</group>
<group name="KKeyDialog Settings">
<entry name="Dialog Size" type="IntList"><!-- Should this be taken care of globally, for dialogs? -->
<label>The size of the dialog</label>
<label>The size of the shortcut dialog</label>
</entry>
</group>
</kcfg>

Loading…
Cancel
Save