diff options
author | Thierry Crozat | 2010-08-30 22:20:16 +0000 |
---|---|---|
committer | Thierry Crozat | 2010-08-30 22:20:16 +0000 |
commit | bf9404485e566714958896f6737fa94f63b5ed85 (patch) | |
tree | 0eb7a6eb25c7ca4e2648ab08a2838fd97ec9f854 | |
parent | fc05e8a4ff8cc1f67d1ee1690bb6ef3ed8fd9a83 (diff) | |
download | scummvm-rg350-bf9404485e566714958896f6737fa94f63b5ed85.tar.gz scummvm-rg350-bf9404485e566714958896f6737fa94f63b5ed85.tar.bz2 scummvm-rg350-bf9404485e566714958896f6737fa94f63b5ed85.zip |
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.
svn-id: r52460
-rw-r--r-- | common/translation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/translation.h b/common/translation.h index e1951c1330..57c4cc2ac8 100644 --- a/common/translation.h +++ b/common/translation.h @@ -207,5 +207,7 @@ private: #endif #define _s(str) str +#define _sc(str, ctxt) str +#define DECLARE_TRANSLATION_ADDITIONAL_CONTEXT(str, ctxt) #endif |