* 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:
parent
534a3a24cd
commit
7b80b5d518
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
:
|
||||
|
@ -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"),
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
|
@ -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";
|
||||
|
||||
|
@ -77,7 +77,7 @@ All rights reserved.
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "libtracker"
|
||||
#define B_TRANSLATE_CONTEXT "InfoWindow"
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
@ -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()
|
||||
:
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -58,7 +58,7 @@ All rights reserved.
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "libtracker"
|
||||
#define B_TRANSLATE_CONTEXT "QueryPoseView"
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
|
@ -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)
|
||||
:
|
||||
|
@ -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)
|
||||
:
|
||||
|
@ -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),
|
||||
|
@ -185,7 +185,7 @@ public:
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "libtracker"
|
||||
#define B_TRANSLATE_CONTEXT "StatusWindow"
|
||||
|
||||
|
||||
BStatusWindow::BStatusWindow()
|
||||
|
@ -54,7 +54,7 @@ All rights reserved.
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "libtracker"
|
||||
#define B_TRANSLATE_CONTEXT "TemplatesMenu"
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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,
|
||||
|
@ -67,7 +67,7 @@ const uint32 kRevertButtonPressed = 'Rebp';
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "libtracker"
|
||||
#define B_TRANSLATE_CONTEXT "TrackerSettingsWindow"
|
||||
|
||||
TrackerSettingsWindow::TrackerSettingsWindow()
|
||||
:
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user