App name localization.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2011-03-16 20:33:35 +00:00
parent dd64744e69
commit d374a27286
30 changed files with 86 additions and 56 deletions

View File

@ -25,9 +25,9 @@ static const uint32 kMsgSetDefaults = 'dflt';
static const uint32 kMsgRevert = 'rvrt';
APRWindow::APRWindow(BRect frame)
: BWindow(frame, B_TRANSLATE("Appearance"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
B_ALL_WORKSPACES)
:
BWindow(frame, B_TRANSLATE_APP_NAME("Appearance"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES)
{
SetLayout(new BGroupLayout(B_HORIZONTAL));

View File

@ -90,8 +90,9 @@ BackgroundsApplication::RefsReceived(BMessage* message)
BackgroundsWindow::BackgroundsWindow()
:
BWindow(BRect(0, 0, 0, 0), B_TRANSLATE("Backgrounds"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
BWindow(BRect(0, 0, 0, 0), B_TRANSLATE_APP_NAME("Backgrounds"),
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
| B_AUTO_UPDATE_SIZE_LIMITS,
B_ALL_WORKSPACES)
{
fBackgroundsView = new BackgroundsView();

View File

@ -34,8 +34,9 @@ LocalDevice* ActiveLocalDevice = NULL;
BluetoothWindow::BluetoothWindow(BRect frame)
: BWindow(frame, B_TRANSLATE("Bluetooth"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
:
BWindow(frame, B_TRANSLATE_APP_NAME("Bluetooth"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
{
SetLayout(new BGroupLayout(B_HORIZONTAL));

View File

@ -93,7 +93,7 @@ private:
InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
:
BWindow(frame, B_TRANSLATE("Bluetooth"), B_FLOATING_WINDOW,
BWindow(frame, B_TRANSLATE_APP_NAME("Bluetooth"), B_FLOATING_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES ),
fMessenger(this),
fScanning(false),

View File

@ -26,11 +26,10 @@ main(int argc, char* argv[])
PreferencesWindow<freq_preferences> *window;
window = new PreferencesWindow<freq_preferences>(
B_TRANSLATE("CPU Frequency"),
kPreferencesFileName,
kDefaultPreferences);
CPUFrequencyView* prefView = new CPUFrequencyView(BRect(0, 0, 400, 350),
window);
B_TRANSLATE_APP_NAME("CPUFrequency"), kPreferencesFileName,
kDefaultPreferences);
CPUFrequencyView* prefView
= new CPUFrequencyView(BRect(0, 0, 400, 350), window);
window->SetPreferencesView(prefView);
window->Show();
app->Run();

View File

@ -47,7 +47,7 @@ const uint32 kMsgSelectedTranslator = 'trsl';
DataTranslationsWindow::DataTranslationsWindow()
:
BWindow(BRect(0, 0, 550, 350), B_TRANSLATE("DataTranslations"),
BWindow(BRect(0, 0, 550, 350), B_TRANSLATE_APP_NAME("DataTranslations"),
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
| B_NOT_RESIZABLE | B_AUTO_UPDATE_SIZE_LIMITS)
{

View File

@ -10,12 +10,14 @@
#include "PreferencesWindow.h"
#include <Application.h>
#include <Catalog.h>
#include <Roster.h>
int
main(int argc, char **argv)
{
B_TRANSLATE_MARK_APP_NAME("Deskbar");
BApplication app("application/x-vnd.Haiku-DeskbarPreferences");
be_roster->Launch("application/x-vnd.Be-TSKB", new BMessage(kConfigShow));
return 0;

View File

@ -2,9 +2,18 @@ SubDir HAIKU_TOP src preferences deskbar ;
SubDirSysHdrs $(HAIKU_TOP) src apps deskbar ;
Preference <preference>Deskbar :
Preference <preference>Deskbar
:
DeskbarPreferences.cpp
: be
: DeskbarPreferences.rdef
;
:
be $(HAIKU_LOCALE_LIBS)
:
DeskbarPreferences.rdef
;
DoCatalogs <preference>Deskbar
:
x-vnd.Haiku-DeskbarPreferences
:
DeskbarPreferences.cpp
;

View File

@ -307,8 +307,9 @@ ExtensionListView::SetType(BMimeType* type)
FileTypesWindow::FileTypesWindow(const BMessage& settings)
:
BWindow(_Frame(settings), B_TRANSLATE("FileTypes"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS),
BWindow(_Frame(settings), B_TRANSLATE_APP_NAME("FileTypes"),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS),
fNewTypeWindow(NULL)
{
bool showIcons;

View File

@ -39,7 +39,7 @@ static const uint32 kMsgCheckFonts = 'chkf';
MainWindow::MainWindow()
: BWindow(BRect(0, 0, 1, 1), B_TRANSLATE("Fonts"), B_TITLED_WINDOW,
: BWindow(BRect(0, 0, 1, 1), B_TRANSLATE_APP_NAME("Fonts"), B_TITLED_WINDOW,
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
{
fDefaultsButton = new BButton("defaults", B_TRANSLATE("Defaults"),

View File

@ -28,9 +28,10 @@
#define B_TRANSLATE_CONTEXT "KeyboardWindow"
KeyboardWindow::KeyboardWindow()
: BWindow(BRect(0, 0, 200, 200), B_TRANSLATE("Keyboard"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS)
:
BWindow(BRect(0, 0, 200, 200), B_TRANSLATE_APP_NAME("Keyboard"),
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
| B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS)
{
MoveTo(fSettings.WindowCorner());

View File

@ -70,8 +70,8 @@ static const char* kCurrentKeymapName = "(Current)";
KeymapWindow::KeymapWindow()
:
BWindow(BRect(80, 50, 880, 380), B_TRANSLATE("Keymap"), B_TITLED_WINDOW,
B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS)
BWindow(BRect(80, 50, 880, 380), B_TRANSLATE_APP_NAME("Keymap"),
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS)
{
SetLayout(new BGroupLayout(B_VERTICAL));

View File

@ -66,7 +66,7 @@ compare_typed_list_items(const BListItem* _a, const BListItem* _b)
LocaleWindow::LocaleWindow()
:
BWindow(BRect(0, 0, 0, 0), B_TRANSLATE("Locale"), B_TITLED_WINDOW,
BWindow(BRect(0, 0, 0, 0), B_TRANSLATE_APP_NAME("Locale"), B_TITLED_WINDOW,
B_QUIT_ON_WINDOW_CLOSE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS),
fInitialConventionsItem(NULL),

View File

@ -305,7 +305,7 @@ class AboutTextView : public BTextView
ConfigWindow::ConfigWindow()
:
BWindow(BRect(100.0, 100.0, 580.0, 540.0), B_TRANSLATE("E-mail"),
BWindow(BRect(100.0, 100.0, 580.0, 540.0), B_TRANSLATE_APP_NAME("E-mail"),
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
| B_NOT_RESIZABLE),
fLastSelectedAccount(NULL),

View File

@ -151,7 +151,7 @@ MediaWindow::SmartNode::_FreeNode()
// MediaWindow - Constructor
MediaWindow::MediaWindow(BRect frame)
:
BWindow(frame, B_TRANSLATE("Media"), B_TITLED_WINDOW,
BWindow(frame, B_TRANSLATE_APP_NAME("Media"), B_TITLED_WINDOW,
B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS),
fCurrentNode(BMessenger(this)),
fParamWeb(NULL),

View File

@ -34,9 +34,9 @@
MouseWindow::MouseWindow(BRect _rect)
:
BWindow(_rect, B_TRANSLATE("Mouse"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS |
B_AUTO_UPDATE_SIZE_LIMITS)
BWindow(_rect, B_TRANSLATE_APP_NAME("Mouse"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS)
{
// Add the main settings view
fSettingsView = new SettingsView(fSettings);

View File

@ -23,9 +23,9 @@
NetworkWindow::NetworkWindow()
:
BWindow(BRect(50, 50, 269, 302), B_TRANSLATE("Network"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
| B_AUTO_UPDATE_SIZE_LIMITS | B_QUIT_ON_WINDOW_CLOSE)
BWindow(BRect(50, 50, 269, 302), B_TRANSLATE_APP_NAME("Network"),
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS
| B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS | B_QUIT_ON_WINDOW_CLOSE)
{
SetLayout(new BGroupLayout(B_HORIZONTAL));
GetLayout()->AddView(new EthernetSettingsView());

View File

@ -27,9 +27,9 @@ const int32 kSave = '_SAV';
PrefletWin::PrefletWin()
:
BWindow(BRect(0, 0, 1, 1), B_TRANSLATE("Notifications"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS)
BWindow(BRect(0, 0, 1, 1), B_TRANSLATE_APP_NAME("Notifications"),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_NOT_RESIZABLE
| B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS)
{
// Preflet container view
fMainView = new PrefletView(this);

View File

@ -23,5 +23,6 @@ DoCatalogs OpenGL :
ExtensionsList.cpp
ExtensionsView.cpp
InfoView.cpp
OpenGLWindow.cpp
;

View File

@ -9,14 +9,16 @@
#include "OpenGLWindow.h"
#include <Application.h>
#include <Catalog.h>
#include <GroupLayout.h>
#include "OpenGLView.h"
OpenGLWindow::OpenGLWindow()
: BWindow(BRect(50, 50, 450, 400), "OpenGL", B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
| B_AUTO_UPDATE_SIZE_LIMITS)
:
BWindow(BRect(50, 50, 450, 400), B_TRANSLATE_APP_NAME("OpenGL"),
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS
| B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
{
SetLayout(new BGroupLayout(B_VERTICAL));
fView = new OpenGLView();

View File

@ -12,7 +12,6 @@
#include <stdio.h>
// BeOS API
#include <Application.h>
#include <Button.h>
#include <Catalog.h>
@ -39,8 +38,8 @@
PrintersWindow::PrintersWindow(BRect frame)
:
Inherited(BRect(78, 71, 761, 509), B_TRANSLATE("Printers"), B_TITLED_WINDOW,
0),
BWindow(BRect(78, 71, 761, 509), B_TRANSLATE_APP_NAME("Printers"),
B_TITLED_WINDOW, 0),
fSelectedPrinter(NULL),
fAddingPrinter(false)
{

View File

@ -165,8 +165,8 @@ screen_errors(status_t status)
ScreenWindow::ScreenWindow(ScreenSettings* settings)
:
BWindow(settings->WindowFrame(), B_TRANSLATE("Screen"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
BWindow(settings->WindowFrame(), B_TRANSLATE_APP_NAME("Screen"),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
B_ALL_WORKSPACES),
fBootWorkspaceApplied(false),
fScreenMode(this),

View File

@ -613,7 +613,7 @@ ModulesView::_OpenSaver()
ScreenSaverWindow::ScreenSaverWindow()
:
BWindow(BRect(50, 50, 496, 375), B_TRANSLATE("ScreenSaver"),
BWindow(BRect(50, 50, 496, 375), B_TRANSLATE_APP_NAME("ScreenSaver"),
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS)
{
fSettings.Load();

View File

@ -95,7 +95,7 @@ CreateKeysPopUp()
ShortcutsWindow::ShortcutsWindow()
:
BWindow(BRect(WINDOW_START_X, WINDOW_START_Y, WINDOW_START_X + MIN_WIDTH,
WINDOW_START_Y + MIN_HEIGHT * 2), B_TRANSLATE("Shortcuts"),
WINDOW_START_Y + MIN_HEIGHT * 2), B_TRANSLATE_APP_NAME("Shortcuts"),
B_DOCUMENT_WINDOW, 0L),
fSavePanel(NULL),
fOpenPanel(NULL),

View File

@ -28,7 +28,7 @@ HApp::HApp()
BRect rect;
rect.Set(200, 150, 590, 570);
HWindow* window = new HWindow(rect, B_TRANSLATE("Sounds"));
HWindow* window = new HWindow(rect, B_TRANSLATE_APP_NAME("Sounds"));
window->Show();
}

View File

@ -27,7 +27,9 @@
#define B_TRANSLATE_CONTEXT "Time"
TTimeWindow::TTimeWindow(BRect rect)
: BWindow(rect, B_TRANSLATE("Time"), B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
:
BWindow(rect, B_TRANSLATE_APP_NAME("Time"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
{
_InitWindow();
_AlignWindow();

View File

@ -45,7 +45,7 @@ main(int argc, char* argv[])
BApplication* app = new BApplication("application/x-vnd.Haiku-Touchpad");
TouchpadPrefWindow* window = new TouchpadPrefWindow(BRect(50, 50, 450, 350),
B_TRANSLATE("Touchpad"), B_TITLED_WINDOW,
B_TRANSLATE_APP_NAME("Touchpad"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE
| B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS);
window->SetLayout(new BGroupLayout(B_HORIZONTAL));

View File

@ -1,7 +1,17 @@
SubDir HAIKU_TOP src preferences tracker ;
Preference <preference>Tracker :
Preference <preference>Tracker
:
TrackerPreferences.cpp
: be
: TrackerPreferences.rdef
;
:
be $(HAIKU_LOCALE_LIBS)
:
TrackerPreferences.rdef
;
DoCatalogs <preference>Tracker
:
x-vnd.Haiku-TrackerPreferences
:
TrackerPreferences.cpp
;

View File

@ -7,12 +7,14 @@
*/
#include <Application.h>
#include <Catalog.h>
#include <Roster.h>
int
main(int argc, char **argv)
{
B_TRANSLATE_MARK_APP_NAME("Tracker");
BApplication app("application/x-vnd.Haiku-TrackerPreferences");
// launch Tracker if it's not running

View File

@ -129,7 +129,7 @@ VolumeMenuItem::VolumeMenuItem(const char* label, BMessage* message,
SettingsWindow::SettingsWindow()
:
BWindow(BRect(0, 0, 269, 172), B_TRANSLATE("VirtualMemory"),
BWindow(BRect(0, 0, 269, 172), B_TRANSLATE_APP_NAME("VirtualMemory"),
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS
| B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
fLocked(false)