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
|
||||
|
||||
Reference in New Issue
Block a user