Changeset 76212 in vbox
- Timestamp:
- Dec 13, 2018 3:17:23 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r76211 r76212 96 96 setText(Column_IPv6, m_interface.m_strAddress6.isEmpty() || !m_interface.m_fSupportedIPv6 ? QString() : 97 97 QString("%1/%2").arg(m_interface.m_strAddress6).arg(m_interface.m_strPrefixLength6.toInt())); 98 setText(Column_DHCP, UIHostNetworkManager::tr("Enable", "DHCP Server"));98 setText(Column_DHCP, tr("Enable", "DHCP Server")); 99 99 setCheckState(Column_DHCP, m_dhcpserver.m_fEnabled ? Qt::Checked : Qt::Unchecked); 100 100 … … 106 106 107 107 /* Interface information: */ 108 strToolTip += strHeader.arg( UIHostNetworkManager::tr("Adapter"))108 strToolTip += strHeader.arg(tr("Adapter")) 109 109 .arg(m_interface.m_fDHCPEnabled ? 110 UIHostNetworkManager::tr("Automatically configured", "interface") :111 UIHostNetworkManager::tr("Manually configured", "interface"));112 strToolTip += strSubHeader.arg( UIHostNetworkManager::tr("IPv4 Address"))110 tr("Automatically configured", "interface") : 111 tr("Manually configured", "interface")); 112 strToolTip += strSubHeader.arg(tr("IPv4 Address")) 113 113 .arg(m_interface.m_strAddress.isEmpty() ? 114 UIHostNetworkManager::tr ("Not set", "address") :114 tr ("Not set", "address") : 115 115 m_interface.m_strAddress) + 116 strSubHeader.arg( UIHostNetworkManager::tr("IPv4 Network Mask"))116 strSubHeader.arg(tr("IPv4 Network Mask")) 117 117 .arg(m_interface.m_strMask.isEmpty() ? 118 UIHostNetworkManager::tr ("Not set", "mask") :118 tr ("Not set", "mask") : 119 119 m_interface.m_strMask); 120 120 if (m_interface.m_fSupportedIPv6) 121 121 { 122 strToolTip += strSubHeader.arg( UIHostNetworkManager::tr("IPv6 Address"))122 strToolTip += strSubHeader.arg(tr("IPv6 Address")) 123 123 .arg(m_interface.m_strAddress6.isEmpty() ? 124 UIHostNetworkManager::tr("Not set", "address") :124 tr("Not set", "address") : 125 125 m_interface.m_strAddress6) + 126 strSubHeader.arg( UIHostNetworkManager::tr("IPv6 Prefix Length"))126 strSubHeader.arg(tr("IPv6 Prefix Length")) 127 127 .arg(m_interface.m_strPrefixLength6.isEmpty() ? 128 UIHostNetworkManager::tr("Not set", "length") :128 tr("Not set", "length") : 129 129 m_interface.m_strPrefixLength6); 130 130 } 131 131 132 132 /* DHCP server information: */ 133 strToolTip += strHeader.arg( UIHostNetworkManager::tr("DHCP Server"))133 strToolTip += strHeader.arg(tr("DHCP Server")) 134 134 .arg(m_dhcpserver.m_fEnabled ? 135 UIHostNetworkManager::tr("Enabled", "server") :136 UIHostNetworkManager::tr("Disabled", "server"));135 tr("Enabled", "server") : 136 tr("Disabled", "server")); 137 137 if (m_dhcpserver.m_fEnabled) 138 138 { 139 strToolTip += strSubHeader.arg( UIHostNetworkManager::tr("Address"))139 strToolTip += strSubHeader.arg(tr("Address")) 140 140 .arg(m_dhcpserver.m_strAddress.isEmpty() ? 141 UIHostNetworkManager::tr("Not set", "address") :141 tr("Not set", "address") : 142 142 m_dhcpserver.m_strAddress) + 143 strSubHeader.arg( UIHostNetworkManager::tr("Network Mask"))143 strSubHeader.arg(tr("Network Mask")) 144 144 .arg(m_dhcpserver.m_strMask.isEmpty() ? 145 UIHostNetworkManager::tr("Not set", "mask") :145 tr("Not set", "mask") : 146 146 m_dhcpserver.m_strMask) + 147 strSubHeader.arg( UIHostNetworkManager::tr("Lower Bound"))147 strSubHeader.arg(tr("Lower Bound")) 148 148 .arg(m_dhcpserver.m_strLowerAddress.isEmpty() ? 149 UIHostNetworkManager::tr("Not set", "bound") :149 tr("Not set", "bound") : 150 150 m_dhcpserver.m_strLowerAddress) + 151 strSubHeader.arg( UIHostNetworkManager::tr("Upper Bound"))151 strSubHeader.arg(tr("Upper Bound")) 152 152 .arg(m_dhcpserver.m_strUpperAddress.isEmpty() ? 153 UIHostNetworkManager::tr("Not set", "bound") :153 tr("Not set", "bound") : 154 154 m_dhcpserver.m_strUpperAddress); 155 155 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp
r74942 r76212 71 71 /* Open file-save dialog to choose location for current medium: */ 72 72 const QString strFileName = QIFileDialog::getSaveFileName(location(), 73 QApplication::translate("UIMediumManager","Current extension (*.%1)")74 .arg(QFileInfo(location()).suffix()),73 tr("Current extension (*.%1)") 74 .arg(QFileInfo(location()).suffix()), 75 75 treeWidget(), 76 QApplication::translate("UIMediumManager","Choose the location of this medium"),77 0, true, true);76 tr("Choose the location of this medium"), 77 0, true, true); 78 78 /* Negative if nothing changed: */ 79 79 if (strFileName.isNull()) … … 101 101 { 102 102 /* Show move storage progress: */ 103 msgCenter().showModalProgressDialog(comProgress, QApplication::translate("UIMediumManager","Moving medium..."),103 msgCenter().showModalProgressDialog(comProgress, tr("Moving medium..."), 104 104 ":/progress_media_move_90px.png", treeWidget()); 105 105 … … 182 182 QString UIMediumItem::defaultText() const 183 183 { 184 return QApplication::translate("UIMediumManager","%1, %2: %3, %4: %5", "col.1 text, col.2 name: col.2 text, col.3 name: col.3 text")185 186 187 184 return tr("%1, %2: %3, %4: %5", "col.1 text, col.2 name: col.2 text, col.3 name: col.3 text") 185 .arg(text(0)) 186 .arg(parentTree()->headerItem()->text(1)).arg(text(1)) 187 .arg(parentTree()->headerItem()->text(2)).arg(text(2)); 188 188 } 189 189 … … 217 217 case UIMediumDeviceType_HardDisk: 218 218 { 219 m_details.m_aLabels << QApplication::translate("UIMediumManager","Format:");220 m_details.m_aLabels << QApplication::translate("UIMediumManager","Storage details:");221 m_details.m_aLabels << QApplication::translate("UIMediumManager","Attached to:");222 m_details.m_aLabels << QApplication::translate("UIMediumManager","Encrypted with key:");223 m_details.m_aLabels << QApplication::translate("UIMediumManager","UUID:");219 m_details.m_aLabels << tr("Format:"); 220 m_details.m_aLabels << tr("Storage details:"); 221 m_details.m_aLabels << tr("Attached to:"); 222 m_details.m_aLabels << tr("Encrypted with key:"); 223 m_details.m_aLabels << tr("UUID:"); 224 224 225 225 m_details.m_aFields << hardDiskFormat(); 226 226 m_details.m_aFields << details(); 227 227 m_details.m_aFields << (usage().isNull() ? 228 formatFieldText( QApplication::translate("UIMediumManager","<i>Not Attached</i>"), false) :228 formatFieldText(tr("<i>Not Attached</i>"), false) : 229 229 formatFieldText(usage())); 230 230 m_details.m_aFields << (encryptionPasswordID().isNull() ? 231 formatFieldText( QApplication::translate("UIMediumManager","<i>Not Encrypted</i>"), false) :231 formatFieldText(tr("<i>Not Encrypted</i>"), false) : 232 232 formatFieldText(encryptionPasswordID())); 233 233 m_details.m_aFields << id().toString(); … … 238 238 case UIMediumDeviceType_Floppy: 239 239 { 240 m_details.m_aLabels << QApplication::translate("UIMediumManager","Attached to:");241 m_details.m_aLabels << QApplication::translate("UIMediumManager","UUID:");240 m_details.m_aLabels << tr("Attached to:"); 241 m_details.m_aLabels << tr("UUID:"); 242 242 243 243 m_details.m_aFields << (usage().isNull() ? 244 formatFieldText( QApplication::translate("UIMediumManager","<i>Not Attached</i>"), false) :244 formatFieldText(tr("<i>Not Attached</i>"), false) : 245 245 formatFieldText(usage())); 246 246 m_details.m_aFields << id().toString(); … … 290 290 QString strInfo = QString("<nobr>%1%2%3</nobr>") 291 291 .arg(fCompact ? strCompactString : "") 292 .arg(strText.isEmpty() ? QApplication::translate("UIMediumManager","--", "no info") : strText)292 .arg(strText.isEmpty() ? tr("--", "no info") : strText) 293 293 .arg(fCompact ? "</compact>" : ""); 294 294 return strInfo; … … 414 414 } 415 415 /* Show delete storage progress: */ 416 msgCenter().showModalProgressDialog(progress, QApplication::translate("UIMediumManager","Removing medium..."),416 msgCenter().showModalProgressDialog(progress, UIMediumItem::tr("Removing medium..."), 417 417 ":/progress_media_delete_90px.png", treeWidget()); 418 418 if (!progress.isOk() || progress.GetResultCode() != 0) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r76211 r76212 114 114 else 115 115 { 116 strItemName += UIGlobalSettingsLanguage::tr(" (built-in)", "Language");117 strLanguageName += UIGlobalSettingsLanguage::tr(" (built-in)", "Language");116 strItemName += tr(" (built-in)", "Language"); 117 strLanguageName += tr(" (built-in)", "Language"); 118 118 } 119 119 … … 141 141 setText(0, QString("<%1>").arg(strId)); 142 142 setText(1, strId); 143 setText(2, UIGlobalSettingsLanguage::tr("<unavailable>", "Language"));144 setText(3, UIGlobalSettingsLanguage::tr("<unknown>", "Author(s)"));143 setText(2, tr("<unavailable>", "Language")); 144 setText(3, tr("<unknown>", "Author(s)")); 145 145 146 146 /* Invalid language appears in italic: */ … … 155 155 : QITreeWidgetItem(pParent), m_fBuiltIn(false) 156 156 { 157 setText(0, UIGlobalSettingsLanguage::tr("Default", "Language"));157 setText(0, tr("Default", "Language")); 158 158 setText(1, QString::null); 159 159 /* Empty strings of some reasonable length to prevent the info part -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r76208 r76212 125 125 /* Just use the old one: */ 126 126 setText(1, m_strName); 127 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("Network Name"), m_strName);127 strToolTip += strHeader.arg(tr("Network Name"), m_strName); 128 128 } 129 129 /* If name was changed: */ … … 132 132 /* We should explain that: */ 133 133 const QString oldName = m_strName; 134 const QString newName = m_strNewName.isEmpty() ? UIGlobalSettingsNetwork::tr("[empty]") : m_strNewName;135 setText(1, UIGlobalSettingsNetwork::tr("%1 (renamed from %2)").arg(newName, oldName));136 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("Old Network Name"), m_strName);137 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("New Network Name"), m_strNewName);134 const QString newName = m_strNewName.isEmpty() ? tr("[empty]") : m_strNewName; 135 setText(1, tr("%1 (renamed from %2)").arg(newName, oldName)); 136 strToolTip += strHeader.arg(tr("Old Network Name"), m_strName); 137 strToolTip += strHeader.arg(tr("New Network Name"), m_strNewName); 138 138 } 139 139 140 140 /* Other tool-tip information: */ 141 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("Network CIDR"), m_strCIDR);142 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("Supports DHCP"),143 m_fSupportsDHCP ? UIGlobalSettingsNetwork::tr("yes") : UIGlobalSettingsNetwork::tr("no"));144 strToolTip += strHeader.arg( UIGlobalSettingsNetwork::tr("Supports IPv6"),145 m_fSupportsIPv6 ? UIGlobalSettingsNetwork::tr("yes") : UIGlobalSettingsNetwork::tr("no"));141 strToolTip += strHeader.arg(tr("Network CIDR"), m_strCIDR); 142 strToolTip += strHeader.arg(tr("Supports DHCP"), 143 m_fSupportsDHCP ? tr("yes") : tr("no")); 144 strToolTip += strHeader.arg(tr("Supports IPv6"), 145 m_fSupportsIPv6 ? tr("yes") : tr("no")); 146 146 if (m_fSupportsIPv6 && m_fAdvertiseDefaultIPv6Route) 147 strToolTip += strSubHeader.arg( UIGlobalSettingsNetwork::tr("Default IPv6 route"), UIGlobalSettingsNetwork::tr("yes"));147 strToolTip += strSubHeader.arg(tr("Default IPv6 route"), tr("yes")); 148 148 149 149 /* Assign tool-tip finally: */ … … 167 167 { 168 168 /* Emptiness validation: */ 169 message.second << UIGlobalSettingsNetwork::tr("No new name specified for the NAT network previously called <b>%1</b>.").arg(m_strName);169 message.second << tr("No new name specified for the NAT network previously called <b>%1</b>.").arg(m_strName); 170 170 fNameValid = false; 171 171 fPass = false; … … 177 177 /* Emptiness validation: */ 178 178 if (fNameValid) 179 message.second << UIGlobalSettingsNetwork::tr("No CIDR specified for the NAT network <b>%1</b>.").arg(m_strNewName);179 message.second << tr("No CIDR specified for the NAT network <b>%1</b>.").arg(m_strNewName); 180 180 else 181 message.second << UIGlobalSettingsNetwork::tr("No CIDR specified for the NAT network previously called <b>%1</b>.").arg(m_strName);181 message.second << tr("No CIDR specified for the NAT network previously called <b>%1</b>.").arg(m_strName); 182 182 fPass = false; 183 183 } … … 190 190 { 191 191 if (fNameValid) 192 message.second << UIGlobalSettingsNetwork::tr("Invalid CIDR specified (<i>%1</i>) for the NAT network <b>%2</b>.")192 message.second << tr("Invalid CIDR specified (<i>%1</i>) for the NAT network <b>%2</b>.") 193 193 .arg(m_strCIDR, m_strNewName); 194 194 else 195 message.second << UIGlobalSettingsNetwork::tr("Invalid CIDR specified (<i>%1</i>) for the NAT network previously called <b>%2</b>.")195 message.second << tr("Invalid CIDR specified (<i>%1</i>) for the NAT network previously called <b>%2</b>.") 196 196 .arg(m_strCIDR, m_strName); 197 197 fPass = false; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r76208 r76212 168 168 m_fields << m_strName 169 169 << m_strPath 170 << (m_fWritable ? UIMachineSettingsSF::tr("Full") : UIMachineSettingsSF::tr("Read-only"))171 << (m_fAutoMount ? UIMachineSettingsSF::tr("Yes") : "")170 << (m_fWritable ? tr("Full") : tr("Read-only")) 171 << (m_fAutoMount ? tr("Yes") : "") 172 172 << m_strAutoMountPoint; 173 173 … … 189 189 { 190 190 return parentItem() 191 ? UIMachineSettingsSF::tr("%1, %2: %3, %4: %5, %6: %7, %8: %9",191 ? tr("%1, %2: %3, %4: %5, %6: %7, %8: %9", 192 192 "col.1 text, col.2 name: col.2 text, col.3 name: col.3 text, col.4 name: col.4 text, col.5 name: col.5 text") 193 193 .arg(text(0)) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r76208 r76212 294 294 const QString strVendorId = m_strVendorId; 295 295 if (!strVendorId.isEmpty()) 296 strToolTip += UIMachineSettingsUSB::tr("<nobr>Vendor ID: %1</nobr>", "USB filter tooltip").arg(strVendorId);296 strToolTip += tr("<nobr>Vendor ID: %1</nobr>", "USB filter tooltip").arg(strVendorId); 297 297 298 298 const QString strProductId = m_strProductId; 299 299 if (!strProductId.isEmpty()) 300 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Product ID: %2</nobr>", "USB filter tooltip").arg(strProductId);300 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Product ID: %2</nobr>", "USB filter tooltip").arg(strProductId); 301 301 302 302 const QString strRevision = m_strRevision; 303 303 if (!strRevision.isEmpty()) 304 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Revision: %3</nobr>", "USB filter tooltip").arg(strRevision);304 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Revision: %3</nobr>", "USB filter tooltip").arg(strRevision); 305 305 306 306 const QString strProduct = m_strProduct; 307 307 if (!strProduct.isEmpty()) 308 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Product: %4</nobr>", "USB filter tooltip").arg(strProduct);308 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Product: %4</nobr>", "USB filter tooltip").arg(strProduct); 309 309 310 310 const QString strManufacturer = m_strManufacturer; 311 311 if (!strManufacturer.isEmpty()) 312 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Manufacturer: %5</nobr>", "USB filter tooltip").arg(strManufacturer);312 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Manufacturer: %5</nobr>", "USB filter tooltip").arg(strManufacturer); 313 313 314 314 const QString strSerial = m_strSerialNumber; 315 315 if (!strSerial.isEmpty()) 316 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Serial No.: %1</nobr>", "USB filter tooltip").arg(strSerial);316 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Serial No.: %1</nobr>", "USB filter tooltip").arg(strSerial); 317 317 318 318 const QString strPort = m_strPort; 319 319 if (!strPort.isEmpty()) 320 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>Port: %1</nobr>", "USB filter tooltip").arg(strPort);320 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>Port: %1</nobr>", "USB filter tooltip").arg(strPort); 321 321 322 322 /* Add the state field if it's a host USB device: */ 323 323 if (m_fHostUSBDevice) 324 324 { 325 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + UIMachineSettingsUSB::tr("<nobr>State: %1</nobr>", "USB filter tooltip")326 .arg(gpConverter->toString(m_enmHostUSBDeviceState));325 strToolTip += strToolTip.isEmpty() ? "":"<br/>" + tr("<nobr>State: %1</nobr>", "USB filter tooltip") 326 .arg(gpConverter->toString(m_enmHostUSBDeviceState)); 327 327 } 328 328 -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r75209 r76212 279 279 m_fCurrentStateModified = m_comMachine.GetCurrentStateModified(); 280 280 m_strName = m_fCurrentStateModified 281 ? UISnapshotPane::tr("Current State (changed)", "Current State (Modified)")282 : UISnapshotPane::tr("Current State", "Current State (Unmodified)");281 ? tr("Current State (changed)", "Current State (Modified)") 282 : tr("Current State", "Current State (Unmodified)"); 283 283 setText(Column_Name, m_strName); 284 284 m_strDescription = m_fCurrentStateModified 285 ? UISnapshotPane::tr("The current state differs from the state stored in the current snapshot")285 ? tr("The current state differs from the state stored in the current snapshot") 286 286 : QTreeWidgetItem::parent() != 0 287 ? UISnapshotPane::tr("The current state is identical to the state stored in the current snapshot")287 ? tr("The current state is identical to the state stored in the current snapshot") 288 288 : QString(); 289 289 } … … 349 349 else if (then.secsTo(now) > 60 * 60 * 24) 350 350 { 351 strAge = UISnapshotPane::tr("%1 (%2 ago)", "date time (how long ago)")352 .arg(then.toString(Qt::LocalDate), VBoxGlobal::daysToString(then.secsTo(now) / 60 / 60 / 24));351 strAge = tr("%1 (%2 ago)", "date time (how long ago)") 352 .arg(then.toString(Qt::LocalDate), VBoxGlobal::daysToString(then.secsTo(now) / 60 / 60 / 24)); 353 353 enmAgeFormat = SnapshotAgeFormat_InDays; 354 354 } 355 355 else if (then.secsTo(now) > 60 * 60) 356 356 { 357 strAge = UISnapshotPane::tr("%1 (%2 ago)", "date time (how long ago)")358 .arg(then.toString(Qt::LocalDate), VBoxGlobal::hoursToString(then.secsTo(now) / 60 / 60));357 strAge = tr("%1 (%2 ago)", "date time (how long ago)") 358 .arg(then.toString(Qt::LocalDate), VBoxGlobal::hoursToString(then.secsTo(now) / 60 / 60)); 359 359 enmAgeFormat = SnapshotAgeFormat_InHours; 360 360 } 361 361 else if (then.secsTo(now) > 60) 362 362 { 363 strAge = UISnapshotPane::tr("%1 (%2 ago)", "date time (how long ago)")364 .arg(then.toString(Qt::LocalDate), VBoxGlobal::minutesToString(then.secsTo(now) / 60));363 strAge = tr("%1 (%2 ago)", "date time (how long ago)") 364 .arg(then.toString(Qt::LocalDate), VBoxGlobal::minutesToString(then.secsTo(now) / 60)); 365 365 enmAgeFormat = SnapshotAgeFormat_InMinutes; 366 366 } 367 367 else 368 368 { 369 strAge = UISnapshotPane::tr("%1 (%2 ago)", "date time (how long ago)")370 .arg(then.toString(Qt::LocalDate), VBoxGlobal::secondsToString(then.secsTo(now)));369 strAge = tr("%1 (%2 ago)", "date time (how long ago)") 370 .arg(then.toString(Qt::LocalDate), VBoxGlobal::secondsToString(then.secsTo(now))); 371 371 enmAgeFormat = SnapshotAgeFormat_InSeconds; 372 372 } … … 396 396 if (m_fCurrentStateItem) 397 397 { 398 strDateTime = UISnapshotPane::tr("%1 since %2", "Current State (time or date + time)")399 .arg(gpConverter->toString(m_enmMachineState)).arg(strDateTime);398 strDateTime = tr("%1 since %2", "Current State (time or date + time)") 399 .arg(gpConverter->toString(m_enmMachineState)).arg(strDateTime); 400 400 } 401 401 /* For snapshot item: */ … … 405 405 QStringList details; 406 406 if (isCurrentSnapshotItem()) 407 details << UISnapshotPane::tr("current", "snapshot");408 details << (m_fOnline ? UISnapshotPane::tr("online", "snapshot")409 : UISnapshotPane::tr("offline", "snapshot"));407 details << tr("current", "snapshot"); 408 details << (m_fOnline ? tr("online", "snapshot") 409 : tr("offline", "snapshot")); 410 410 strDetails = QString(" (%1)").arg(details.join(", ")); 411 411 412 412 /* Add date/time information: */ 413 413 if (fDateTimeToday) 414 strDateTime = UISnapshotPane::tr("Taken at %1", "Snapshot (time)").arg(strDateTime);414 strDateTime = tr("Taken at %1", "Snapshot (time)").arg(strDateTime); 415 415 else 416 strDateTime = UISnapshotPane::tr("Taken on %1", "Snapshot (date + time)").arg(strDateTime);416 strDateTime = tr("Taken on %1", "Snapshot (date + time)").arg(strDateTime); 417 417 } 418 418
Note:
See TracChangeset
for help on using the changeset viewer.