Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.
This commit is contained in:
Adrien Destugues
2014-11-24 09:42:26 +01:00
parent 46d4471af7
commit 2824c5d3a4
13 changed files with 89 additions and 85 deletions
@@ -358,10 +358,11 @@ BootManagerController::_CreateMBRSavedPage()
<< B_TRANSLATE("The old Master Boot Record was successfully " << B_TRANSLATE("The old Master Boot Record was successfully "
"saved to %s.") << "\n"; "saved to %s.") << "\n";
} else { } else {
description << B_TRANSLATE_COMMENT("Old Master Boot Record Saved " description << B_TRANSLATE_COMMENT("Old Master Boot Record backup "
"failure", "Title") << "\n" "failure", "Title") << "\n"
<< B_TRANSLATE("The old Master Boot Record could not be saved " << B_TRANSLATE("The old Master Boot Record could not be saved "
"to %s") << "\n"; "to %s. You can continue the installation but there will be no "
"way to uninstall the boot menu.") << "\n";
} }
description.ReplaceFirst("%s", file); description.ReplaceFirst("%s", file);
+1 -1
View File
@@ -187,7 +187,7 @@ const struct unicode_block_entry kUnicodeBlocks[] = {
{B_TRANSLATE("Aegean numbers"), 0x010100, 0x01013f, false, kNoBlock}, {B_TRANSLATE("Aegean numbers"), 0x010100, 0x01013f, false, kNoBlock},
{B_TRANSLATE("Ancient Greek numbers"), {B_TRANSLATE("Ancient Greek numbers"),
0x010140, 0x01018f, false, kNoBlock}, 0x010140, 0x01018f, false, kNoBlock},
{B_TRANSLATE("Ancient smbols"), 0x010190, 0x0101cf, false, kNoBlock}, {B_TRANSLATE("Ancient symbols"), 0x010190, 0x0101cf, false, kNoBlock},
{B_TRANSLATE("Phaistos disc"), 0x0101d0, 0x0101ff, false, kNoBlock}, {B_TRANSLATE("Phaistos disc"), 0x0101d0, 0x0101ff, false, kNoBlock},
{B_TRANSLATE("Lycian"), 0x010280, 0x01029f, false, kNoBlock}, {B_TRANSLATE("Lycian"), 0x010280, 0x01029f, false, kNoBlock},
{B_TRANSLATE("Carian"), 0x0102a0, 0x0102df, false, kNoBlock}, {B_TRANSLATE("Carian"), 0x0102a0, 0x0102df, false, kNoBlock},
+5 -8
View File
@@ -721,7 +721,7 @@ VideoConsumer::FtpSave(char* filename)
if (ftp->ChangeDir((string)fDirectoryText)) { if (ftp->ChangeDir((string)fDirectoryText)) {
// cd to the desired directory // cd to the desired directory
UpdateFtpStatus(B_TRANSLATE("Transmitting" B_UTF8_ELLIPSIS)); UpdateFtpStatus(B_TRANSLATE("Upload" B_UTF8_ELLIPSIS));
if (ftp->PutFile((string)filename, (string)"temp")) { if (ftp->PutFile((string)filename, (string)"temp")) {
// send the file to the server // send the file to the server
@@ -741,14 +741,11 @@ VideoConsumer::FtpSave(char* filename)
UpdateFtpStatus(s); UpdateFtpStatus(s);
delete ftp; delete ftp;
return B_OK; return B_OK;
} } else
else
UpdateFtpStatus(B_TRANSLATE("Rename failed")); UpdateFtpStatus(B_TRANSLATE("Rename failed"));
} } else
else UpdateFtpStatus(B_TRANSLATE("File upload failed"));
UpdateFtpStatus(B_TRANSLATE("File transmission failed")); } else
}
else
UpdateFtpStatus(B_TRANSLATE("Couldn't find requested directory on " UpdateFtpStatus(B_TRANSLATE("Couldn't find requested directory on "
"server")); "server"));
} }
+7 -5
View File
@@ -1129,7 +1129,9 @@ ProbeView::ProbeView(entry_ref *ref, const char *attribute,
fTypeView(NULL), fTypeView(NULL),
fLastSearch(NULL) fLastSearch(NULL)
{ {
SetLayout(new BGroupLayout(B_VERTICAL, 0)); BGroupLayout* layout = new BGroupLayout(B_VERTICAL, 0);
SetLayout(layout);
layout->SetInsets(-1, -1, -1, -1);
fEditor.SetTo(*ref, attribute); fEditor.SetTo(*ref, attribute);
int32 baseType = kHexBase; int32 baseType = kHexBase;
@@ -1447,9 +1449,8 @@ ProbeView::AttachedToWindow()
// Block Size // Block Size
subMenu = new BMenu(B_TRANSLATE_COMMENT("BlockSize", "A menu item, a " subMenu = new BMenu(B_TRANSLATE_COMMENT("Block size", "Menu item. "
"shortened form from 'block size'. This is in the same menu window" "This is in the same menu window than 'Base' and 'Font size'"));
"than 'Base' and 'Font size'"));
subMenu->SetRadioMode(true); subMenu->SetRadioMode(true);
const uint32 blockSizes[] = {512, 1024, 2048}; const uint32 blockSizes[] = {512, 1024, 2048};
for (uint32 i = 0; i < sizeof(blockSizes) / sizeof(blockSizes[0]); i++) { for (uint32 i = 0; i < sizeof(blockSizes) / sizeof(blockSizes[0]); i++) {
@@ -1466,7 +1467,8 @@ ProbeView::AttachedToWindow()
if (subMenu->FindMarked() == NULL) { if (subMenu->FindMarked() == NULL) {
// if the device has some weird block size, we'll add it here, too // if the device has some weird block size, we'll add it here, too
char buffer[32]; char buffer[32];
snprintf(buffer, sizeof(buffer), B_TRANSLATE("%ld (native)"), fEditor.BlockSize()); snprintf(buffer, sizeof(buffer), B_TRANSLATE("%ld (native)"),
fEditor.BlockSize());
subMenu->AddItem(item = new BMenuItem(buffer, subMenu->AddItem(item = new BMenuItem(buffer,
message = new BMessage(kMsgBlockSize))); message = new BMessage(kMsgBlockSize)));
message->AddInt32("block_size", fEditor.BlockSize()); message->AddInt32("block_size", fEditor.BlockSize());
+2 -2
View File
@@ -40,9 +40,9 @@ StatusView::StatusView()
SetLowColor(kPieBGColor); SetLowColor(kPieBGColor);
fSizeView = new BStringView(NULL, kEmptyStr); fSizeView = new BStringView(NULL, kEmptyStr);
fSizeView->SetExplicitMinSize(BSize(StringWidth(B_TRANSLATE("9999.99 GB")), fSizeView->SetExplicitMinSize(BSize(StringWidth("9999.99 GiB"),
B_SIZE_UNSET)); B_SIZE_UNSET));
fSizeView->SetExplicitMaxSize(BSize(StringWidth(B_TRANSLATE("9999.99 GB")), fSizeView->SetExplicitMaxSize(BSize(StringWidth("9999.99 GiB"),
B_SIZE_UNSET)); B_SIZE_UNSET));
char testLabel[256]; char testLabel[256];
+3 -3
View File
@@ -957,7 +957,7 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition,
char message[512]; char message[512];
if (!found) { if (!found) {
snprintf(message, sizeof(message), B_TRANSLATE("Disk system \"%s\"\" " snprintf(message, sizeof(message), B_TRANSLATE("Disk system \"%s\" "
"not found!")); "not found!"));
_DisplayPartitionError(message); _DisplayPartitionError(message);
return; return;
@@ -966,7 +966,7 @@ MainWindow::_Initialize(BDiskDevice* disk, partition_id selectedPartition,
if (diskSystem.IsFileSystem()) { if (diskSystem.IsFileSystem()) {
if (disk->ID() == selectedPartition) { if (disk->ID() == selectedPartition) {
snprintf(message, sizeof(message), B_TRANSLATE("Are you sure you " snprintf(message, sizeof(message), B_TRANSLATE("Are you sure you "
"want to format a raw disk? (most people initialize the disk " "want to format a raw disk? (Most people initialize the disk "
"with a partitioning system first) You will be asked " "with a partitioning system first) You will be asked "
"again before changes are written to the disk.")); "again before changes are written to the disk."));
} else if (partition->ContentName() } else if (partition->ContentName()
@@ -1145,7 +1145,7 @@ MainWindow::_Create(BDiskDevice* disk, partition_id selectedPartition)
BPartitioningInfo partitioningInfo; BPartitioningInfo partitioningInfo;
status_t error = parent->GetPartitioningInfo(&partitioningInfo); status_t error = parent->GetPartitioningInfo(&partitioningInfo);
if (error != B_OK) { if (error != B_OK) {
_DisplayPartitionError(B_TRANSLATE("Could not aquire partitioning " _DisplayPartitionError(B_TRANSLATE("Could not acquire partitioning "
"information.")); "information."));
return; return;
} }
@@ -239,6 +239,7 @@ StyledTextImporter::Import(Icon* icon, const entry_ref* ref)
return _Import(icon, (const char *)mio.Buffer(), NULL); return _Import(icon, (const char *)mio.Buffer(), NULL);
} }
// _Import // _Import
status_t status_t
StyledTextImporter::_Import(Icon* icon, const char *text, text_run_array *runs) StyledTextImporter::_Import(Icon* icon, const char *text, text_run_array *runs)
@@ -246,14 +247,14 @@ StyledTextImporter::_Import(Icon* icon, const char *text, text_run_array *runs)
CALLED(); CALLED();
status_t ret = Init(icon); status_t ret = Init(icon);
if (ret < B_OK) { if (ret < B_OK) {
printf("StyledTextImporter::Import() - " printf("StyledTextImporter::Import() - Init() error: %s\n",
"Init() error: %s\n", strerror(ret)); strerror(ret));
return ret; return ret;
} }
BString str(text); BString str(text);
if (str.Length() > 50) { if (str.Length() > 50) {
BAlert* alert = new BAlert(B_TRANSLATE("too big"), BAlert* alert = new BAlert(B_TRANSLATE("Text too long"),
B_TRANSLATE("The text you are trying to import is quite long, " B_TRANSLATE("The text you are trying to import is quite long, "
"are you sure?"), "are you sure?"),
B_TRANSLATE("Yes"), B_TRANSLATE("No"), NULL, B_TRANSLATE("Yes"), B_TRANSLATE("No"), NULL,
+5 -3
View File
@@ -700,9 +700,11 @@ InstallerWindow::_LaunchBootManager()
BEntry entry(path.Path()); BEntry entry(path.Path());
entry_ref ref; entry_ref ref;
if (entry.GetRef(&ref) != B_OK || be_roster->Launch(&ref) != B_OK) { if (entry.GetRef(&ref) != B_OK || be_roster->Launch(&ref) != B_OK) {
BAlert* alert = new BAlert("error", B_TRANSLATE("BootManager, the " BAlert* alert = new BAlert(
"application to configure the Haiku boot menu, could not be " B_TRANSLATE("Failed to launch Boot Manager"),
"launched."), B_TRANSLATE("OK")); B_TRANSLATE("Boot Manager, the application to configure the "
"Haiku boot menu, could not be launched."),
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL, B_STOP_ALERT);
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go(); alert->Go();
} }
+6 -6
View File
@@ -33,7 +33,8 @@ const char *kLoginAppSig = "application/x-vnd.Haiku-Login";
LoginApp::LoginApp() LoginApp::LoginApp()
: BApplication(kLoginAppSig), :
BApplication(kLoginAppSig),
fEditShelfMode(false), fEditShelfMode(false),
fModalMode(true) fModalMode(true)
{ {
@@ -51,11 +52,10 @@ LoginApp::ReadyToRun()
BScreen screen; BScreen screen;
if (fEditShelfMode) { if (fEditShelfMode) {
BAlert* alert = new BAlert(B_TRANSLATE("Info"), B_TRANSLATE("You can customize the " BAlert* alert = new BAlert(B_TRANSLATE("Info"), B_TRANSLATE("You can "
"desktop shown behind the Login application by dropping replicants" "customize the desktop shown behind the Login application by "
" onto it.\n" "dropping replicants onto it.\n\n"
"\n" "When you are finished just quit the application (Cmd-Q)."),
"When you are finished just quit the application (Alt-Q)."),
B_TRANSLATE("OK")); B_TRANSLATE("OK"));
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go(NULL); alert->Go(NULL);
+1 -1
View File
@@ -371,7 +371,7 @@ PackageView::ItemExists(PackageItem& item, BPath& path, int32& policy)
break; break;
case P_KIND_SYM_LINK: case P_KIND_SYM_LINK:
formatString = B_TRANSLATE("The symbolic link named \'%s\' " formatString = B_TRANSLATE("The symbolic link named \'%s\' "
"already exists in the give path.\nReplace the link " "already exists in the given path.\nReplace the link "
"with the one from this package or skip it?"); "with the one from this package or skip it?");
break; break;
default: default:
+2 -1
View File
@@ -514,7 +514,8 @@ ScreenshotWindow::_SetupOutputPathMenu(const BMessage& settings)
} }
fOutputPathMenu->AddItem(new BSeparatorItem()); fOutputPathMenu->AddItem(new BSeparatorItem());
fOutputPathMenu->AddItem(new BMenuItem(B_TRANSLATE("Choose folder..."), fOutputPathMenu->AddItem(new BMenuItem(
B_TRANSLATE("Choose folder" B_UTF8_ELLIPSIS),
new BMessage(kChooseLocation), 'F')); new BMessage(kChooseLocation), 'F'));
} }
+1 -1
View File
@@ -294,7 +294,7 @@ BPrintJob::CommitJob()
return; return;
if (fSpoolFileHeader.page_count == 0) { if (fSpoolFileHeader.page_count == 0) {
ShowError(B_TRANSLATE("No Pages to print!")); ShowError(B_TRANSLATE("No pages to print!"));
CancelJob(); CancelJob();
return; return;
} }
@@ -52,10 +52,10 @@ ImageWindow::ImageWindow(BRect rect, const char *name)
BMenuBar *pbar = new BMenuBar(rctbar, "MenuBar"); BMenuBar *pbar = new BMenuBar(rctbar, "MenuBar");
BMenu *pmnufile = new BMenu(B_TRANSLATE("File")); BMenu *pmnufile = new BMenu(B_TRANSLATE("File"));
BMenuItem *pitmopen = new BMenuItem(B_TRANSLATE("Open..."), BMenuItem *pitmopen = new BMenuItem(B_TRANSLATE("Open" B_UTF8_ELLIPSIS),
new BMessage(M_OPEN_IMAGE), 'O', 0); new BMessage(M_OPEN_IMAGE), 'O', 0);
BMenuItem *pitmsave = new BMenuItem(B_TRANSLATE("Save..."), BMenuItem *pitmsave = new BMenuItem(B_TRANSLATE("Save" B_UTF8_ELLIPSIS),
new BMessage(M_SAVE_IMAGE), 'S', 0); new BMessage(M_SAVE_IMAGE), 'S', 0);
BMenuItem *pitmquit = new BMenuItem(B_TRANSLATE("Quit"), BMenuItem *pitmquit = new BMenuItem(B_TRANSLATE("Quit"),