Add _cF translation macro

This commit is contained in:
Patrick Nicolas
2026-04-19 09:14:03 +02:00
parent 3f732a70f8
commit 72dca53617
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@
#define _(x) boost::locale::gettext(x)
#define _F(x) fmt::runtime(boost::locale::gettext(x))
#define _cF(c, x) fmt::runtime(boost::locale::pgettext(c, x))
#define _S(x) boost::locale::gettext(x).c_str()
#define _C(c, x) boost::locale::pgettext(c, x)
#define _cS(c, x) _C(c, x).c_str()
+2
View File
@@ -54,7 +54,9 @@ if __name__ == "__main__":
"--c++", "--from-code=UTF-8",
"--keyword=_:1,1t",
"--keyword=_S:1,1t",
"--keyword=_C:1c,2,2t",
"--keyword=_cS:1c,2,2t",
"--keyword=_cF:1c,2,2t",
"--keyword=_F:1,1t",
"--keyword=gettext_noop:1,1t",
"--output", client_pot,
+1
View File
@@ -11,6 +11,7 @@ xgettext \
--keyword=_S:1,1t \
--keyword=_C:1c,2,2t \
--keyword=_cS:1c,2,2t \
--keyword=_cF:1c,2,2t \
--keyword=_F:1,1t \
--keyword=gettext_noop:1,1t \
--output=$WIVRN_CLIENT_POT \