fixed bug in vgettext
This commit is contained in:
parent
a1b63e1885
commit
75ca9d4b9e
2 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ const char* dsgettext (const char * domainname, const char *msgid)
|
|||
return msgval;
|
||||
}
|
||||
|
||||
const char* vgettext (const char *msgid, const string_map& symbols)
|
||||
std::string vgettext (const char *msgid, const string_map& symbols)
|
||||
{
|
||||
const std::string orig(gettext(msgid));
|
||||
const std::string msg = config::interpolate_variables_into_string(orig,
|
||||
&symbols);
|
||||
return msg.c_str();
|
||||
return msg;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <libintl.h>
|
||||
const char* sgettext (const char*);
|
||||
const char* dsgettext (const char * domainname, const char *msgid);
|
||||
const char* vgettext (const char*,const string_map&);
|
||||
std::string vgettext (const char*,const string_map&);
|
||||
|
||||
#ifdef GETTEXT_DOMAIN
|
||||
# define _(String) dgettext(GETTEXT_DOMAIN,String)
|
||||
|
|
Loading…
Add table
Reference in a new issue