Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Add LocalizationManager.exists for custom strings #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mods/base/lua/LocalizationManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ function LocalizationManager.init( self )
Hooks:Call( "LocalizationManagerPostInit", self )
end

function LocalizationManager.exists( self, str )

if self._custom_localizations[str] then
return true
end

return self.orig.exists(self, str)

end

function LocalizationManager.text( self, str, macros )

if self._custom_localizations[str] then
Expand Down