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:
Oliver Tappe
2012-04-16 21:31:22 +02:00
parent 3244c2bcf2
commit 546208a539
521 changed files with 1171 additions and 1165 deletions
+2 -2
View File
@@ -166,8 +166,8 @@ engine, last line must contain:</p>
<pre><code>#include &lt;stdio.h&gt;
#include &lt;Catalog.h&gt;
#undef B_TRANSLATE_CONTEXT
#ifdef B_TRANSLATE_CONTEXT "hello"
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "hello"
int main(void)
{
+1 -1
View File
@@ -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