diff --git a/ryzom/common/data_common/r2/r2_dialogs.lua b/ryzom/common/data_common/r2/r2_dialogs.lua index 286cf2a34..06d72d258 100644 --- a/ryzom/common/data_common/r2/r2_dialogs.lua +++ b/ryzom/common/data_common/r2/r2_dialogs.lua @@ -449,6 +449,7 @@ function r2.dialogs:updateElementEditor() -- to who local toWhoInst = r2:getInstanceFromId(tostring(instanceChat.Actions[0].Facing)) if toWhoInst then + uc_chat = ucstring() uc_chat:fromUtf8(toWhoInst.Name) else uc_chat = i18n.get("uiR2EdNobody") @@ -458,6 +459,7 @@ function r2.dialogs:updateElementEditor() -- emote local emoteName = self.fromEmoteIdToName[instanceChat.Actions[0].Emote] if emoteName then + uc_chat = ucstring() uc_chat:fromUtf8(emoteName) else uc_chat = i18n.get("uiR2EdNoElt") @@ -469,8 +471,8 @@ function r2.dialogs:updateElementEditor() uc_chat:fromUtf8(self.elementInitialName.." : ") chatName.uc_hardtext = uc_chat - minutesText.uc_hardtext = tostring(0) - secondsText.uc_hardtext = tostring(0) + minutesText.uc_hardtext = "0" + secondsText.uc_hardtext = "0" whoMenuText.uc_hardtext = "" diff --git a/ryzom/common/data_common/r2/r2_ui_scenario.lua b/ryzom/common/data_common/r2/r2_ui_scenario.lua index 5a925d9a4..4ed11ec63 100644 --- a/ryzom/common/data_common/r2/r2_ui_scenario.lua +++ b/ryzom/common/data_common/r2/r2_ui_scenario.lua @@ -598,9 +598,8 @@ function r2.ScenarioWindow:updateActProperties() } local season = actGr:find("season_name") assert(season) - local uc_season = ucstring() local seasonStr = seasons[location.Season] - uc_season:fromUtf8(i18n.get(seasonStr):toUtf8()) + local uc_season = i18n.get(seasonStr) season.uc_hardtext = uc_season -- manual weather