More catalog-related cleanup.
* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO * adjust all uses of both macros in Haiku's source tree * use correct header guard for collecting/Catalog.h The renamed macros require adjustments to all external applications using catalogs.
This commit is contained in:
@@ -166,8 +166,8 @@ engine, last line must contain:</p>
|
||||
<pre><code>#include <stdio.h>
|
||||
#include <Catalog.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#ifdef B_TRANSLATE_CONTEXT "hello"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "hello"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
\section macros Using the macros
|
||||
You don't have to do much in your program to handle catalogs. You must
|
||||
first set the B_TRANSLATE_CONTEXT define to a string that identifies which
|
||||
first set the B_TRANSLATION_CONTEXT define to a string that identifies which
|
||||
part of the application the strings you will translate are in. This allows
|
||||
the translators to keep track of the strings in the catalog more easily,
|
||||
and find where they are visible in the application. then, all you have to
|
||||
|
||||
+11
-13
@@ -59,8 +59,8 @@ private:
|
||||
};
|
||||
|
||||
|
||||
#undef B_TRANSLATE_SYSTEM_NAME_CONTEXT
|
||||
#define B_TRANSLATE_SYSTEM_NAME_CONTEXT "System name"
|
||||
#undef B_TRANSLATION_SYSTEM_NAME_CONTEXT
|
||||
#define B_TRANSLATION_SYSTEM_NAME_CONTEXT "System name"
|
||||
|
||||
|
||||
#ifndef B_AVOID_TRANSLATION_MACROS
|
||||
@@ -68,9 +68,7 @@ private:
|
||||
// you don't want these (in which case you need to collect the catalog keys
|
||||
// manually, as collectcatkeys won't do it for you):
|
||||
|
||||
// TODO: maybe rename this to B_TRANSLATE_DEFAULT_CONTEXT, so that
|
||||
// B_TRANSLATE_WITH_CONTEXT() can just be called B_TRANSLATE_CONTEXT()
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
// In a single application, several strings (e.g. 'Ok') will be used
|
||||
// more than once, in different contexts.
|
||||
// As the application programmer can not know if all translations of
|
||||
@@ -81,10 +79,10 @@ private:
|
||||
// same string and tell which strings appears in what context of the
|
||||
// application.
|
||||
// In order to give the translator a useful hint, the application
|
||||
// programmer needs to define B_TRANSLATE_CONTEXT with the context he'd
|
||||
// programmer needs to define B_TRANSLATION_CONTEXT with the context he'd
|
||||
// like to be associated with the strings used in this specifc source file.
|
||||
// example:
|
||||
// #define B_TRANSLATE_CONTEXT "Folder-Window"
|
||||
// #define B_TRANSLATION_CONTEXT "Folder-Window"
|
||||
// Tip: Use a descriptive name of the class implemented in that
|
||||
// source-file.
|
||||
|
||||
@@ -92,16 +90,16 @@ private:
|
||||
#undef B_TRANSLATE
|
||||
#define B_TRANSLATE(string) \
|
||||
BLocaleRoster::Default()->GetCatalog()->GetString((string), \
|
||||
B_TRANSLATE_CONTEXT)
|
||||
B_TRANSLATION_CONTEXT)
|
||||
|
||||
#undef B_TRANSLATE_WITH_CONTEXT
|
||||
#define B_TRANSLATE_WITH_CONTEXT(string, context) \
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT(string, context) \
|
||||
BLocaleRoster::Default()->GetCatalog()->GetString((string), (context))
|
||||
|
||||
#undef B_TRANSLATE_COMMENT
|
||||
#define B_TRANSLATE_COMMENT(string, comment) \
|
||||
BLocaleRoster::Default()->GetCatalog()->GetString((string), \
|
||||
B_TRANSLATE_CONTEXT, (comment))
|
||||
B_TRANSLATION_CONTEXT, (comment))
|
||||
|
||||
#undef B_TRANSLATE_ALL
|
||||
#define B_TRANSLATE_ALL(string, context, comment) \
|
||||
@@ -116,13 +114,13 @@ private:
|
||||
#define B_TRANSLATE_SYSTEM_NAME(string) \
|
||||
BLocaleRoster::Default()->IsFilesystemTranslationPreferred() \
|
||||
? BLocaleRoster::Default()->GetCatalog()->GetString((string), \
|
||||
B_TRANSLATE_SYSTEM_NAME_CONTEXT) \
|
||||
B_TRANSLATION_SYSTEM_NAME_CONTEXT) \
|
||||
: (string)
|
||||
|
||||
// Translation markers which can be used to mark static strings/IDs which
|
||||
// are used as key for translation requests (at other places in the code).
|
||||
/* Example:
|
||||
#define B_TRANSLATE_CONTEXT "MyDecentApp-Menu"
|
||||
#define B_TRANSLATION_CONTEXT "MyDecentApp-Menu"
|
||||
|
||||
static const char* choices[] = {
|
||||
B_TRANSLATE_MARK("left"),
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
* Copyright 2012, Haiku, Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _CATALOG_COLLECTOR_H_
|
||||
#define _CATALOG_COLLECTOR_H_
|
||||
#ifndef _COLLECTING_CATALOG_H_
|
||||
#define _COLLECTING_CATALOG_H_
|
||||
|
||||
|
||||
#include_next <Catalog.h>
|
||||
|
||||
|
||||
// Translation macros used when executing collectcatkeys
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
|
||||
#undef B_TRANSLATE
|
||||
#define B_TRANSLATE(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT)
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT)
|
||||
|
||||
#undef B_TRANSLATE_WITH_CONTEXT
|
||||
#define B_TRANSLATE_WITH_CONTEXT(string, context) \
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT(string, context) \
|
||||
B_CATKEY((string), (context))
|
||||
|
||||
#undef B_TRANSLATE_COMMENT
|
||||
#define B_TRANSLATE_COMMENT(string, comment) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT, (comment))
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
|
||||
|
||||
#undef B_TRANSLATE_ALL
|
||||
#define B_TRANSLATE_ALL(string, context, comment) \
|
||||
@@ -34,15 +34,15 @@
|
||||
|
||||
#undef B_TRANSLATE_SYSTEM_NAME
|
||||
#define B_TRANSLATE_SYSTEM_NAME(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_SYSTEM_NAME_CONTEXT)
|
||||
B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT)
|
||||
|
||||
#undef B_TRANSLATE_MARK
|
||||
#define B_TRANSLATE_MARK(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT)
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT)
|
||||
|
||||
#undef B_TRANSLATE_MARK_COMMENT
|
||||
#define B_TRANSLATE_MARK_COMMENT(string, comment) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT, (comment))
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
|
||||
|
||||
#undef B_TRANSLATE_MARK_ALL
|
||||
#define B_TRANSLATE_MARK_ALL(string, context, comment) \
|
||||
@@ -54,15 +54,15 @@
|
||||
|
||||
#undef B_TRANSLATE_MARK_SYSTEM_NAME
|
||||
#define B_TRANSLATE_MARK_SYSTEM_NAME(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_SYSTEM_NAME_CONTEXT, "")
|
||||
B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "")
|
||||
|
||||
#undef B_TRANSLATE_MARK_VOID
|
||||
#define B_TRANSLATE_MARK_VOID(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT)
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT)
|
||||
|
||||
#undef B_TRANSLATE_MARK_COMMENT_VOID
|
||||
#define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) \
|
||||
B_CATKEY((string), B_TRANSLATE_CONTEXT, (comment))
|
||||
B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
|
||||
|
||||
#undef B_TRANSLATE_MARK_ALL_VOID
|
||||
#define B_TRANSLATE_MARK_ALL_VOID(string, context, comment) \
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
#undef B_TRANSLATE_MARK_SYSTEM_NAME_VOID
|
||||
#define B_TRANSLATE_MARK_SYSTEM_NAME_VOID(string) \
|
||||
B_CATKEY((string), B_TRANSLATE_SYSTEM_NAME_CONTEXT, "")
|
||||
B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "")
|
||||
|
||||
#undef B_TRANSLATE_NOCOLLECT
|
||||
#define B_TRANSLATE_NOCOLLECT(string)
|
||||
@@ -92,4 +92,4 @@
|
||||
#define B_TRANSLATE_NOCOLLECT_SYSTEM_NAME(string)
|
||||
|
||||
|
||||
#endif /* _CATALOG_COLLECTOR_H_ */
|
||||
#endif /* _COLLECTING_CATALOG_H_ */
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <Window.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BFS_Initialize_Parameter"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BFS_Initialize_Parameter"
|
||||
|
||||
|
||||
static uint32 MSG_BLOCK_SIZE = 'blsz';
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#include <PartitionParameterEditor.h>
|
||||
#include <View.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BFS_Creation_Parameter"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BFS_Creation_Parameter"
|
||||
|
||||
|
||||
PrimaryPartitionEditor::PrimaryPartitionEditor()
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include "TeamListItem.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Team monitor"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Team monitor"
|
||||
|
||||
|
||||
TeamMonitorWindow* gTeamMonitorWindow = NULL;
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <MailSettings.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
const uint32 kMsgActionMoveTo = 'argm';
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <MailProtocol.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "RuleFilter"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "RuleFilter"
|
||||
|
||||
|
||||
RuleFilter::RuleFilter(MailProtocol& protocol, AddonSettings* addonSettings)
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <MailSettings.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
const uint32 kMsgNotifyMethod = 'nomt';
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include "ConfigView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "filter"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "filter"
|
||||
|
||||
|
||||
class NotifyFilter : public MailFilter
|
||||
|
||||
@@ -129,8 +129,8 @@
|
||||
#include "SpamFilter.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SpamFilter"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SpamFilter"
|
||||
|
||||
|
||||
// The names match the ones set up by spamdbm for sound effects.
|
||||
|
||||
@@ -95,8 +95,8 @@
|
||||
#include <FileConfigView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SpamFilterConfig"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SpamFilterConfig"
|
||||
|
||||
|
||||
static const char *kServerSignature = "application/x-vnd.agmsmith.spamdbm";
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include <crypt.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "IMAPFolderConfig"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "IMAPFolderConfig"
|
||||
|
||||
|
||||
class EditableListItem {
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#include "IMAPFolderConfig.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "imap_config"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "imap_config"
|
||||
|
||||
|
||||
const uint32 kMsgOpenIMAPFolder = '&OIF';
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <ProtocolConfigView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
class POP3ConfigView : public BMailProtocolConfigView {
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
#include "MessageIO.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "pop3"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "pop3"
|
||||
|
||||
|
||||
static void NotHere(BStringList &that, BStringList &otherList,
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <FileConfigView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView()
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include <ProtocolConfigView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
class SMTPConfigView : public BMailProtocolConfigView {
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
#endif
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "smtp"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "smtp"
|
||||
|
||||
|
||||
#define CRLF "\r\n"
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include "MixerUtils.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "AudioMixer"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "AudioMixer"
|
||||
|
||||
|
||||
// the range of the gain sliders (in dB)
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include <BuildScreenSaverDefaultSettingsView.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver Butterfly"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver Butterfly"
|
||||
|
||||
|
||||
extern "C" BScreenSaver*
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include <BuildScreenSaverDefaultSettingsView.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver DebugNow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver DebugNow"
|
||||
|
||||
|
||||
const rgb_color kMediumBlue = {0, 0, 100};
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include <BuildScreenSaverDefaultSettingsView.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver Haiku"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver Haiku"
|
||||
|
||||
|
||||
class ScreenSaver : public BScreenSaver
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
#include "IconDisplay.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver Icons"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver Icons"
|
||||
|
||||
|
||||
#define MAX_ICONS 15
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#include "IFSSaver.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver IFS"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver IFS"
|
||||
|
||||
|
||||
enum {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include <TextView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Leaves"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Leaves"
|
||||
|
||||
|
||||
// path data for the leaf shape
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
|
||||
#include <BuildScreenSaverDefaultSettingsView.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver Message"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver Message"
|
||||
|
||||
|
||||
// Double brackets to satisfy a compiler warning
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "Polygon.h"
|
||||
#include "PolygonQueue.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Screensaver Spider"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Screensaver Spider"
|
||||
|
||||
enum {
|
||||
MSG_QUEUE_NUMBER = 'qunm',
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "ZipOMaticWindow.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "file:ZipOMatic.cpp"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "file:ZipOMatic.cpp"
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include "ZipperThread.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "file:ZipOMaticWindow.cpp"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "file:ZipOMaticWindow.cpp"
|
||||
|
||||
|
||||
ZippoWindow::ZippoWindow(BList windowList, bool keepOpen)
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include "ZipOMaticWindow.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "file:ZipperThread.cpp"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "file:ZipperThread.cpp"
|
||||
|
||||
|
||||
ZipperThread::ZipperThread(BMessage* refsMessage, BWindow* window)
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include "BMPTranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BMPMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BMPMain"
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -28,8 +28,8 @@ using std::min;
|
||||
//#define ERROR(x) printf(x);
|
||||
#define ERROR(x)
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BMPTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BMPTranslator"
|
||||
|
||||
|
||||
// The input formats that this translator supports.
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BMPView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BMPView"
|
||||
|
||||
|
||||
BMPView::BMPView(const BRect &frame, const char *name, uint32 resizeMode,
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView(uint32 flags)
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "ImfRgbaFile.h"
|
||||
#include "IStreamWrapper.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "EXRTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "EXRTranslator"
|
||||
|
||||
|
||||
// The input formats that this translator supports.
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#include <Application.h>
|
||||
#include <Catalog.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "main"
|
||||
|
||||
int
|
||||
main(int /*argc*/, char **/*argv*/)
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#define GIF_TYPE 'GIF '
|
||||
#endif
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "GIFTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "GIFTranslator"
|
||||
|
||||
|
||||
// This global will be externed in other files - set once here
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
|
||||
#include "GIFView.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "GIFView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "GIFView"
|
||||
|
||||
|
||||
extern int32 translatorVersion;
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "HPGSTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "HPGSTranslator"
|
||||
|
||||
|
||||
typedef struct my_hpgs_png_image_st {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
#include "HVIFTranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "HVIFMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "HVIFMain"
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#define HVIF_TRANSLATION_QUALITY 1.0
|
||||
#define HVIF_TRANSLATION_CAPABILITY 1.0
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "HVIFTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "HVIFTranslator"
|
||||
|
||||
|
||||
static const translation_format sInputFormats[] = {
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
#define HVIF_SETTING_RENDER_SIZE_CHANGED 'rsch'
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "HVIFView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "HVIFView"
|
||||
|
||||
|
||||
HVIFView::HVIFView(const char* name, uint32 flags, TranslatorSettings *settings)
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView()
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "ICO.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ICOTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ICOTranslator"
|
||||
|
||||
|
||||
const char *kDocumentCount = "/documentCount";
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
#include "ICO.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "main"
|
||||
|
||||
int
|
||||
main(int /*argc*/, char ** /*argv*/)
|
||||
|
||||
@@ -43,8 +43,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <TabView.h>
|
||||
#include <TextView.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "JPEGTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "JPEGTranslator"
|
||||
|
||||
#define MARKER_EXIF 0xe1
|
||||
|
||||
|
||||
@@ -53,8 +53,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "BaseTranslator.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "JPEGTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "JPEGTranslator"
|
||||
|
||||
// Settings
|
||||
#define SETTINGS_FILE "JPEGTranslator"
|
||||
|
||||
@@ -51,8 +51,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "JPEGTranslator.h"
|
||||
#include "TranslatorSettings.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "be_jerror"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "be_jerror"
|
||||
|
||||
// Since Translator doesn't use it's own error table, we can use error_mgr's
|
||||
// variables to store some usefull data.
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <ReadHelper.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "exit_parser"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "exit_parser"
|
||||
|
||||
|
||||
using std::set;
|
||||
|
||||
@@ -42,8 +42,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <TextView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "JPEG2000Translator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "JPEG2000Translator"
|
||||
|
||||
// Set these accordingly
|
||||
#define JP2_ACRONYM "JP2"
|
||||
|
||||
@@ -53,8 +53,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "libjasper/jasper.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "JPEG2000Translator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "JPEG2000Translator"
|
||||
|
||||
// Settings
|
||||
#define JP2_SETTINGS_FILE "JPEG2000Translator"
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PCXTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PCXTranslator"
|
||||
|
||||
#define kPCXMimeType "image/x-pcx"
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
#include <Catalog.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "main"
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
#include "PNGView.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PNGTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PNGTranslator"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// main
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
|
||||
#include "PNGView.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PNGTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PNGTranslator"
|
||||
|
||||
// The input formats that this translator supports.
|
||||
static const translation_format sInputFormats[] = {
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#define PNG_NO_PEDANTIC_WARNINGS
|
||||
#include <png.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PNGTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PNGTranslator"
|
||||
|
||||
PNGView::PNGView(const BRect &frame, const char *name, uint32 resizeMode,
|
||||
uint32 flags, TranslatorSettings *settings)
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PPMMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PPMMain"
|
||||
|
||||
|
||||
BPoint get_window_origin();
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
|
||||
#include "colorspace.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "PPMTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "PPMTranslator"
|
||||
|
||||
#if DEBUG
|
||||
#define dprintf(x) printf x
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
const char* kShortName2 = B_TRANSLATE_MARK("RAWTranslator Settings");
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "RAWTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "RAWTranslator"
|
||||
|
||||
|
||||
class FreeAllocation {
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "RAWTranslator main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "RAWTranslator main"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "RTFTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "RTFTranslator"
|
||||
|
||||
#define READ_BUFFER_SIZE 2048
|
||||
#define DATA_BUFFER_SIZE 64
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include "RTF.h"
|
||||
#include "RTFTranslator.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "main"
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
#include "SGITranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SGIMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SGIMain"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// main
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SGITranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SGITranslator"
|
||||
|
||||
|
||||
// The input formats that this translator supports.
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
|
||||
const char* author = "Stephan Aßmus, <[email protected]>";
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SGIView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SGIView"
|
||||
|
||||
// add_menu_item
|
||||
void
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
|
||||
#include "BaseTranslator.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BaseTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BaseTranslator"
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TranslatorWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TranslatorWindow"
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include "STXTTranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "STXTMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "STXTMain"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// main
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
using namespace BPrivate;
|
||||
using namespace std;
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "STXTTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "STXTTranslator"
|
||||
|
||||
#define READ_BUFFER_SIZE 32768
|
||||
#define DATA_BUFFER_SIZE 256
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "STXTView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "STXTView"
|
||||
|
||||
|
||||
STXTView::STXTView(const BRect &frame, const char *name, uint32 resizeMode,
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include "TGATranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TGAMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TGAMain"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// main
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include "TGAView.h"
|
||||
#include "StreamBuffer.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TGATranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TGATranslator"
|
||||
|
||||
// The input formats that this translator supports.
|
||||
static const translation_format sInputFormats[] = {
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
#include "TGAView.h"
|
||||
#include "TGATranslator.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TGAView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TGAView"
|
||||
|
||||
|
||||
TGAView::TGAView(const char *name, uint32 flags, TranslatorSettings *settings)
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include "TIFFTranslator.h"
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TIFFMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TIFFMain"
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// main
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TIFFTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TIFFTranslator"
|
||||
|
||||
|
||||
/*!
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
|
||||
#include "TIFFView.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "TIFFView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "TIFFView"
|
||||
|
||||
// add_menu_item
|
||||
void
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#include "WebPTranslator.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
static const uint32 kMsgQuality = 'qlty';
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include "TranslatorSettings.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "WebPTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "WebPTranslator"
|
||||
|
||||
|
||||
class FreeAllocation {
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "WebPTranslator.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "main"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "main"
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#include "support.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Layer"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Layer"
|
||||
|
||||
|
||||
// constructor
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "TranslatorWindow.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "WonderBrushMain"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "WonderBrushMain"
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "WonderBrushView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "WonderBrushTranslator"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "WonderBrushTranslator"
|
||||
|
||||
|
||||
using std::nothrow;
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "WonderBrushTranslator.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "WonderBrushView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "WonderBrushView"
|
||||
|
||||
|
||||
const char* kAuthor = "Stephan Aßmus, <[email protected]>";
|
||||
|
||||
@@ -400,8 +400,8 @@ AboutApp::AboutApp()
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "AboutWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "AboutWindow"
|
||||
|
||||
AboutWindow::AboutWindow()
|
||||
: BWindow(BRect(0, 0, 500, 300), B_TRANSLATE("About this system"),
|
||||
@@ -543,8 +543,8 @@ CropView::DoLayout()
|
||||
|
||||
// #pragma mark - AboutView
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "AboutView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "AboutView"
|
||||
|
||||
AboutView::AboutView()
|
||||
: BView("aboutview", B_WILL_DRAW | B_PULSE_NEEDED),
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include <Message.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "Utilities"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "Utilities"
|
||||
|
||||
|
||||
BString
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
class BMessage;
|
||||
class ActivityWindow;
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ActivityWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ActivityWindow"
|
||||
|
||||
|
||||
class ActivityMonitor : public BApplication {
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#include "SystemInfo.h"
|
||||
#include "SystemInfoHandler.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ActivityView"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ActivityView"
|
||||
|
||||
template<typename ObjectType>
|
||||
class ListAddDeleter {
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#include "DataSource.h"
|
||||
#include "SettingsWindow.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ActivityWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "ActivityWindow"
|
||||
|
||||
static const uint32 kMsgAddView = 'advw';
|
||||
static const uint32 kMsgShowSettings = 'shst';
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include "SystemInfo.h"
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "DataSource"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "DataSource"
|
||||
|
||||
|
||||
const DataSource* kSources[] = {
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include <Slider.h>
|
||||
#include <String.h>
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "SettingsWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "SettingsWindow"
|
||||
|
||||
|
||||
static const uint32 kMsgUpdateTimeInterval = 'upti';
|
||||
@@ -90,7 +90,7 @@ private:
|
||||
|
||||
SettingsWindow::SettingsWindow(ActivityWindow* target)
|
||||
: BWindow(_RelativeTo(target),
|
||||
B_TRANSLATE_WITH_CONTEXT("Settings", "ActivityWindow"), B_FLOATING_WINDOW,
|
||||
B_TRANSLATE_CONTEXT("Settings", "ActivityWindow"), B_FLOATING_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
|
||||
fTarget(target)
|
||||
{
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <Catalog.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BootManager"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BootManager"
|
||||
|
||||
|
||||
static const char* kSignature = "application/x-vnd.Haiku-BootManager";
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include "WizardView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BootManagerController"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BootManagerController"
|
||||
|
||||
|
||||
BootManagerController::BootManagerController()
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "WizardView.h"
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BootManagerWindow"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "BootManagerWindow"
|
||||
|
||||
|
||||
BootManagerWindow::BootManagerWindow()
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <TextView.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "DefaultPartitionPage"
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "DefaultPartitionPage"
|
||||
|
||||
|
||||
enum {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user