Allow empty translation keys
This commit is contained in:
committed by
Matthias Mailänder
parent
2867334c00
commit
8f5d8de1c2
@@ -38,10 +38,7 @@ end
|
||||
---@param description string key of the translation string
|
||||
---@return number id used to query for the objective later
|
||||
AddPrimaryObjective = function(player, description)
|
||||
local translation = description
|
||||
if translation ~= "" then
|
||||
translation = UserInterface.Translate(description)
|
||||
end
|
||||
local translation = UserInterface.Translate(description)
|
||||
|
||||
Media.DisplayMessageToPlayer(player, translation, UserInterface.Translate("new-primary-objective"))
|
||||
return player.AddObjective(translation, UserInterface.Translate("primary"), true)
|
||||
@@ -52,10 +49,7 @@ end
|
||||
---@param description string key of the translation string
|
||||
---@return number id used to query for the objective later
|
||||
AddSecondaryObjective = function(player, description)
|
||||
local translation = description
|
||||
if translation ~= "" then
|
||||
translation = UserInterface.Translate(description)
|
||||
end
|
||||
local translation = UserInterface.Translate(description)
|
||||
|
||||
Media.DisplayMessageToPlayer(player, translation, UserInterface.Translate("new-secondary-objective"))
|
||||
return player.AddObjective(translation, UserInterface.Translate("secondary"), false)
|
||||
|
||||
Reference in New Issue
Block a user