Revert localization-related changes in the BeOS-only part of code.

Pointed out by Ingo. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Siarzhuk Zharski
2011-02-19 22:24:59 +00:00
parent b5c4007b7a
commit aa1207034f
@@ -803,7 +803,7 @@ thread_debug_thread(void *arg)
thread_info thinfo; thread_info thinfo;
get_thread_info(param->thread, &thinfo); get_thread_info(param->thread, &thinfo);
char text[4096]; char text[4096];
sprintf(text, "gdb -pid=%d", int(param->thread)); sprintf(text, "db %d", int(param->thread));
system(text); system(text);
if (param->sem >= 0 && thinfo.state == B_THREAD_WAITING && param->sem if (param->sem >= 0 && thinfo.state == B_THREAD_WAITING && param->sem
== thinfo.sem) { == thinfo.sem) {
@@ -821,27 +821,25 @@ thread_debug_thread(void *arg)
if (get_sem_info(param->sem, &sinfo) == B_OK if (get_sem_info(param->sem, &sinfo) == B_OK
&& get_thread_info(param->thread, &thinfo) == B_OK && get_thread_info(param->thread, &thinfo) == B_OK
&& get_team_info(thinfo.team, &infos.team_info) == B_OK) { && get_team_info(thinfo.team, &infos.team_info) == B_OK) {
sprintf (text, B_TRANSLATE("This thread is waiting for the " sprintf (text, "This thread is waiting for the "
"semaphore called \"%s\". As long as it waits for this " "semaphore called \"%s\". As long as it waits for this "
"semaphore, ") "semaphore, you won't be able to debug that thread.\n",
B_TRANSLATE("you won't be able to debug that thread.\n"),
sinfo.name); sinfo.name);
if (sinfo.team == thinfo.team) if (sinfo.team == thinfo.team)
strcat(text, B_TRANSLATE("This semaphore belongs to the " strcat(text, "This semaphore belongs to the "
"thread's team.\n\nShould I release this semaphore?\n")); "thread's team.\n\nShould I release this semaphore?\n");
else { else {
get_team_name_and_icon(infos); get_team_name_and_icon(infos);
char moreText[1024]; char moreText[1024];
sprintf(moreText, B_TRANSLATE("\nWARNING! This semaphore " sprintf(moreText, "\nWARNING! This semaphore "
"belongs to the team \"%s\"!\n\nShould I release this " "belongs to the team \"%s\"!\n\nShould I release this "
"semaphore anyway?\n"), "semaphore anyway?\n",
infos.team_name); infos.team_name);
strcat(text, moreText); strcat(text, moreText);
} }
BAlert* alert = new BAlert("", text, B_TRANSLATE("Cancel"), BAlert* alert = new BAlert("", text, "Cancel", "Release",
B_TRANSLATE("Release"), NULL, B_WIDTH_AS_USUAL, NULL, B_WIDTH_AS_USUAL, B_STOP_ALERT);
B_STOP_ALERT);
alert->SetShortcut(0, B_ESCAPE); alert->SetShortcut(0, B_ESCAPE);
if (alert->Go()) { if (alert->Go()) {
get_thread_info (param->thread, &thinfo); get_thread_info (param->thread, &thinfo);
@@ -851,10 +849,9 @@ thread_debug_thread(void *arg)
+ thinfo.kernel_time) + thinfo.kernel_time)
release_sem(param->sem); release_sem(param->sem);
else { else {
alert = new BAlert("", B_TRANSLATE("The semaphore " alert = new BAlert("", "The semaphore wasn't released, "
"wasn't released, because it wasn't necessary " "because it wasn't necessary anymore!",
"anymore!"), B_TRANSLATE("OK"), NULL, NULL, "OK", NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
alert->Go(); alert->Go();
} }
} }