Fixing #6926 "ActivityMonitor localization patch" by Jorma Karvonen.
This application was already localized but some lines were missed. The name of floating Settings window localized using B_TRANSLATE_WITH_CONTEXT to prevent possible functionality breackage during using it from other module (and other translation context) by window scripting. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40474 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6df0729855
commit
509881961f
@ -195,7 +195,7 @@ ActivityWindow::MessageReceived(BMessage* message)
|
||||
// Just bring the window to front (via scripting)
|
||||
BMessage toFront(B_SET_PROPERTY);
|
||||
toFront.AddSpecifier("Active");
|
||||
toFront.AddSpecifier("Window", "Settings");
|
||||
toFront.AddSpecifier("Window", B_TRANSLATE("Settings"));
|
||||
toFront.AddBool("data", true);
|
||||
fSettingsWindow.SendMessage(&toFront);
|
||||
} else {
|
||||
|
@ -74,9 +74,9 @@ private:
|
||||
|
||||
bigtime_t interval = kUpdateIntervals[level];
|
||||
if ((interval % 1000) == 0)
|
||||
snprintf(fText, sizeof(fText), "%lld sec.", interval / 1000);
|
||||
snprintf(fText, sizeof(fText), B_TRANSLATE("%lld sec."), interval / 1000);
|
||||
else
|
||||
snprintf(fText, sizeof(fText), "%lld ms", interval);
|
||||
snprintf(fText, sizeof(fText), B_TRANSLATE("%lld ms"), interval);
|
||||
|
||||
return fText;
|
||||
}
|
||||
@ -89,8 +89,9 @@ private:
|
||||
|
||||
|
||||
SettingsWindow::SettingsWindow(ActivityWindow* target)
|
||||
: BWindow(_RelativeTo(target), "Settings", B_FLOATING_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
|
||||
: BWindow(_RelativeTo(target),
|
||||
B_TRANSLATE_WITH_CONTEXT("Settings", "ActivityWindow"), B_FLOATING_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
|
||||
fTarget(target)
|
||||
{
|
||||
SetLayout(new BGroupLayout(B_VERTICAL));
|
||||
|
Loading…
Reference in New Issue
Block a user