Added: add an prefiex "u:" to ask tooltip and hardcode_text to use utf8 strings

--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 6 years ago
parent 8ab4221593
commit 0b41daaaa2

@ -123,9 +123,12 @@ namespace NLGUI
if (prop)
{
const char *propPtr = prop;
if (strlen(propPtr) > 2 && propPtr[0] == 'u' && propPtr[1] == ':')
_ContextHelp = ucstring::makeFromUtf8(std::string(propPtr).substr(2));
else
_ContextHelp = ucstring(propPtr);
if( !editorMode && ( strlen(propPtr) > 2 ) )
{
if ((propPtr[0] == 'u') && (propPtr[1] == 'i'))

@ -866,6 +866,9 @@ namespace NLGUI
if (_MultiLine)
{
if (strlen(propPtr) > 2 && propPtr[0] == 'u' && propPtr[1] == ':')
setTextFormatTaged(ucstring::makeFromUtf8(std::string(propPtr).substr(2)));
else
setTextFormatTaged(CI18N::get(propPtr));
}
else

Loading…
Cancel
Save