* Use multiple translate contexts in Tracker for easier translation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2010-09-17 16:28:10 +00:00
parent 534a3a24cd
commit 7b80b5d518
30 changed files with 30 additions and 30 deletions

View File

@ -56,7 +56,7 @@ const uint32 kBootMountSettingsChanged = 'bchg';
const uint32 kEjectWhenUnmountingChanged = 'ejct';
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "AutoMounterSettings"
class AutomountSettingsPanel : public BBox {
public:

View File

@ -92,7 +92,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "ContainerWindow"
const uint32 kRedo = 'REDO';
// this is the same as B_REDO in Dano/Zeta/Haiku

View File

@ -53,7 +53,7 @@ const bigtime_t kBarberPoleDelay = 500000;
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "CountView"
BCountView::BCountView(BRect bounds, BPoseView* view)
: BView(bounds, "CountVw", B_FOLLOW_LEFT + B_FOLLOW_BOTTOM,

View File

@ -106,7 +106,7 @@ AddOneShortcut(const Model *model, const char *, uint32 shortcut, bool /*primary
// #pragma mark -
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "DeskWindow"
BDeskWindow::BDeskWindow(LockingList<BWindow> *windowList)
:

View File

@ -55,7 +55,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "DirMenu"
BDirMenu::BDirMenu(BMenuBar *bar, uint32 command, const char *entryName)
: BPopUpMenu("directories"),

View File

@ -109,7 +109,7 @@ CompareModeAndRefName(const char *modeName, const char *refName)
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FSClipBoard"
bool
FSClipboardHasRefs()

View File

@ -102,7 +102,7 @@ enum ConflictCheckResult {
namespace BPrivate {
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FSUtils"
static status_t FSDeleteFolder(BEntry *, CopyLoopControl *, bool updateStatus,
bool deleteTopDir = true, bool upateFileNameInStatus = false);

View File

@ -58,7 +58,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FavoritesMenu"
FavoritesMenu::FavoritesMenu(const char *title, BMessage *openFolderMessage,
BMessage *openFileMessage, const BMessenger &target,

View File

@ -136,7 +136,7 @@ key_down_filter(BMessage *message, BHandler **, BMessageFilter *filter)
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FilePanelPriv"
TFilePanel::TFilePanel(file_panel_mode mode, BMessenger *target,
const BEntry *startDir, uint32 nodeFlavors, bool multipleSelection,

View File

@ -48,7 +48,7 @@ const uint32 kNewGroupEntered = 'nwgr';
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FilePermissionsView"
FilePermissionsView::FilePermissionsView(BRect rect, Model *model)
: BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW),

View File

@ -77,7 +77,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "FindPanel"
const char *kAllMimeTypes = "mime/ALLTYPES";

View File

@ -77,7 +77,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "InfoWindow"
namespace BPrivate {

View File

@ -86,7 +86,7 @@ bool CheckNodeIconHintPrivate(const BNode *, bool);
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "Model"
Model::Model()
:

View File

@ -157,7 +157,7 @@ AddMenuItemVisitor::Visit(BPartition *partition, int32 level)
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "MountMenu"
MountMenu::MountMenu(const char *name)
: BMenu(name)

View File

@ -247,7 +247,7 @@ SpringLoadedFolderCacheDragData(const BMessage *incoming, BMessage **message, BO
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "NavMenu"
BNavMenu::BNavMenu(const char *title, uint32 message, const BHandler *target,
BWindow *parentWindow, const BObjectList<BString> *list)

View File

@ -74,7 +74,7 @@ const rgb_color kOpenWithDefaultColor = { 0xFF, 0xFF, 0xCC, 255};
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "OpenWithWindow"
OpenWithContainerWindow::OpenWithContainerWindow(BMessage *entriesToOpen,
LockingList<BWindow> *windowList, window_look look, window_feel feel,

View File

@ -95,7 +95,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "PoseView"
using std::min;
using std::max;

View File

@ -48,7 +48,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "QueryContainerWindow"
BQueryContainerWindow::BQueryContainerWindow(LockingList<BWindow> *windowList,
uint32 containerWindowFlags, window_look look,

View File

@ -58,7 +58,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "QueryPoseView"
using std::nothrow;

View File

@ -50,7 +50,7 @@ const int frameThickness = 9;
const uint32 kSelectButtonPressed = 'sbpr';
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "SelectionWindow"
SelectionWindow::SelectionWindow(BContainerWindow* window)
:

View File

@ -83,7 +83,7 @@ send_bool_notices(uint32 what, const char *name, bool value)
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "SettingsView"
SettingsView::SettingsView(const char* name)
:

View File

@ -63,7 +63,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "SlowContextPopup"
BSlowContextMenu::BSlowContextMenu(const char *title)
: BPopUpMenu(title, false, false),

View File

@ -185,7 +185,7 @@ public:
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "StatusWindow"
BStatusWindow::BStatusWindow()

View File

@ -54,7 +54,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "TemplatesMenu"
namespace BPrivate {

View File

@ -56,7 +56,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "TextWidget"
const float kWidthMargin = 20;

View File

@ -206,7 +206,7 @@ GetVolumeFlags(Model *model)
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "Tracker"
TTracker::TTracker()
: BApplication(kTrackerSignature),

View File

@ -333,7 +333,7 @@ AddTemporaryBackgroundImages(BMessage *message, const char *imagePath,
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "TrackerInitialState"
bool
TTracker::InstallMimeIfNeeded(const char *type, int32 bitsID,

View File

@ -67,7 +67,7 @@ const uint32 kRevertButtonPressed = 'Rebp';
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "TrackerSettingsWindow"
TrackerSettingsWindow::TrackerSettingsWindow()
:

View File

@ -51,7 +51,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "VolumeWindow"
BVolumeWindow::BVolumeWindow(LockingList<BWindow> *windowList, uint32 openFlags)
: BContainerWindow(windowList, openFlags)

View File

@ -65,7 +65,7 @@ All rights reserved.
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "libtracker"
#define B_TRANSLATE_CONTEXT "WidgetAttributeText"
const int32 kGenericReadBufferSize = 1024;