mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Use en and em dashes where appropriate (#7402)
- En dash is used to separate ranges; e.g. 2024–2025 - Em dash is used to separate expressions; e.g. 100.5 GB — remaining time unknown
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
<key>NSAppleScriptEnabled</key>
|
<key>NSAppleScriptEnabled</key>
|
||||||
<string>YES</string>
|
<string>YES</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Copyright © 2005-2025 The Transmission Project</string>
|
<string>Copyright © 2005–2025 The Transmission Project</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ typedef NS_ENUM(NSUInteger, TabTag) {
|
|||||||
NSWindow* window = self.window;
|
NSWindow* window = self.window;
|
||||||
|
|
||||||
window.title = [NSString
|
window.title = [NSString
|
||||||
stringWithFormat:@"%@ - %@", self.fViewController.title, NSLocalizedString(@"Torrent Inspector", "Inspector -> title")];
|
stringWithFormat:@"%@ — %@", self.fViewController.title, NSLocalizedString(@"Torrent Inspector", "Inspector -> title")];
|
||||||
|
|
||||||
NSView* view = self.fViewController.view;
|
NSView* view = self.fViewController.view;
|
||||||
|
|
||||||
|
|||||||
@@ -1038,7 +1038,7 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
|
|||||||
[NSString percentString:self.fStat->metadataPercentComplete longDecimals:YES]] :
|
[NSString percentString:self.fStat->metadataPercentComplete longDecimals:YES]] :
|
||||||
NSLocalizedString(@"torrent metadata needed", "Torrent -> progress string");
|
NSLocalizedString(@"torrent metadata needed", "Torrent -> progress string");
|
||||||
|
|
||||||
return [NSString stringWithFormat:@"%@ - %@", NSLocalizedString(@"Magnetized transfer", "Torrent -> progress string"), progressString];
|
return [NSString stringWithFormat:@"%@ — %@", NSLocalizedString(@"Magnetized transfer", "Torrent -> progress string"), progressString];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString* string;
|
NSString* string;
|
||||||
@@ -1090,7 +1090,7 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
|
|||||||
//add time when downloading or seed limit set
|
//add time when downloading or seed limit set
|
||||||
if (self.shouldShowEta)
|
if (self.shouldShowEta)
|
||||||
{
|
{
|
||||||
string = [string stringByAppendingFormat:@" - %@", self.etaString];
|
string = [string stringByAppendingFormat:@" — %@", self.etaString];
|
||||||
}
|
}
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
@@ -1216,7 +1216,7 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
|
|||||||
{
|
{
|
||||||
if (self.fStat->activity == TR_STATUS_DOWNLOAD)
|
if (self.fStat->activity == TR_STATUS_DOWNLOAD)
|
||||||
{
|
{
|
||||||
string = [string stringByAppendingFormat:@" - %@: %@, %@: %@",
|
string = [string stringByAppendingFormat:@" — %@: %@, %@: %@",
|
||||||
NSLocalizedString(@"DL", "Torrent -> status string"),
|
NSLocalizedString(@"DL", "Torrent -> status string"),
|
||||||
[NSString stringForSpeed:self.downloadRate],
|
[NSString stringForSpeed:self.downloadRate],
|
||||||
NSLocalizedString(@"UL", "Torrent -> status string"),
|
NSLocalizedString(@"UL", "Torrent -> status string"),
|
||||||
@@ -1224,7 +1224,7 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string = [string stringByAppendingFormat:@" - %@: %@",
|
string = [string stringByAppendingFormat:@" — %@: %@",
|
||||||
NSLocalizedString(@"UL", "Torrent -> status string"),
|
NSLocalizedString(@"UL", "Torrent -> status string"),
|
||||||
[NSString stringForSpeed:self.uploadRate]];
|
[NSString stringForSpeed:self.uploadRate]];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user