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,8 +123,11 @@ 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);
_ContextHelp = ucstring(propPtr);
if( !editorMode && ( strlen(propPtr) > 2 ) )
{

@ -993,7 +993,10 @@ namespace NLGUI
if (_MultiLine)
{
setTextFormatTaged(CI18N::get(propPtr));
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