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

--HG--
branch : patches-from-atys
hg/hotfix/patches-from-atys
ulukyn 6 years ago
parent c7bdaf513c
commit 16ce2e454c

@ -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'))

@ -993,6 +993,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