From 7b80b5d5181053872dd475b1c559bc010914a31c Mon Sep 17 00:00:00 2001 From: Alexandre Deckner Date: Fri, 17 Sep 2010 16:28:10 +0000 Subject: [PATCH] * 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 --- src/kits/tracker/AutoMounterSettings.cpp | 2 +- src/kits/tracker/ContainerWindow.cpp | 2 +- src/kits/tracker/CountView.cpp | 2 +- src/kits/tracker/DeskWindow.cpp | 2 +- src/kits/tracker/DirMenu.cpp | 2 +- src/kits/tracker/FSClipboard.cpp | 2 +- src/kits/tracker/FSUtils.cpp | 2 +- src/kits/tracker/FavoritesMenu.cpp | 2 +- src/kits/tracker/FilePanelPriv.cpp | 2 +- src/kits/tracker/FilePermissionsView.cpp | 2 +- src/kits/tracker/FindPanel.cpp | 2 +- src/kits/tracker/InfoWindow.cpp | 2 +- src/kits/tracker/Model.cpp | 2 +- src/kits/tracker/MountMenu.cpp | 2 +- src/kits/tracker/NavMenu.cpp | 2 +- src/kits/tracker/OpenWithWindow.cpp | 2 +- src/kits/tracker/PoseView.cpp | 2 +- src/kits/tracker/QueryContainerWindow.cpp | 2 +- src/kits/tracker/QueryPoseView.cpp | 2 +- src/kits/tracker/SelectionWindow.cpp | 2 +- src/kits/tracker/SettingsViews.cpp | 2 +- src/kits/tracker/SlowContextPopup.cpp | 2 +- src/kits/tracker/StatusWindow.cpp | 2 +- src/kits/tracker/TemplatesMenu.cpp | 2 +- src/kits/tracker/TextWidget.cpp | 2 +- src/kits/tracker/Tracker.cpp | 2 +- src/kits/tracker/TrackerInitialState.cpp | 2 +- src/kits/tracker/TrackerSettingsWindow.cpp | 2 +- src/kits/tracker/VolumeWindow.cpp | 2 +- src/kits/tracker/WidgetAttributeText.cpp | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/kits/tracker/AutoMounterSettings.cpp b/src/kits/tracker/AutoMounterSettings.cpp index 10bc34cc1b..7a9872fe40 100644 --- a/src/kits/tracker/AutoMounterSettings.cpp +++ b/src/kits/tracker/AutoMounterSettings.cpp @@ -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: diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 28ca09aec3..6d4d1ed585 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -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 diff --git a/src/kits/tracker/CountView.cpp b/src/kits/tracker/CountView.cpp index e35bab053c..24efeab23b 100644 --- a/src/kits/tracker/CountView.cpp +++ b/src/kits/tracker/CountView.cpp @@ -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, diff --git a/src/kits/tracker/DeskWindow.cpp b/src/kits/tracker/DeskWindow.cpp index 2df4aba3da..233b0b75c6 100644 --- a/src/kits/tracker/DeskWindow.cpp +++ b/src/kits/tracker/DeskWindow.cpp @@ -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 *windowList) : diff --git a/src/kits/tracker/DirMenu.cpp b/src/kits/tracker/DirMenu.cpp index e5cf1e87da..a7a58445fb 100644 --- a/src/kits/tracker/DirMenu.cpp +++ b/src/kits/tracker/DirMenu.cpp @@ -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"), diff --git a/src/kits/tracker/FSClipboard.cpp b/src/kits/tracker/FSClipboard.cpp index 9a10d9a693..5857872b9b 100644 --- a/src/kits/tracker/FSClipboard.cpp +++ b/src/kits/tracker/FSClipboard.cpp @@ -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() diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index 8d76d6722d..e54e4699d9 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -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); diff --git a/src/kits/tracker/FavoritesMenu.cpp b/src/kits/tracker/FavoritesMenu.cpp index 60a5362b10..7054814219 100644 --- a/src/kits/tracker/FavoritesMenu.cpp +++ b/src/kits/tracker/FavoritesMenu.cpp @@ -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, diff --git a/src/kits/tracker/FilePanelPriv.cpp b/src/kits/tracker/FilePanelPriv.cpp index 257e34c63e..c9545f2f34 100644 --- a/src/kits/tracker/FilePanelPriv.cpp +++ b/src/kits/tracker/FilePanelPriv.cpp @@ -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, diff --git a/src/kits/tracker/FilePermissionsView.cpp b/src/kits/tracker/FilePermissionsView.cpp index 132ea1f8e8..4afa8df3cd 100644 --- a/src/kits/tracker/FilePermissionsView.cpp +++ b/src/kits/tracker/FilePermissionsView.cpp @@ -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), diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index 94a44e9d8a..5cfdcfff5d 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -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"; diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp index 0c3ff1f754..25feb314aa 100644 --- a/src/kits/tracker/InfoWindow.cpp +++ b/src/kits/tracker/InfoWindow.cpp @@ -77,7 +77,7 @@ All rights reserved. #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "InfoWindow" namespace BPrivate { diff --git a/src/kits/tracker/Model.cpp b/src/kits/tracker/Model.cpp index a7f97cd9dd..256f2ca657 100644 --- a/src/kits/tracker/Model.cpp +++ b/src/kits/tracker/Model.cpp @@ -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() : diff --git a/src/kits/tracker/MountMenu.cpp b/src/kits/tracker/MountMenu.cpp index 4e9a16c7c8..24e1eb55d1 100644 --- a/src/kits/tracker/MountMenu.cpp +++ b/src/kits/tracker/MountMenu.cpp @@ -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) diff --git a/src/kits/tracker/NavMenu.cpp b/src/kits/tracker/NavMenu.cpp index c7b74655b3..53afa3c6dd 100644 --- a/src/kits/tracker/NavMenu.cpp +++ b/src/kits/tracker/NavMenu.cpp @@ -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 *list) diff --git a/src/kits/tracker/OpenWithWindow.cpp b/src/kits/tracker/OpenWithWindow.cpp index bae5a3875f..8bc53857e4 100644 --- a/src/kits/tracker/OpenWithWindow.cpp +++ b/src/kits/tracker/OpenWithWindow.cpp @@ -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 *windowList, window_look look, window_feel feel, diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index 8b295f02b3..d883342212 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -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; diff --git a/src/kits/tracker/QueryContainerWindow.cpp b/src/kits/tracker/QueryContainerWindow.cpp index eca5e93965..9a5d11dbff 100644 --- a/src/kits/tracker/QueryContainerWindow.cpp +++ b/src/kits/tracker/QueryContainerWindow.cpp @@ -48,7 +48,7 @@ All rights reserved. #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "QueryContainerWindow" BQueryContainerWindow::BQueryContainerWindow(LockingList *windowList, uint32 containerWindowFlags, window_look look, diff --git a/src/kits/tracker/QueryPoseView.cpp b/src/kits/tracker/QueryPoseView.cpp index 79cb58f41f..1e3c7c4967 100644 --- a/src/kits/tracker/QueryPoseView.cpp +++ b/src/kits/tracker/QueryPoseView.cpp @@ -58,7 +58,7 @@ All rights reserved. #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "QueryPoseView" using std::nothrow; diff --git a/src/kits/tracker/SelectionWindow.cpp b/src/kits/tracker/SelectionWindow.cpp index e5146a8355..9d85cb65ae 100644 --- a/src/kits/tracker/SelectionWindow.cpp +++ b/src/kits/tracker/SelectionWindow.cpp @@ -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) : diff --git a/src/kits/tracker/SettingsViews.cpp b/src/kits/tracker/SettingsViews.cpp index 939e9c841f..ce2ba4d3ae 100644 --- a/src/kits/tracker/SettingsViews.cpp +++ b/src/kits/tracker/SettingsViews.cpp @@ -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) : diff --git a/src/kits/tracker/SlowContextPopup.cpp b/src/kits/tracker/SlowContextPopup.cpp index 1216847451..6a12c9def3 100644 --- a/src/kits/tracker/SlowContextPopup.cpp +++ b/src/kits/tracker/SlowContextPopup.cpp @@ -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), diff --git a/src/kits/tracker/StatusWindow.cpp b/src/kits/tracker/StatusWindow.cpp index 03cc9fcacc..32bb762127 100644 --- a/src/kits/tracker/StatusWindow.cpp +++ b/src/kits/tracker/StatusWindow.cpp @@ -185,7 +185,7 @@ public: #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "StatusWindow" BStatusWindow::BStatusWindow() diff --git a/src/kits/tracker/TemplatesMenu.cpp b/src/kits/tracker/TemplatesMenu.cpp index 33425ce92f..45d1acf525 100644 --- a/src/kits/tracker/TemplatesMenu.cpp +++ b/src/kits/tracker/TemplatesMenu.cpp @@ -54,7 +54,7 @@ All rights reserved. #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "TemplatesMenu" namespace BPrivate { diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index 14203aec69..20b9801967 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -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; diff --git a/src/kits/tracker/Tracker.cpp b/src/kits/tracker/Tracker.cpp index 81b3956c6d..bfd2c81dfc 100644 --- a/src/kits/tracker/Tracker.cpp +++ b/src/kits/tracker/Tracker.cpp @@ -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), diff --git a/src/kits/tracker/TrackerInitialState.cpp b/src/kits/tracker/TrackerInitialState.cpp index 035df286da..a6a3251d84 100644 --- a/src/kits/tracker/TrackerInitialState.cpp +++ b/src/kits/tracker/TrackerInitialState.cpp @@ -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, diff --git a/src/kits/tracker/TrackerSettingsWindow.cpp b/src/kits/tracker/TrackerSettingsWindow.cpp index 34001ef78d..3085610e58 100644 --- a/src/kits/tracker/TrackerSettingsWindow.cpp +++ b/src/kits/tracker/TrackerSettingsWindow.cpp @@ -67,7 +67,7 @@ const uint32 kRevertButtonPressed = 'Rebp'; #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "TrackerSettingsWindow" TrackerSettingsWindow::TrackerSettingsWindow() : diff --git a/src/kits/tracker/VolumeWindow.cpp b/src/kits/tracker/VolumeWindow.cpp index 2a12e2de6a..4ede52a0ff 100644 --- a/src/kits/tracker/VolumeWindow.cpp +++ b/src/kits/tracker/VolumeWindow.cpp @@ -51,7 +51,7 @@ All rights reserved. #undef B_TRANSLATE_CONTEXT -#define B_TRANSLATE_CONTEXT "libtracker" +#define B_TRANSLATE_CONTEXT "VolumeWindow" BVolumeWindow::BVolumeWindow(LockingList *windowList, uint32 openFlags) : BContainerWindow(windowList, openFlags) diff --git a/src/kits/tracker/WidgetAttributeText.cpp b/src/kits/tracker/WidgetAttributeText.cpp index 74e70f7e56..d1720d3057 100644 --- a/src/kits/tracker/WidgetAttributeText.cpp +++ b/src/kits/tracker/WidgetAttributeText.cpp @@ -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;