Ticket #7329: terminal.diff

File terminal.diff, 3.2 KB (added by diver, 8 years ago)
  • src/apps/terminal/Shell.cpp

     
    412412    const char *ttyName;
    413413
    414414    if (master < 0) {
    415         fprintf(stderr, B_TRANSLATE("Didn't find any available pseudo ttys."));
     415        fprintf(stderr, "Didn't find any available pseudo ttys.");
    416416        return errno;
    417417    }
    418418
    419419    if (grantpt(master) != 0 || unlockpt(master) != 0
    420420        || (ttyName = ptsname(master)) == NULL) {
    421421        close(master);
    422         fprintf(stderr, B_TRANSLATE("Failed to init pseudo tty."));
     422        fprintf(stderr, "Failed to init pseudo tty.");
    423423        return errno;
    424424    }
    425425
     
    454454        if (setsid() < 0) {
    455455            handshake.status = PTY_NG;
    456456            snprintf(handshake.msg, sizeof(handshake.msg),
    457                 B_TRANSLATE("could not set session leader."));
     457                "could not set session leader.");
    458458            send_handshake_message(terminalThread, handshake);
    459459            exit(1);
    460460        }
     
    464464        if ((slave = open(ttyName, O_RDWR)) < 0) {
    465465            handshake.status = PTY_NG;
    466466            snprintf(handshake.msg, sizeof(handshake.msg),
    467                 B_TRANSLATE("can't open tty (%s)."), ttyName);
     467                "can't open tty (%s).", ttyName);
    468468            send_handshake_message(terminalThread, handshake);
    469469            exit(1);
    470470        }
     
    503503        if (tcsetattr(0, TCSANOW, &tio) == -1) {
    504504            handshake.status = PTY_NG;
    505505            snprintf(handshake.msg, sizeof(handshake.msg),
    506                 B_TRANSLATE("failed set terminal interface (TERMIOS)."));
     506                "failed set terminal interface (TERMIOS).");
    507507            send_handshake_message(terminalThread, handshake);
    508508            exit(1);
    509509        }
     
    519519        if (handshake.status != PTY_WS) {
    520520            handshake.status = PTY_NG;
    521521            snprintf(handshake.msg, sizeof(handshake.msg),
    522                 B_TRANSLATE("mismatch handshake."));
     522                "mismatch handshake.");
    523523            send_handshake_message(terminalThread, handshake);
    524524            exit(1);
    525525        }
  • src/apps/terminal/TermView.cpp

     
    21952195        cdItem->SetEnabled(false);
    21962196
    21972197    BPopUpMenu *menu = new BPopUpMenu(
    2198         B_TRANSLATE("Secondary mouse button drop menu"));
     2198        "Secondary mouse button drop menu");
    21992199    menu->SetAsyncAutoDestruct(true);
    22002200    menu->AddItem(insertItem);
    22012201    menu->AddSeparatorItem();
  • src/apps/terminal/TermApp.cpp

     
    8888#endif
    8989    action.sa_userdata = this;
    9090    if (sigaction(SIGCHLD, &action, NULL) < 0) {
    91         fprintf(stderr, B_TRANSLATE("sigaction() failed: %s\n"),
     91        fprintf(stderr, "sigaction() failed: %s\n",
    9292            strerror(errno));
    9393        // continue anyway
    9494    }
  • src/apps/terminal/PrefHandler.cpp

     
    256256        sscanf(s, "%d, %d, %d", &r, &g, &b);
    257257    } else {
    258258        fprintf(stderr,
    259             B_TRANSLATE("PrefHandler::getRGB(%s) - key not found\n"), key);
     259            "PrefHandler::getRGB(%s) - key not found\n", key);
    260260        r = g = b = 0;
    261261    }
    262262