[Scummvm-cvs-logs] SF.net SVN: scummvm:[52460] scummvm/trunk/common/translation.h

criezy at users.sourceforge.net criezy at users.sourceforge.net
Tue Aug 31 00:20:17 CEST 2010


Revision: 52460
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52460&view=rev
Author:   criezy
Date:     2010-08-30 22:20:16 +0000 (Mon, 30 Aug 2010)

Log Message:
-----------
I18N: Add a macro to define a context for a translatable string.

Currently static strings are marked with the _s() macro so that xgettext knows
the string needs to be translated. But there was no way to tell xgettext that
the string could get translated in different contexts. This is the role of this new
macro.

Modified Paths:
--------------
    scummvm/trunk/common/translation.h

Modified: scummvm/trunk/common/translation.h
===================================================================
--- scummvm/trunk/common/translation.h	2010-08-30 22:10:32 UTC (rev 52459)
+++ scummvm/trunk/common/translation.h	2010-08-30 22:20:16 UTC (rev 52460)
@@ -207,5 +207,7 @@
 #endif
 
 #define _s(str) str
+#define _sc(str, ctxt) str
+#define DECLARE_TRANSLATION_ADDITIONAL_CONTEXT(str, ctxt) 
 
 #endif


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list