diff --git a/src/apps/terminal/PrefHandler.cpp b/src/apps/terminal/PrefHandler.cpp index 8eac65cb4b..285458289b 100644 --- a/src/apps/terminal/PrefHandler.cpp +++ b/src/apps/terminal/PrefHandler.cpp @@ -256,7 +256,7 @@ PrefHandler::getRGB(const char *key) sscanf(s, "%d, %d, %d", &r, &g, &b); } else { fprintf(stderr, - B_TRANSLATE("PrefHandler::getRGB(%s) - key not found\n"), key); + "PrefHandler::getRGB(%s) - key not found\n", key); r = g = b = 0; } diff --git a/src/apps/terminal/Shell.cpp b/src/apps/terminal/Shell.cpp index 6f98c9f8f1..2c602a94b9 100644 --- a/src/apps/terminal/Shell.cpp +++ b/src/apps/terminal/Shell.cpp @@ -412,14 +412,14 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters) const char *ttyName; if (master < 0) { - fprintf(stderr, B_TRANSLATE("Didn't find any available pseudo ttys.")); - return errno; + fprintf(stderr, "Didn't find any available pseudo ttys."); + return errno; } if (grantpt(master) != 0 || unlockpt(master) != 0 || (ttyName = ptsname(master)) == NULL) { close(master); - fprintf(stderr, B_TRANSLATE("Failed to init pseudo tty.")); + fprintf(stderr, "Failed to init pseudo tty."); return errno; } @@ -454,7 +454,7 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters) if (setsid() < 0) { handshake.status = PTY_NG; snprintf(handshake.msg, sizeof(handshake.msg), - B_TRANSLATE("could not set session leader.")); + "could not set session leader."); send_handshake_message(terminalThread, handshake); exit(1); } @@ -464,7 +464,7 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters) if ((slave = open(ttyName, O_RDWR)) < 0) { handshake.status = PTY_NG; snprintf(handshake.msg, sizeof(handshake.msg), - B_TRANSLATE("can't open tty (%s)."), ttyName); + "can't open tty (%s).", ttyName); send_handshake_message(terminalThread, handshake); exit(1); } @@ -503,7 +503,7 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters) if (tcsetattr(0, TCSANOW, &tio) == -1) { handshake.status = PTY_NG; snprintf(handshake.msg, sizeof(handshake.msg), - B_TRANSLATE("failed set terminal interface (TERMIOS).")); + "failed set terminal interface (TERMIOS)."); send_handshake_message(terminalThread, handshake); exit(1); } @@ -519,7 +519,7 @@ Shell::_Spawn(int row, int col, const ShellParameters& parameters) if (handshake.status != PTY_WS) { handshake.status = PTY_NG; snprintf(handshake.msg, sizeof(handshake.msg), - B_TRANSLATE("mismatch handshake.")); + "mismatch handshake."); send_handshake_message(terminalThread, handshake); exit(1); } diff --git a/src/apps/terminal/TermApp.cpp b/src/apps/terminal/TermApp.cpp index 9b7d1e8f7a..e4254c5297 100644 --- a/src/apps/terminal/TermApp.cpp +++ b/src/apps/terminal/TermApp.cpp @@ -88,7 +88,7 @@ TermApp::ReadyToRun() #endif action.sa_userdata = this; if (sigaction(SIGCHLD, &action, NULL) < 0) { - fprintf(stderr, B_TRANSLATE("sigaction() failed: %s\n"), + fprintf(stderr, "sigaction() failed: %s\n", strerror(errno)); // continue anyway } diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp index 5a2c974b47..19e3b1bb98 100644 --- a/src/apps/terminal/TermView.cpp +++ b/src/apps/terminal/TermView.cpp @@ -747,7 +747,7 @@ inline void TermView::_InvalidateTextRect(int32 x1, int32 y1, int32 x2, int32 y2) { BRect rect(x1 * fFontWidth, _LineOffset(y1), - (x2 + 1) * fFontWidth - 1, _LineOffset(y2 + 1) - 1); + (x2 + 1) * fFontWidth - 1, _LineOffset(y2 + 1) - 1); //debug_printf("Invalidate((%f, %f) - (%f, %f))\n", rect.left, rect.top, //rect.right, rect.bottom); Invalidate(rect); @@ -2195,7 +2195,7 @@ TermView::_SecondaryMouseButtonDropped(BMessage* msg) cdItem->SetEnabled(false); BPopUpMenu *menu = new BPopUpMenu( - B_TRANSLATE("Secondary mouse button drop menu")); + "Secondary mouse button drop menu"); menu->SetAsyncAutoDestruct(true); menu->AddItem(insertItem); menu->AddSeparatorItem();